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.02774/0.02774, allocations: 5.394 MB / 21.03 MB, free: 1.633 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.006609/0.006609, allocations: 96.36 kB / 23.03 MB, free: 0.7773 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.001112/0.001112, allocations: 196.9 kB / 25.15 MB, free: 192 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.216/1.216, allocations: 222.9 MB / 250 MB, free: 8.438 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008883/0.008883, allocations: 2.318 MB / 303.7 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 95.84 kB / 419.1 MB, free: 22.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07884/0.08044, allocations: 51.21 MB / 470.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704): time 0.008048/0.08853, allocations: 6.858 MB / 477.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005906/0.09446, allocations: 3.943 MB / 481.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008099/0.0953, allocations: 16 kB / 481.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002749/0.09807, allocations: 1.178 MB / 482.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002042/0.1001, allocations: 0.8654 MB / 483.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001665/0.1018, allocations: 0.5518 MB / 483.8 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001657/0.1035, allocations: 1.405 MB / 485.2 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.105, allocations: 1.028 MB / 486.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007096/0.1057, allocations: 0.5565 MB / 486.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007149/0.1064, allocations: 0.6886 MB / 487.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001539/0.1066, allocations: 144 kB / 487.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006867/0.1073, allocations: 439.6 kB / 488 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002391/0.1075, allocations: 307 kB / 488.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005073/0.108, allocations: 0.6414 MB / 489 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001759/0.1098, allocations: 1.814 MB / 490.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1098, allocations: 4 kB / 490.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1098, allocations: 3.938 kB / 490.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.1098, allocations: 4 kB / 490.8 MB, free: 15.19 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.003719/0.1136, allocations: 1.835 MB / 492.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.1136, allocations: 8.031 kB / 492.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001724/0.1138, allocations: 160.9 kB / 492.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/0.1158, allocations: 383.8 kB / 493.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.1175, allocations: 0.8481 MB / 494 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-05/0.1175, allocations: 78.08 kB / 494.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.1177, allocations: 104 kB / 494.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001907/0.1196, allocations: 1.173 MB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.1197, allocations: 4 kB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.1198, allocations: 44 kB / 495.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.1198, allocations: 24 kB / 495.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001953/0.1218, allocations: 1.072 MB / 496.5 MB, free: 9.293 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005565/0.1273, allocations: 4.358 MB / 0.4891 GB, free: 4.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002528/0.1299, allocations: 1.74 MB / 0.4908 GB, free: 2.785 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006272/0.1305, allocations: 322.3 kB / 0.4911 GB, free: 2.469 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.321e-05/0.1306, allocations: 97.66 kB / 0.4912 GB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007943/0.1314, allocations: 465.7 kB / 0.4917 GB, free: 1.871 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.104e-06/0.1314, allocations: 0 / 0.4917 GB, free: 1.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.00548/0.1369, allocations: 1.597 MB / 0.4932 GB, free: 240 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.137, allocations: 222.2 kB / 0.4934 GB, free: 15.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007342/0.1378, allocations: 0.6486 MB / 0.4941 GB, free: 15.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.308e-05/0.1378, allocations: 53.62 kB / 0.4941 GB, free: 15.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003369/0.1382, allocations: 0.535 MB / 0.4946 GB, free: 14.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/0.1384, allocations: 242 kB / 0.4949 GB, free: 14.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002583/0.1386, allocations: 190.5 kB / 0.4951 GB, free: 14.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1388, allocations: 386.8 kB / 0.4954 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006151/0.1394, allocations: 297.8 kB / 0.4957 GB, free: 13.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007653/0.1402, allocations: 0.5348 MB / 0.4962 GB, free: 12.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.1416, allocations: 0.9399 MB / 0.4971 GB, free: 11.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1416, allocations: 0 / 0.4971 GB, free: 11.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002045/0.1437, allocations: 1.118 MB / 0.4982 GB, free: 10.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.372e-05/0.1437, allocations: 63.39 kB / 0.4983 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1437, allocations: 8 kB / 0.4983 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004438/0.1442, allocations: 93 kB / 0.4984 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008235/0.145, allocations: 223.6 kB / 0.4986 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.1465, allocations: 1.578 MB / 0.5001 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000677/0.1471, allocations: 111.5 kB / 0.5003 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.607e-05/0.1472, allocations: 51.91 kB / 0.5003 GB, free: 8.48 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.0003968/0.1476, allocations: 343.1 kB / 0.5006 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.1478, allocations: 83.48 kB / 0.5007 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001957/0.1497, allocations: 1.011 MB / 0.5017 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1497, allocations: 4 kB / 0.5017 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1497, allocations: 4 kB / 0.5017 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.465e-06/0.1498, allocations: 3.984 kB / 0.5017 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00556/0.1553, allocations: 2.302 MB / 0.504 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.1553, allocations: 4 kB / 0.504 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.1557, allocations: 95.89 kB / 0.5041 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007741/0.1565, allocations: 334.2 kB / 0.5044 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/0.1565, allocations: 23.98 kB / 0.5044 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.1578, allocations: 0.8936 MB / 0.5053 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1578, allocations: 4.031 kB / 0.5053 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.1603, allocations: 1.402 MB / 0.5066 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002898/0.1606, allocations: 240.3 kB / 0.5069 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.1607, allocations: 23.94 kB / 0.5069 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005395/0.1612, allocations: 43.97 kB / 0.5069 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.226e-05/0.1613, allocations: 40.5 kB / 0.507 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.049e-05/0.1614, allocations: 39.91 kB / 0.507 GB, free: 1.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005191/0.1619, allocations: 455 kB / 0.5074 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1619, allocations: 0 / 0.5074 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008471/0.1628, allocations: 323.2 kB / 0.5078 GB, free: 0.6289 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.1736/0.3364, allocations: 2.503 MB / 0.5102 GB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.3383, allocations: 0.9922 MB / 0.5112 GB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3383, allocations: 1.094 kB / 0.5112 GB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007868/0.3391, allocations: 0.4976 MB / 0.5117 GB, free: 44.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008317/0.34, allocations: 165 kB / 0.5118 GB, free: 44.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009864/0.3499, allocations: 7.078 MB / 0.5187 GB, free: 41.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.3504, allocations: 1.021 MB / 0.5197 GB, free: 40.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004558/0.3509, allocations: 132.9 kB / 0.5198 GB, free: 40.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004688/0.3514, allocations: 403.7 kB / 0.5202 GB, free: 40.28 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3514, allocations: 0 / 0.5202 GB, free: 40.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03961/0.391, allocations: 20.51 MB / 0.5403 GB, free: 28.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.84/15.23, allocations: 12 kB / 0.5403 GB, free: 28.52 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)