Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.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_Comax_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004",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.03494/0.03494, allocations: 5.394 MB / 21.03 MB, free: 1.625 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.007327/0.007327, allocations: 90.59 kB / 23.03 MB, free: 0.8086 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.001412/0.001412, allocations: 194.6 kB / 25.14 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.39/1.39, allocations: 222.9 MB / 250 MB, free: 8.422 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009905/0.009905, allocations: 2.327 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002627/0.002627, allocations: 103.8 kB / 419.2 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08589/0.08853, allocations: 51.2 MB / 470.3 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004): time 0.009485/0.09806, allocations: 6.901 MB / 477.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006882/0.105, allocations: 4.025 MB / 481.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008588/0.1059, allocations: 23.94 kB / 481.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002857/0.1088, allocations: 1.169 MB / 482.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002312/0.1111, allocations: 0.874 MB / 483.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0019/0.113, allocations: 0.6161 MB / 484 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001752/0.1148, allocations: 1.419 MB / 485.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00144/0.1162, allocations: 1.013 MB / 486.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007604/0.117, allocations: 0.5681 MB / 487 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009401/0.118, allocations: 0.673 MB / 487.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002059/0.1182, allocations: 140 kB / 487.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000879/0.1191, allocations: 435.7 kB / 488.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002827/0.1194, allocations: 306.8 kB / 488.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006418/0.12, allocations: 0.6258 MB / 489.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00244/0.1225, allocations: 1.767 MB / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1225, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1225, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.451e-05/0.1225, allocations: 0 / 490.9 MB, free: 15.12 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.00436/0.1269, allocations: 1.839 MB / 492.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1269, allocations: 12.03 kB / 492.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001942/0.1271, allocations: 156.6 kB / 492.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002154/0.1293, allocations: 387.8 kB / 493.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001794/0.1311, allocations: 0.8168 MB / 494.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.481e-05/0.1312, allocations: 81.94 kB / 494.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.1314, allocations: 108 kB / 494.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/0.1335, allocations: 1.126 MB / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.694e-05/0.1335, allocations: 0 / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.1336, allocations: 44 kB / 495.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.1337, allocations: 24 kB / 495.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002065/0.1357, allocations: 0.9486 MB / 496.4 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006805/0.1426, allocations: 4.319 MB / 0.489 GB, free: 4.898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002778/0.1454, allocations: 1.658 MB / 0.4906 GB, free: 3.016 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007259/0.1461, allocations: 322 kB / 0.4909 GB, free: 2.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.1462, allocations: 97.47 kB / 0.491 GB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008727/0.1471, allocations: 458.6 kB / 0.4915 GB, free: 2.102 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.294e-06/0.1471, allocations: 0 / 0.4915 GB, free: 2.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005741/0.1529, allocations: 1.553 MB / 0.493 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001678/0.1531, allocations: 277.6 kB / 0.4932 GB, free: 180 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009553/0.154, allocations: 0.6682 MB / 0.4939 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.442e-05/0.1541, allocations: 37.7 kB / 0.4939 GB, free: 15.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004459/0.1545, allocations: 0.5233 MB / 0.4944 GB, free: 14.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.1548, allocations: 230.2 kB / 0.4947 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003009/0.1551, allocations: 190.5 kB / 0.4948 GB, free: 14.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.1553, allocations: 386.8 kB / 0.4952 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006498/0.1559, allocations: 277.8 kB / 0.4955 GB, free: 13.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00088/0.1568, allocations: 0.548 MB / 0.496 GB, free: 13.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001545/0.1584, allocations: 0.9218 MB / 0.4969 GB, free: 12.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.1584, allocations: 4 kB / 0.4969 GB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002298/0.1607, allocations: 1.075 MB / 0.498 GB, free: 11.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.505e-05/0.1608, allocations: 59.41 kB / 0.498 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.1608, allocations: 8 kB / 0.498 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004753/0.1613, allocations: 92.72 kB / 0.4981 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008468/0.1621, allocations: 219.7 kB / 0.4983 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001714/0.1639, allocations: 1.582 MB / 0.4999 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007752/0.1646, allocations: 103.5 kB / 0.5 GB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.723e-05/0.1647, allocations: 47.98 kB / 0.5 GB, free: 8.777 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.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 (117): * Single equations (assignments): 114 * 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.0005543/0.1653, allocations: 343.5 kB / 0.5003 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.1655, allocations: 95.41 kB / 0.5004 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.1675, allocations: 0.9052 MB / 0.5013 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.1676, allocations: 7.984 kB / 0.5013 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1676, allocations: 4 kB / 0.5013 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.1676, allocations: 0 / 0.5013 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006027/0.1736, allocations: 2.219 MB / 0.5035 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.1736, allocations: 64 / 0.5035 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003538/0.174, allocations: 87.91 kB / 0.5036 GB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008595/0.1749, allocations: 334.3 kB / 0.5039 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-05/0.1749, allocations: 23.98 kB / 0.5039 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.1764, allocations: 0.8897 MB / 0.5048 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.1764, allocations: 8 kB / 0.5048 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00526/0.1817, allocations: 1.627 MB / 0.5064 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.182, allocations: 224.4 kB / 0.5066 GB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.1822, allocations: 23.92 kB / 0.5066 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005399/0.1827, allocations: 43.97 kB / 0.5067 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.1828, allocations: 48.38 kB / 0.5067 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-05/0.1829, allocations: 23.98 kB / 0.5067 GB, free: 1.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006493/0.1836, allocations: 463 kB / 0.5072 GB, free: 1.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1836, allocations: 0 / 0.5072 GB, free: 1.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009783/0.1846, allocations: 327.1 kB / 0.5075 GB, free: 0.8906 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.1886/0.3732, allocations: 2.736 MB / 0.5102 GB, free: 45.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.3755, allocations: 0.962 MB / 0.5111 GB, free: 45.24 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3755, allocations: 0 / 0.5111 GB, free: 45.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009199/0.3765, allocations: 493.5 kB / 0.5116 GB, free: 45.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.3776, allocations: 182.2 kB / 0.5117 GB, free: 45.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01122/0.3888, allocations: 7.003 MB / 0.5186 GB, free: 41.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.3893, allocations: 1.009 MB / 0.5196 GB, free: 40.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004999/0.3898, allocations: 116.3 kB / 0.5197 GB, free: 40.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004451/0.3903, allocations: 390.7 kB / 0.52 GB, free: 40.52 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3903, allocations: 0 / 0.52 GB, free: 40.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07692/0.4672, allocations: 20.63 MB / 0.5402 GB, free: 28.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.7/16.17, allocations: 12.61 kB / 0.5402 GB, free: 28.78 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004_res.csv --start-time 0 --stop-time 5.8752e+06 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.pipe 2>&1)