Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.02929/0.02929, allocations: 5.396 MB / 21.03 MB, free: 1.586 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.001117/0.001117, allocations: 97.78 kB / 23.02 MB, free: 0.8008 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.001174/0.001174, allocations: 205 kB / 25.15 MB, free: 168 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.271/1.271, allocations: 222.9 MB / 250 MB, free: 8.434 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009218/0.009218, allocations: 2.325 MB / 303.7 MB, free: 6.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 100.1 kB / 419.1 MB, free: 23.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1075, allocations: 51.21 MB / 470.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.007952/0.1155, allocations: 6.9 MB / 477.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006305/0.1218, allocations: 4.01 MB / 481.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000918/0.1228, allocations: 27.88 kB / 481.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003076/0.1258, allocations: 1.173 MB / 482.5 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002399/0.1283, allocations: 0.8778 MB / 483.3 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.1304, allocations: 0.6036 MB / 483.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001749/0.1321, allocations: 1.417 MB / 485.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001577/0.1337, allocations: 1.007 MB / 486.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007833/0.1345, allocations: 0.572 MB / 486.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001009/0.1355, allocations: 0.6834 MB / 487.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004173/0.136, allocations: 140 kB / 487.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.1372, allocations: 431.6 kB / 488.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000335/0.1375, allocations: 302.9 kB / 488.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006689/0.1382, allocations: 0.6375 MB / 489.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00195/0.1402, allocations: 1.764 MB / 490.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1402, allocations: 0 / 490.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1402, allocations: 0 / 490.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.134e-05/0.1402, allocations: 4 kB / 490.9 MB, free: 15.14 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.004022/0.1442, allocations: 1.791 MB / 492.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.1443, allocations: 8.031 kB / 492.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.1445, allocations: 160.6 kB / 492.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/0.1465, allocations: 383.1 kB / 493.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.1482, allocations: 0.8085 MB / 494 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.069e-05/0.1483, allocations: 85.98 kB / 494.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.1484, allocations: 100 kB / 494.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.1503, allocations: 1.13 MB / 495.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.1503, allocations: 0 / 495.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-05/0.1504, allocations: 44 kB / 495.4 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.646e-05/0.1505, allocations: 24 kB / 495.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.1523, allocations: 0.9563 MB / 496.4 MB, free: 9.492 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00548/0.1578, allocations: 4.299 MB / 0.4889 GB, free: 4.988 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/0.1602, allocations: 1.666 MB / 0.4905 GB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006095/0.1608, allocations: 329.3 kB / 0.4909 GB, free: 2.766 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.76e-05/0.1609, allocations: 89.48 kB / 0.4909 GB, free: 2.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007722/0.1617, allocations: 458.6 kB / 0.4914 GB, free: 2.184 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.394e-06/0.1617, allocations: 0 / 0.4914 GB, free: 2.184 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005436/0.1671, allocations: 1.548 MB / 0.4929 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.1672, allocations: 277.6 kB / 0.4932 GB, free: 268 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007465/0.168, allocations: 0.6643 MB / 0.4938 GB, free: 15.58 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.248e-05/0.1681, allocations: 37.7 kB / 0.4938 GB, free: 15.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.1684, allocations: 0.5256 MB / 0.4944 GB, free: 15.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.1685, allocations: 209.1 kB / 0.4946 GB, free: 14.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.1688, allocations: 190.4 kB / 0.4947 GB, free: 14.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1689, allocations: 390.7 kB / 0.4951 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007164/0.1697, allocations: 285.8 kB / 0.4954 GB, free: 13.94 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007547/0.1704, allocations: 0.5363 MB / 0.4959 GB, free: 13.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.1719, allocations: 0.9176 MB / 0.4968 GB, free: 12.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.473e-06/0.1719, allocations: 4 kB / 0.4968 GB, free: 12.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002102/0.174, allocations: 1.063 MB / 0.4978 GB, free: 11.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.184e-05/0.1741, allocations: 69.64 kB / 0.4979 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.1741, allocations: 12.06 kB / 0.4979 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004644/0.1746, allocations: 88.78 kB / 0.498 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008045/0.1754, allocations: 219.6 kB / 0.4982 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/0.1769, allocations: 1.582 MB / 0.4998 GB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008424/0.1778, allocations: 110.9 kB / 0.4999 GB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-05/0.1779, allocations: 48.06 kB / 0.4999 GB, free: 8.883 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.000447/0.1783, allocations: 335.5 kB / 0.5002 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.1785, allocations: 83 kB / 0.5003 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.1803, allocations: 0.913 MB / 0.5012 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.1803, allocations: 11.94 kB / 0.5012 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1804, allocations: 0 / 0.5012 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.1804, allocations: 3.984 kB / 0.5012 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005628/0.186, allocations: 2.207 MB / 0.5034 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.186, allocations: 4 kB / 0.5034 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.1864, allocations: 83.89 kB / 0.5035 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007788/0.1872, allocations: 338.2 kB / 0.5038 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.418e-05/0.1872, allocations: 23.97 kB / 0.5038 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.1885, allocations: 0.8858 MB / 0.5047 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1885, allocations: 4 kB / 0.5047 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005057/0.1935, allocations: 1.635 MB / 0.5063 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000335/0.1939, allocations: 227.9 kB / 0.5065 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.194, allocations: 16 kB / 0.5065 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/0.1946, allocations: 47.95 kB / 0.5065 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.293e-05/0.1947, allocations: 40.39 kB / 0.5066 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-05/0.1948, allocations: 39.91 kB / 0.5066 GB, free: 1.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005714/0.1953, allocations: 463 kB / 0.5071 GB, free: 1.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1953, allocations: 0 / 0.5071 GB, free: 1.324 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009588/0.1963, allocations: 315 kB / 0.5074 GB, free: 1.016 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.1808/0.3772, allocations: 2.727 MB / 0.51 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.379, allocations: 0.9687 MB / 0.511 GB, free: 45.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.379, allocations: 0 / 0.511 GB, free: 45.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007843/0.3798, allocations: 481.9 kB / 0.5114 GB, free: 44.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009289/0.3807, allocations: 178.4 kB / 0.5116 GB, free: 44.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009583/0.3903, allocations: 6.964 MB / 0.5184 GB, free: 41.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005403/0.3909, allocations: 1.008 MB / 0.5194 GB, free: 40.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004984/0.3914, allocations: 121.5 kB / 0.5195 GB, free: 40.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004461/0.3919, allocations: 397.4 kB / 0.5199 GB, free: 40.36 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3919, allocations: 0 / 0.5199 GB, free: 40.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.047/0.4389, allocations: 20.97 MB / 0.5404 GB, free: 28.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/15.71, allocations: 3.938 kB / 0.5404 GB, free: 28.39 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)