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.02906/0.02906, allocations: 5.399 MB / 21.03 MB, free: 1.578 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.001029/0.001029, allocations: 99.2 kB / 23.02 MB, free: 0.793 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.001139/0.001139, allocations: 196.8 kB / 25.15 MB, free: 160 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.308/1.308, allocations: 222.9 MB / 250 MB, free: 8.441 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00951/0.00951, allocations: 2.322 MB / 303.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 99.84 kB / 419.1 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08157/0.08337, allocations: 51.21 MB / 470.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629): time 0.007774/0.09118, allocations: 6.886 MB / 477.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006/0.09722, allocations: 4.017 MB / 481.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009394/0.09819, allocations: 23.94 kB / 481.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002815/0.101, allocations: 1.185 MB / 482.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002161/0.1032, allocations: 0.8775 MB / 483.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.1051, allocations: 0.6127 MB / 484 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001822/0.107, allocations: 1.413 MB / 485.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001587/0.1086, allocations: 1.013 MB / 486.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008134/0.1094, allocations: 0.572 MB / 486.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01166/0.1211, allocations: 0.6768 MB / 487.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004705/0.1216, allocations: 140 kB / 487.8 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.1227, allocations: 435.7 kB / 488.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003513/0.123, allocations: 298.9 kB / 488.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008105/0.1239, allocations: 0.6375 MB / 489.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002331/0.1262, allocations: 1.76 MB / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1262, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1262, allocations: 4 kB / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.201e-05/0.1263, 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.004233/0.1305, allocations: 1.798 MB / 492.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1306, allocations: 8.031 kB / 492.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001673/0.1308, allocations: 156.6 kB / 492.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002056/0.1328, allocations: 383.1 kB / 493.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001664/0.1345, allocations: 0.8046 MB / 494 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.316e-05/0.1346, allocations: 82 kB / 494.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.1347, allocations: 104 kB / 494.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.1365, allocations: 1.134 MB / 495.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.1366, allocations: 3.938 kB / 495.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.592e-05/0.1367, allocations: 44 kB / 495.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.815e-05/0.1367, allocations: 24 kB / 495.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.1385, allocations: 0.9447 MB / 496.4 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005392/0.1439, allocations: 4.303 MB / 0.4889 GB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/0.1462, allocations: 1.674 MB / 0.4906 GB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006036/0.1468, allocations: 318.1 kB / 0.4909 GB, free: 2.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.958e-05/0.1469, allocations: 93.48 kB / 0.4909 GB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007768/0.1477, allocations: 466.5 kB / 0.4914 GB, free: 2.156 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.685e-06/0.1477, allocations: 0 / 0.4914 GB, free: 2.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.00569/0.1534, allocations: 1.541 MB / 0.4929 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.1535, allocations: 273.6 kB / 0.4932 GB, free: 252 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008003/0.1543, allocations: 0.6721 MB / 0.4938 GB, free: 15.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.921e-05/0.1544, allocations: 37.7 kB / 0.4938 GB, free: 15.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003291/0.1547, allocations: 0.5178 MB / 0.4944 GB, free: 14.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.1549, allocations: 213.1 kB / 0.4946 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002494/0.1551, allocations: 190.4 kB / 0.4947 GB, free: 14.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1553, allocations: 394.8 kB / 0.4951 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005976/0.1559, allocations: 277.9 kB / 0.4954 GB, free: 13.92 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007465/0.1566, allocations: 0.5441 MB / 0.4959 GB, free: 13.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.158, allocations: 0.9098 MB / 0.4968 GB, free: 12.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.158, allocations: 7.938 kB / 0.4968 GB, free: 12.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00206/0.1601, allocations: 1.071 MB / 0.4979 GB, free: 11.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.653e-05/0.1601, allocations: 63.69 kB / 0.4979 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.1601, allocations: 8 kB / 0.4979 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005213/0.1607, allocations: 88.78 kB / 0.498 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008528/0.1615, allocations: 215.7 kB / 0.4982 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.163, allocations: 1.574 MB / 0.4997 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008159/0.1638, allocations: 119 kB / 0.4999 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.002e-05/0.1639, allocations: 47.97 kB / 0.4999 GB, free: 8.867 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.0004624/0.1644, allocations: 339.6 kB / 0.5002 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.1645, allocations: 83 kB / 0.5003 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.1664, allocations: 0.9168 MB / 0.5012 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.1664, allocations: 8 kB / 0.5012 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.1664, allocations: 0 / 0.5012 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1664, allocations: 0 / 0.5012 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005851/0.1723, allocations: 2.211 MB / 0.5034 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.1723, allocations: 4 kB / 0.5034 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003452/0.1726, allocations: 87.83 kB / 0.5035 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007931/0.1734, allocations: 322.3 kB / 0.5038 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.601e-05/0.1735, allocations: 35.95 kB / 0.5038 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.1748, allocations: 0.8819 MB / 0.5047 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.1748, allocations: 3.938 kB / 0.5047 GB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005401/0.1802, allocations: 1.631 MB / 0.5063 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003433/0.1805, allocations: 223.9 kB / 0.5065 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.1807, allocations: 20 kB / 0.5065 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005659/0.1813, allocations: 43.97 kB / 0.5065 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.122e-05/0.1814, allocations: 40.38 kB / 0.5066 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.996e-05/0.1814, allocations: 35.97 kB / 0.5066 GB, free: 1.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005571/0.182, allocations: 463 kB / 0.507 GB, free: 1.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.182, allocations: 0 / 0.507 GB, free: 1.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000914/0.1829, allocations: 315 kB / 0.5073 GB, free: 1.012 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.1837/0.3667, allocations: 2.736 MB / 0.51 GB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.3687, allocations: 0.9686 MB / 0.511 GB, free: 44.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3687, allocations: 0 / 0.511 GB, free: 44.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008519/0.3695, allocations: 479.3 kB / 0.5114 GB, free: 44.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009874/0.3705, allocations: 189.3 kB / 0.5116 GB, free: 44.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.3814, allocations: 6.96 MB / 0.5184 GB, free: 41.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006556/0.3821, allocations: 1.012 MB / 0.5194 GB, free: 40.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005401/0.3826, allocations: 125.7 kB / 0.5195 GB, free: 40.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004787/0.3831, allocations: 393.1 kB / 0.5199 GB, free: 40.27 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3831, allocations: 0 / 0.5199 GB, free: 40.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0522/0.4353, allocations: 20.97 MB / 0.5404 GB, free: 28.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/15.47, allocations: 3.938 kB / 0.5404 GB, free: 28.32 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)