Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.05095/0.05095, allocations: 5.395 MB / 21.03 MB, free: 1.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 101.8 kB / 23.02 MB, free: 0.7852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 200.1 kB / 25.15 MB, free: 108 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 250 MB, free: 8.371 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01008/0.01008, allocations: 2.324 MB / 303.7 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002673/0.002673, allocations: 104.3 kB / 419.2 MB, free: 22.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08703/0.08971, allocations: 51.2 MB / 470.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704): time 0.009351/0.0991, allocations: 6.861 MB / 477.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008107/0.1073, allocations: 3.939 MB / 481.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.1085, allocations: 27.94 kB / 481.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003324/0.1118, allocations: 1.155 MB / 482.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002778/0.1146, allocations: 0.858 MB / 483.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002168/0.1168, allocations: 0.5356 MB / 483.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002074/0.1189, allocations: 1.413 MB / 485.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001625/0.1205, allocations: 1.025 MB / 486.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008089/0.1214, allocations: 0.5526 MB / 486.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009705/0.1223, allocations: 0.6964 MB / 487.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002267/0.1226, allocations: 144 kB / 487.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000937/0.1235, allocations: 431.7 kB / 488 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003015/0.1238, allocations: 311 kB / 488.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006839/0.1245, allocations: 0.6413 MB / 488.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002365/0.1269, allocations: 1.806 MB / 490.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1269, allocations: 0 / 490.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1269, allocations: 0 / 490.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.127, allocations: 0 / 490.7 MB, free: 15.25 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.004266/0.1312, allocations: 1.847 MB / 492.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1313, allocations: 12.03 kB / 492.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.1315, allocations: 160.9 kB / 492.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002231/0.1337, allocations: 391.8 kB / 493.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001892/0.1356, allocations: 0.8287 MB / 494 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.743e-05/0.1357, allocations: 90.06 kB / 494.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.1359, allocations: 107.9 kB / 494.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002289/0.1382, allocations: 1.173 MB / 495.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.1383, allocations: 0 / 495.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.1384, allocations: 44 kB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.611e-05/0.1384, allocations: 28 kB / 495.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002314/0.1407, allocations: 1.07 MB / 496.5 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006941/0.1477, allocations: 4.35 MB / 0.4891 GB, free: 4.781 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00298/0.1507, allocations: 1.744 MB / 0.4908 GB, free: 2.824 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007167/0.1514, allocations: 325.3 kB / 0.4911 GB, free: 2.504 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001222/0.1516, allocations: 97.66 kB / 0.4912 GB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009163/0.1525, allocations: 465.7 kB / 0.4916 GB, free: 1.906 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.655e-06/0.1525, allocations: 4 kB / 0.4916 GB, free: 1.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.00602/0.1585, allocations: 1.597 MB / 0.4932 GB, free: 272 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.1587, allocations: 222.2 kB / 0.4934 GB, free: 0 / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009534/0.1597, allocations: 0.6486 MB / 0.494 GB, free: 15.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.041e-05/0.1597, allocations: 41.69 kB / 0.4941 GB, free: 15.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004578/0.1602, allocations: 0.535 MB / 0.4946 GB, free: 14.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002299/0.1604, allocations: 250 kB / 0.4948 GB, free: 14.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003042/0.1608, allocations: 190.5 kB / 0.495 GB, free: 14.31 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.161, allocations: 382.8 kB / 0.4954 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006962/0.1617, allocations: 297.8 kB / 0.4957 GB, free: 13.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000893/0.1626, allocations: 0.5348 MB / 0.4962 GB, free: 13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001633/0.1642, allocations: 0.9399 MB / 0.4971 GB, free: 11.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.1642, allocations: 4 kB / 0.4971 GB, free: 11.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002458/0.1667, allocations: 1.114 MB / 0.4982 GB, free: 10.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.264e-05/0.1668, allocations: 63.41 kB / 0.4983 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1668, allocations: 4 kB / 0.4983 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000477/0.1673, allocations: 93 kB / 0.4984 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008893/0.1682, allocations: 215.7 kB / 0.4986 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/0.17, allocations: 1.593 MB / 0.5001 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008324/0.1709, allocations: 111.3 kB / 0.5002 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.558e-05/0.171, allocations: 47.92 kB / 0.5003 GB, free: 8.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.combiTimeTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005787/0.1716, allocations: 335.2 kB / 0.5006 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.1717, allocations: 87.48 kB / 0.5007 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002305/0.1741, allocations: 1.014 MB / 0.5017 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.924e-06/0.1741, allocations: 8 kB / 0.5017 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1741, allocations: 0 / 0.5017 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.1741, allocations: 7.984 kB / 0.5017 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006396/0.1805, allocations: 2.294 MB / 0.5039 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/0.1805, allocations: 0 / 0.5039 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004273/0.181, allocations: 103.9 kB / 0.504 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009619/0.1819, allocations: 334.2 kB / 0.5043 GB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.009e-05/0.1821, allocations: 23.98 kB / 0.5044 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001482/0.1835, allocations: 0.8974 MB / 0.5052 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.1836, allocations: 0 / 0.5052 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.1866, allocations: 1.418 MB / 0.5066 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004518/0.1871, allocations: 228.3 kB / 0.5068 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.1873, allocations: 20 kB / 0.5069 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005666/0.1878, allocations: 47.97 kB / 0.5069 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.188, allocations: 44.5 kB / 0.5069 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.793e-05/0.188, allocations: 27.97 kB / 0.507 GB, free: 1.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006507/0.1887, allocations: 455 kB / 0.5074 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1887, allocations: 0 / 0.5074 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001096/0.1898, allocations: 327.1 kB / 0.5077 GB, free: 0.668 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 12 ($whenCondition3,$whenCondition1,$whenCondition2,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 12 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition2,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1773/0.3671, allocations: 2.505 MB / 0.5102 GB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.3692, allocations: 0.9958 MB / 0.5111 GB, free: 44.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3692, allocations: 0 / 0.5111 GB, free: 44.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008277/0.37, allocations: 0.5004 MB / 0.5116 GB, free: 44.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008888/0.3709, allocations: 158.6 kB / 0.5118 GB, free: 44.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/0.3818, allocations: 7.083 MB / 0.5187 GB, free: 41.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000554/0.3824, allocations: 1.017 MB / 0.5197 GB, free: 40.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004982/0.3829, allocations: 130.3 kB / 0.5198 GB, free: 40.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004564/0.3833, allocations: 398.8 kB / 0.5202 GB, free: 40.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.3833, allocations: 0 / 0.5202 GB, free: 40.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05117/0.4345, allocations: 20.52 MB / 0.5402 GB, free: 28.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.48/16.91, allocations: 7.938 kB / 0.5402 GB, free: 28.73 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe 2>&1)