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.02911/0.02911, allocations: 5.397 MB / 21.03 MB, free: 1.59 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.001159/0.001159, allocations: 97.88 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.001241/0.001241, allocations: 201.7 kB / 25.16 MB, free: 180 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.284/1.284, allocations: 222.9 MB / 250 MB, free: 8.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009417/0.009417, allocations: 2.31 MB / 303.7 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003041/0.003041, allocations: 111.8 kB / 422.7 MB, free: 19.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08247/0.08552, allocations: 51.2 MB / 473.9 MB, free: 212 kB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004): time 0.008329/0.09389, allocations: 6.858 MB / 480.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005993/0.09991, allocations: 3.947 MB / 484.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006166/0.1006, allocations: 20 kB / 484.7 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002562/0.1032, allocations: 1.158 MB / 485.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00184/0.105, allocations: 0.8545 MB / 486.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001529/0.1065, allocations: 0.5477 MB / 487.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001646/0.1082, allocations: 1.405 MB / 488.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001484/0.1097, allocations: 1.017 MB / 489.7 MB, free: 324 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007635/0.1105, allocations: 0.5604 MB / 490.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009118/0.1114, allocations: 0.6945 MB / 490.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001892/0.1116, allocations: 144 kB / 491.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008361/0.1124, allocations: 431.6 kB / 491.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002784/0.1127, allocations: 310.9 kB / 491.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006288/0.1134, allocations: 0.6414 MB / 492.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00213/0.1155, allocations: 1.813 MB / 494.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1155, allocations: 0 / 494.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1155, allocations: 0 / 494.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.1155, 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.00411/0.1197, allocations: 1.843 MB / 496.1 MB, free: 9.816 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1197, allocations: 12.03 kB / 496.1 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001922/0.1199, allocations: 164.9 kB / 496.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002148/0.1221, allocations: 383.8 kB / 496.7 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001818/0.1239, allocations: 0.8326 MB / 497.5 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.951e-05/0.124, allocations: 78.08 kB / 497.6 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/0.1241, allocations: 112 kB / 497.7 MB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/0.1263, allocations: 1.169 MB / 498.8 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.1263, allocations: 0 / 498.8 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.1264, allocations: 48 kB / 498.9 MB, free: 6.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.718e-05/0.1264, allocations: 32 kB / 498.9 MB, free: 6.887 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002209/0.1287, allocations: 1.07 MB / 500 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006468/0.1351, allocations: 4.362 MB / 0.4925 GB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002867/0.138, allocations: 1.728 MB / 0.4942 GB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006968/0.1387, allocations: 333.3 kB / 0.4945 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.1388, allocations: 93.66 kB / 0.4946 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008898/0.1397, allocations: 469.7 kB / 0.4951 GB, free: 14.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=69): time 2.344e-06/0.1398, allocations: 0 / 0.4951 GB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=69): time 0.005761/0.1455, allocations: 1.589 MB / 0.4966 GB, free: 12.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.1457, allocations: 222.2 kB / 0.4968 GB, free: 12.49 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008738/0.1466, allocations: 0.6603 MB / 0.4975 GB, free: 11.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.333e-05/0.1466, allocations: 41.7 kB / 0.4975 GB, free: 11.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000437/0.1471, allocations: 0.5312 MB / 0.498 GB, free: 11.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/0.1473, allocations: 250 kB / 0.4983 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000298/0.1476, allocations: 186.5 kB / 0.4985 GB, free: 10.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.1478, allocations: 386.8 kB / 0.4988 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000665/0.1485, allocations: 297.8 kB / 0.4991 GB, free: 10.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008624/0.1494, allocations: 0.5348 MB / 0.4996 GB, free: 9.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.1509, allocations: 0.9399 MB / 0.5005 GB, free: 8.426 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.151, allocations: 4 kB / 0.5006 GB, free: 8.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002291/0.1533, allocations: 1.114 MB / 0.5016 GB, free: 7.285 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.882e-05/0.1533, allocations: 67.41 kB / 0.5017 GB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.1533, allocations: 8 kB / 0.5017 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00044/0.1538, allocations: 84.72 kB / 0.5018 GB, free: 7.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007887/0.1546, allocations: 223.6 kB / 0.502 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/0.1562, allocations: 1.585 MB / 0.5036 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006917/0.1569, allocations: 119.2 kB / 0.5037 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.37e-05/0.157, allocations: 48.08 kB / 0.5037 GB, free: 4.996 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.0004375/0.1574, allocations: 335.2 kB / 0.504 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.1576, allocations: 87.47 kB / 0.5041 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.1596, allocations: 1.011 MB / 0.5051 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.1597, allocations: 8 kB / 0.5051 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.1597, allocations: 0 / 0.5051 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.1597, allocations: 7.984 kB / 0.5051 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005982/0.1657, allocations: 2.306 MB / 0.5074 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1657, allocations: 0 / 0.5074 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.166, allocations: 95.89 kB / 0.5075 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000842/0.1669, allocations: 334.3 kB / 0.5078 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.009e-05/0.167, allocations: 19.98 kB / 0.5078 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1531/0.3201, allocations: 0.8958 MB / 0.5087 GB, free: 46.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3202, allocations: 0.8438 kB / 0.5087 GB, free: 46.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/0.3228, allocations: 1.408 MB / 0.5101 GB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002872/0.3231, allocations: 226.7 kB / 0.5103 GB, free: 45.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.3232, allocations: 22.11 kB / 0.5103 GB, free: 45.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005362/0.3237, allocations: 44.42 kB / 0.5103 GB, free: 45.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.833e-05/0.3238, allocations: 41.23 kB / 0.5104 GB, free: 45.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.41e-05/0.3239, allocations: 32.31 kB / 0.5104 GB, free: 45.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005266/0.3244, allocations: 458.5 kB / 0.5108 GB, free: 45.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3245, allocations: 0 / 0.5108 GB, free: 45.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008613/0.3253, allocations: 325.7 kB / 0.5112 GB, free: 45.75 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.00428/0.3296, allocations: 2.532 MB / 0.5136 GB, free: 44.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.3313, allocations: 0.991 MB / 0.5146 GB, free: 44.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3313, allocations: 3.781 kB / 0.5146 GB, free: 44.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007487/0.332, allocations: 0.4927 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.0007331/0.3328, allocations: 149.1 kB / 0.5152 GB, free: 44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009353/0.3421, allocations: 7.098 MB / 0.5222 GB, free: 40.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.3426, allocations: 1.013 MB / 0.5231 GB, free: 39.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004234/0.343, allocations: 127.5 kB / 0.5233 GB, free: 39.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004043/0.3434, allocations: 398.1 kB / 0.5236 GB, free: 39.02 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3434, allocations: 0 / 0.5236 GB, free: 39.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6532/0.9967, allocations: 20.52 MB / 0.5437 GB, free: 25.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.17/17.17, allocations: 8.562 kB / 0.5437 GB, free: 25.41 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004_fmu --startTime=0 --stopTime=5.8752e+06 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe 2>&1)