Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.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_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629",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.03372/0.03372, allocations: 5.393 MB / 21.03 MB, free: 1.637 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.008097/0.008097, allocations: 106 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.001198/0.001197, allocations: 194.2 kB / 25.14 MB, free: 216 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.296/1.296, 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.009629/0.009629, allocations: 2.319 MB / 303.7 MB, free: 6.496 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 99.84 kB / 419.1 MB, free: 23.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08976/0.09136, allocations: 51.2 MB / 470.3 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629): time 0.00787/0.09928, allocations: 6.895 MB / 477.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006155/0.1055, allocations: 4.021 MB / 481.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008212/0.1063, allocations: 23.94 kB / 481.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002676/0.109, allocations: 1.177 MB / 482.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002032/0.1111, allocations: 0.8701 MB / 483.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.1129, allocations: 0.6156 MB / 483.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.1144, allocations: 1.417 MB / 485.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001366/0.1158, allocations: 1.01 MB / 486.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006704/0.1165, allocations: 0.5643 MB / 486.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001152/0.1176, allocations: 0.6807 MB / 487.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001686/0.1178, allocations: 144 kB / 487.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008584/0.1187, allocations: 439.6 kB / 488.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002288/0.1189, allocations: 294.9 kB / 488.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005341/0.1195, allocations: 0.6414 MB / 489.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001838/0.1213, allocations: 1.76 MB / 490.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1214, allocations: 0 / 490.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.165e-06/0.1214, allocations: 4 kB / 490.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.1214, allocations: 0 / 490.9 MB, free: 15.15 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.003966/0.1254, allocations: 1.798 MB / 492.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.1254, allocations: 8.031 kB / 492.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001968/0.1256, allocations: 156.6 kB / 492.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002109/0.1277, allocations: 383.1 kB / 493.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001716/0.1295, allocations: 0.8085 MB / 494 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.728e-05/0.1295, allocations: 78 kB / 494.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.1297, allocations: 100 kB / 494.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/0.1316, allocations: 1.134 MB / 495.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.894e-05/0.1316, allocations: 7.984 kB / 495.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.004e-05/0.1317, allocations: 44 kB / 495.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.1318, allocations: 24 kB / 495.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.1336, allocations: 0.9447 MB / 496.4 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005809/0.1395, allocations: 4.299 MB / 0.4889 GB, free: 5.004 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002481/0.142, allocations: 1.676 MB / 0.4906 GB, free: 3.105 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006281/0.1426, allocations: 320 kB / 0.4909 GB, free: 2.781 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.804e-05/0.1427, allocations: 89.48 kB / 0.4909 GB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007924/0.1435, allocations: 466.5 kB / 0.4914 GB, free: 2.191 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.086e-06/0.1435, allocations: 0 / 0.4914 GB, free: 2.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005563/0.1491, allocations: 1.541 MB / 0.4929 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.1492, allocations: 277.5 kB / 0.4932 GB, free: 284 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009762/0.1502, allocations: 0.6682 MB / 0.4938 GB, free: 15.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.388e-05/0.1503, allocations: 37.7 kB / 0.4938 GB, free: 15.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004138/0.1507, allocations: 0.5257 MB / 0.4944 GB, free: 15.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.1509, allocations: 209.1 kB / 0.4946 GB, free: 14.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003071/0.1512, allocations: 186.4 kB / 0.4947 GB, free: 14.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1514, allocations: 386.8 kB / 0.4951 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006346/0.1521, allocations: 289.8 kB / 0.4954 GB, free: 13.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007815/0.1529, allocations: 0.5363 MB / 0.4959 GB, free: 13.31 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.1543, allocations: 0.9137 MB / 0.4968 GB, free: 12.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.1543, allocations: 4 kB / 0.4968 GB, free: 12.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002301/0.1566, allocations: 1.071 MB / 0.4978 GB, free: 11.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.52e-05/0.1567, allocations: 59.41 kB / 0.4979 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.1567, allocations: 8 kB / 0.4979 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004778/0.1572, allocations: 93.05 kB / 0.498 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008286/0.158, allocations: 215.7 kB / 0.4982 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.1596, allocations: 1.586 MB / 0.4998 GB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008021/0.1605, allocations: 123 kB / 0.4999 GB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.977e-05/0.1606, allocations: 43.98 kB / 0.4999 GB, free: 8.895 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.0004901/0.1611, allocations: 331.6 kB / 0.5002 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001847/0.1612, allocations: 83 kB / 0.5003 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/0.1632, allocations: 0.9129 MB / 0.5012 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.1632, allocations: 11.98 kB / 0.5012 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1632, allocations: 4 kB / 0.5012 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.1632, allocations: 0 / 0.5012 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005805/0.169, allocations: 2.207 MB / 0.5034 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.1691, allocations: 4 kB / 0.5034 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.1694, allocations: 83.84 kB / 0.5035 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008821/0.1703, allocations: 338.3 kB / 0.5038 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.479e-05/0.1704, allocations: 19.98 kB / 0.5038 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.1718, allocations: 0.8936 MB / 0.5047 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/0.1718, allocations: 3.938 kB / 0.5047 GB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005045/0.1769, allocations: 1.631 MB / 0.5063 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003894/0.1773, allocations: 219.9 kB / 0.5065 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.1774, allocations: 19.98 kB / 0.5065 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000572/0.178, allocations: 47.97 kB / 0.5065 GB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.597e-05/0.1781, allocations: 44.38 kB / 0.5066 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.509e-05/0.1782, allocations: 27.98 kB / 0.5066 GB, free: 1.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006522/0.1789, allocations: 467 kB / 0.5071 GB, free: 1.348 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.793e-06/0.1789, allocations: 0 / 0.5071 GB, free: 1.348 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001061/0.1799, allocations: 315 kB / 0.5074 GB, free: 1.039 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.1911/0.3711, allocations: 2.733 MB / 0.51 GB, free: 45.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00201/0.3731, allocations: 0.9692 MB / 0.511 GB, free: 44.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3731, allocations: 0.9375 kB / 0.511 GB, free: 44.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008187/0.374, allocations: 475.7 kB / 0.5114 GB, free: 44.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009916/0.375, allocations: 178.5 kB / 0.5116 GB, free: 44.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.3853, allocations: 6.97 MB / 0.5184 GB, free: 41.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006769/0.386, allocations: 1.01 MB / 0.5194 GB, free: 40.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004905/0.3865, allocations: 129.6 kB / 0.5195 GB, free: 40.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/0.387, allocations: 392 kB / 0.5199 GB, free: 40.3 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.387, allocations: 1.375 kB / 0.5199 GB, free: 40.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05055/0.4375, allocations: 20.96 MB / 0.5404 GB, free: 28.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/15.76, allocations: 7.938 kB / 0.5404 GB, free: 28.39 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe 2>&1)