Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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.05283/0.05283, allocations: 5.394 MB / 21.03 MB, free: 1.621 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.01071/0.01071, allocations: 100.6 kB / 23.03 MB, free: 0.8047 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.002113/0.002113, allocations: 184.2 kB / 25.15 MB, free: 200 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.406/1.406, allocations: 222.9 MB / 250 MB, free: 8.426 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01011/0.01011, allocations: 2.331 MB / 303.7 MB, free: 6.453 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002708/0.002708, allocations: 95.84 kB / 422.7 MB, free: 19.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08513/0.08785, allocations: 51.22 MB / 473.9 MB, free: 220 kB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004): time 0.008783/0.09666, allocations: 6.859 MB / 480.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006213/0.1029, allocations: 3.943 MB / 484.7 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004778/0.1034, allocations: 19.94 kB / 484.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002719/0.1062, allocations: 1.162 MB / 485.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001866/0.108, allocations: 0.8542 MB / 486.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001588/0.1096, allocations: 0.5351 MB / 487.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.1112, allocations: 1.417 MB / 488.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.1127, allocations: 1.028 MB / 489.7 MB, free: 316 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007051/0.1134, allocations: 0.5565 MB / 490.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000883/0.1143, allocations: 0.6868 MB / 490.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002002/0.1145, allocations: 144 kB / 491.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000787/0.1153, allocations: 431.7 kB / 491.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000287/0.1156, allocations: 307 kB / 491.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006377/0.1162, allocations: 0.6491 MB / 492.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002116/0.1184, allocations: 1.81 MB / 494.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1184, allocations: 4 kB / 494.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1184, allocations: 0 / 494.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.1184, allocations: 0 / 494.3 MB, free: 11.73 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.004221/0.1226, allocations: 1.843 MB / 496.1 MB, free: 9.816 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.1227, allocations: 8.031 kB / 496.1 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002041/0.1229, allocations: 160.9 kB / 496.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002214/0.1251, allocations: 395.8 kB / 496.7 MB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.1269, allocations: 0.8287 MB / 497.5 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.059e-05/0.127, allocations: 78.08 kB / 497.6 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.1272, allocations: 112 kB / 497.7 MB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.1294, allocations: 1.173 MB / 498.9 MB, free: 6.961 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.1295, allocations: 0 / 498.9 MB, free: 6.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.1296, allocations: 48 kB / 498.9 MB, free: 6.914 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.1296, allocations: 24 kB / 498.9 MB, free: 6.891 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002258/0.1319, allocations: 1.07 MB / 500 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006492/0.1384, allocations: 4.35 MB / 0.4925 GB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002932/0.1413, allocations: 1.74 MB / 0.4942 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007096/0.1421, allocations: 327.2 kB / 0.4945 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.1422, allocations: 93.66 kB / 0.4946 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008857/0.1431, allocations: 461.8 kB / 0.4951 GB, free: 14.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=69): time 2.224e-06/0.1431, allocations: 0 / 0.4951 GB, free: 14.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=69): time 0.005915/0.149, allocations: 1.597 MB / 0.4966 GB, free: 12.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.1492, allocations: 226.1 kB / 0.4968 GB, free: 12.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008736/0.1501, allocations: 0.6525 MB / 0.4975 GB, free: 11.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.93e-05/0.1501, allocations: 49.69 kB / 0.4975 GB, free: 11.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004557/0.1506, allocations: 0.5312 MB / 0.498 GB, free: 11.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/0.1508, allocations: 249.9 kB / 0.4983 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002989/0.1511, allocations: 186.5 kB / 0.4985 GB, free: 10.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.1514, allocations: 390.8 kB / 0.4988 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006822/0.1521, allocations: 293.8 kB / 0.4991 GB, free: 10.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008987/0.153, allocations: 0.5309 MB / 0.4996 GB, free: 9.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.1546, allocations: 0.9438 MB / 0.5005 GB, free: 8.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1546, allocations: 4 kB / 0.5006 GB, free: 8.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002368/0.157, allocations: 1.114 MB / 0.5016 GB, free: 7.289 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.894e-05/0.1571, allocations: 63.41 kB / 0.5017 GB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.1571, allocations: 8 kB / 0.5017 GB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004834/0.1576, allocations: 89 kB / 0.5018 GB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009001/0.1585, allocations: 219.7 kB / 0.502 GB, free: 6.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.1602, allocations: 1.586 MB / 0.5036 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007339/0.161, allocations: 119.2 kB / 0.5037 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-05/0.161, allocations: 47.98 kB / 0.5037 GB, free: 5.004 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.0005021/0.1616, allocations: 343.1 kB / 0.504 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.1617, allocations: 83.55 kB / 0.5041 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/0.164, allocations: 1.014 MB / 0.5051 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.1641, allocations: 8 kB / 0.5051 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.1641, allocations: 0 / 0.5051 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.1641, allocations: 3.984 kB / 0.5051 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006258/0.1703, allocations: 2.302 MB / 0.5074 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.1704, allocations: 0 / 0.5074 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/0.1708, allocations: 99.83 kB / 0.5075 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008535/0.1716, allocations: 330.3 kB / 0.5078 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.969e-05/0.1717, allocations: 23.98 kB / 0.5078 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1661/0.3378, allocations: 0.8933 MB / 0.5087 GB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3378, allocations: 1.594 kB / 0.5087 GB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002877/0.3407, allocations: 1.407 MB / 0.51 GB, free: 46.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/0.341, allocations: 225.9 kB / 0.5103 GB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.3411, allocations: 21.7 kB / 0.5103 GB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000572/0.3417, allocations: 50.02 kB / 0.5103 GB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.815e-05/0.3418, allocations: 41.16 kB / 0.5104 GB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.82e-05/0.3419, allocations: 39.92 kB / 0.5104 GB, free: 46.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005499/0.3425, allocations: 455.1 kB / 0.5108 GB, free: 46.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3425, allocations: 0 / 0.5108 GB, free: 46.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008648/0.3433, allocations: 323.8 kB / 0.5112 GB, free: 46.01 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.004589/0.3479, allocations: 2.513 MB / 0.5136 GB, free: 44.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.3497, allocations: 0.9931 MB / 0.5146 GB, free: 44.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3497, allocations: 1.344 kB / 0.5146 GB, free: 44.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007866/0.3505, allocations: 0.4987 MB / 0.5151 GB, free: 44.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007684/0.3513, allocations: 158 kB / 0.5152 GB, free: 44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009901/0.3612, allocations: 7.085 MB / 0.5221 GB, free: 40.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.3617, allocations: 1.022 MB / 0.5231 GB, free: 39.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004451/0.3621, allocations: 129.8 kB / 0.5233 GB, free: 39.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004373/0.3626, allocations: 398.6 kB / 0.5236 GB, free: 39.01 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3626, allocations: 4 kB / 0.5236 GB, free: 39.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04624/0.4088, allocations: 20.51 MB / 0.5437 GB, free: 25.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.52/16.93, allocations: 4.562 kB / 0.5437 GB, free: 25.33 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Measurement_20160626_to_20161004.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe 2>&1)