Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.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_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",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.03225/0.03225, allocations: 5.393 MB / 21.03 MB, free: 1.555 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.001003/0.001002, allocations: 106.8 kB / 23.03 MB, free: 0.7812 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.001077/0.001077, allocations: 200.1 kB / 25.16 MB, free: 152 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.228/1.228, allocations: 222.9 MB / 250 MB, free: 8.379 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008913/0.008913, allocations: 2.318 MB / 303.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 95.86 kB / 419.2 MB, free: 23.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.08717, allocations: 51.21 MB / 470.4 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808): time 0.008432/0.09565, allocations: 6.854 MB / 477.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006566/0.1022, allocations: 3.935 MB / 481.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009837/0.1033, allocations: 20 kB / 481.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002963/0.1063, allocations: 1.181 MB / 482.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002188/0.1085, allocations: 0.8701 MB / 483.2 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.1103, allocations: 0.551 MB / 483.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001324/0.1117, allocations: 1.413 MB / 485.2 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.1129, allocations: 1.013 MB / 486.2 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005509/0.1134, allocations: 0.5604 MB / 486.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000704/0.1142, allocations: 0.6887 MB / 487.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001591/0.1143, allocations: 144 kB / 487.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007362/0.1151, allocations: 439.7 kB / 488 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002503/0.1153, allocations: 314.9 kB / 488.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005162/0.1159, allocations: 0.6336 MB / 489 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001752/0.1176, allocations: 1.806 MB / 490.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/0.1176, allocations: 0 / 490.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1177, allocations: 7.875 kB / 490.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.1177, allocations: 0 / 490.8 MB, free: 15.34 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.00375/0.1214, allocations: 1.843 MB / 492.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1215, allocations: 12.03 kB / 492.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001757/0.1217, allocations: 164.9 kB / 492.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00206/0.1237, allocations: 383.8 kB / 493.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/0.1254, allocations: 0.8325 MB / 494 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.306e-05/0.1255, allocations: 82.08 kB / 494.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.1257, allocations: 108 kB / 494.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00204/0.1277, allocations: 1.173 MB / 495.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.814e-05/0.1277, allocations: 0 / 495.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.1279, allocations: 48 kB / 495.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.008e-05/0.1279, allocations: 24 kB / 495.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002019/0.1299, allocations: 1.073 MB / 496.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005775/0.1357, allocations: 4.354 MB / 0.4891 GB, free: 4.875 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002564/0.1383, allocations: 1.736 MB / 0.4908 GB, free: 2.926 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006203/0.1389, allocations: 325.3 kB / 0.4911 GB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.593e-05/0.139, allocations: 97.64 kB / 0.4912 GB, free: 2.492 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008123/0.1398, allocations: 465.7 kB / 0.4917 GB, free: 2.008 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.615e-06/0.1399, allocations: 0 / 0.4917 GB, free: 2.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.005577/0.1454, allocations: 1.597 MB / 0.4932 GB, free: 380 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.1456, allocations: 230.1 kB / 0.4934 GB, free: 100 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007909/0.1464, allocations: 0.6525 MB / 0.4941 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.325e-05/0.1464, allocations: 37.7 kB / 0.4941 GB, free: 15.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/0.1468, allocations: 0.5428 MB / 0.4946 GB, free: 14.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.147, allocations: 238 kB / 0.4949 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.1472, allocations: 190.5 kB / 0.495 GB, free: 14.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1474, allocations: 382.8 kB / 0.4954 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/0.148, allocations: 301.8 kB / 0.4957 GB, free: 13.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007571/0.1488, allocations: 0.5347 MB / 0.4962 GB, free: 13.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.1501, allocations: 0.936 MB / 0.4971 GB, free: 12.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.1502, allocations: 4 kB / 0.4971 GB, free: 12.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002123/0.1523, allocations: 1.118 MB / 0.4982 GB, free: 10.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/0.1524, allocations: 59.41 kB / 0.4983 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.1524, allocations: 8 kB / 0.4983 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/0.1528, allocations: 92.72 kB / 0.4984 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008246/0.1537, allocations: 223.8 kB / 0.4986 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.1551, allocations: 1.585 MB / 0.5001 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007289/0.1558, allocations: 111.4 kB / 0.5003 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/0.1559, allocations: 47.92 kB / 0.5003 GB, free: 8.617 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.000464/0.1564, allocations: 343.1 kB / 0.5006 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.1566, allocations: 83.48 kB / 0.5007 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.1586, allocations: 1.007 MB / 0.5017 GB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.1586, allocations: 8 kB / 0.5017 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1587, allocations: 0 / 0.5017 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.1587, allocations: 3.984 kB / 0.5017 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005979/0.1647, allocations: 2.31 MB / 0.504 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.1647, allocations: 3.984 kB / 0.504 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003719/0.1651, allocations: 91.89 kB / 0.504 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008059/0.1659, allocations: 330.3 kB / 0.5044 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.25e-05/0.1659, allocations: 31.97 kB / 0.5044 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.1672, allocations: 0.8936 MB / 0.5053 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1672, allocations: 0 / 0.5053 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002638/0.1699, allocations: 1.414 MB / 0.5066 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003535/0.1702, allocations: 228.3 kB / 0.5069 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.1704, allocations: 20 kB / 0.5069 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005935/0.171, allocations: 51.95 kB / 0.5069 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.375e-05/0.1711, allocations: 36.52 kB / 0.507 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.083e-05/0.1712, allocations: 35.95 kB / 0.507 GB, free: 1.523 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006056/0.1718, allocations: 459 kB / 0.5074 GB, free: 1.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1718, allocations: 0 / 0.5074 GB, free: 1.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009682/0.1728, allocations: 319.2 kB / 0.5077 GB, free: 0.7695 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.189/0.3618, allocations: 2.516 MB / 0.5102 GB, free: 45.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00198/0.3638, allocations: 0.9964 MB / 0.5112 GB, free: 45.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3639, allocations: 0 / 0.5112 GB, free: 45.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008046/0.3647, allocations: 0.493 MB / 0.5117 GB, free: 45.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008765/0.3656, allocations: 160.2 kB / 0.5118 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009887/0.3755, allocations: 7.087 MB / 0.5187 GB, free: 41.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004578/0.3759, allocations: 1.016 MB / 0.5197 GB, free: 40.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004523/0.3764, allocations: 127.5 kB / 0.5198 GB, free: 40.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004672/0.3769, allocations: 398.7 kB / 0.5202 GB, free: 40.59 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3769, allocations: 0.5 kB / 0.5202 GB, free: 40.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04207/0.419, allocations: 20.52 MB / 0.5403 GB, free: 28.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.83/15.25, allocations: 10.02 kB / 0.5403 GB, free: 28.97 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808_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_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe 2>&1)