Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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.02712/0.02712, allocations: 5.397 MB / 21.03 MB, free: 1.633 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.006646/0.006646, allocations: 105.9 kB / 23.03 MB, free: 0.832 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.001125/0.001125, allocations: 196.3 kB / 25.15 MB, free: 212 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.232/1.232, 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.009146/0.009146, allocations: 2.325 MB / 303.7 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 95.86 kB / 419.1 MB, free: 22.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0767/0.07836, allocations: 51.2 MB / 470.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704): time 0.007878/0.08626, allocations: 6.857 MB / 477.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005854/0.09215, allocations: 3.943 MB / 481.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007759/0.09295, allocations: 19.94 kB / 481.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002735/0.0957, allocations: 1.162 MB / 482.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002056/0.09776, allocations: 0.8545 MB / 483.2 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.09946, allocations: 0.5502 MB / 483.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001765/0.1012, allocations: 1.402 MB / 485.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001447/0.1027, allocations: 1.026 MB / 486.2 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008096/0.1035, allocations: 0.5565 MB / 486.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009729/0.1045, allocations: 0.7002 MB / 487.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000275/0.1048, allocations: 140 kB / 487.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008481/0.1056, allocations: 439.7 kB / 488 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000272/0.1059, allocations: 314.9 kB / 488.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007/0.1066, allocations: 0.6375 MB / 488.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002152/0.1088, allocations: 1.795 MB / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1088, allocations: 0 / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1088, allocations: 0 / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.97e-05/0.1089, allocations: 4 kB / 490.7 MB, free: 15.26 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.004265/0.1131, allocations: 1.81 MB / 492.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1132, allocations: 12.03 kB / 492.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000213/0.1134, allocations: 156.9 kB / 492.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002052/0.1155, allocations: 383.1 kB / 493.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001709/0.1172, allocations: 0.8281 MB / 493.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.981e-05/0.1173, allocations: 78.08 kB / 494 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.1174, allocations: 108 kB / 494.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.1193, allocations: 1.169 MB / 495.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/0.1194, allocations: 8 kB / 495.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.942e-05/0.1195, allocations: 48 kB / 495.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.1195, allocations: 28 kB / 495.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001916/0.1214, allocations: 1.07 MB / 496.4 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005643/0.1271, allocations: 4.341 MB / 0.489 GB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002547/0.1296, allocations: 1.732 MB / 0.4907 GB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006014/0.1303, allocations: 325.3 kB / 0.491 GB, free: 2.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.759e-05/0.1304, allocations: 97.64 kB / 0.4911 GB, free: 2.477 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007738/0.1311, allocations: 469.7 kB / 0.4916 GB, free: 1.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.114e-06/0.1312, allocations: 0 / 0.4916 GB, free: 1.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.005339/0.1365, allocations: 1.592 MB / 0.4931 GB, free: 364 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.1366, allocations: 222.2 kB / 0.4933 GB, free: 92 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000816/0.1374, allocations: 0.6524 MB / 0.494 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.937e-05/0.1375, allocations: 45.69 kB / 0.494 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003624/0.1379, allocations: 0.5141 MB / 0.4945 GB, free: 14.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.1381, allocations: 240.7 kB / 0.4947 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002591/0.1383, allocations: 186.5 kB / 0.4949 GB, free: 14.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1385, allocations: 382.8 kB / 0.4953 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006188/0.1391, allocations: 305.8 kB / 0.4956 GB, free: 13.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007789/0.1399, allocations: 0.5348 MB / 0.4961 GB, free: 13.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.1413, allocations: 0.936 MB / 0.497 GB, free: 12.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.1413, allocations: 4 kB / 0.497 GB, free: 12.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002105/0.1434, allocations: 1.11 MB / 0.4981 GB, free: 10.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.81e-05/0.1435, allocations: 71.39 kB / 0.4982 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.1435, allocations: 8 kB / 0.4982 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004484/0.144, allocations: 88.72 kB / 0.4982 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008229/0.1448, allocations: 223.9 kB / 0.4985 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/0.1463, allocations: 1.581 MB / 0.5 GB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007029/0.147, allocations: 115.1 kB / 0.5001 GB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.308e-05/0.1471, allocations: 43.98 kB / 0.5002 GB, free: 8.629 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.0004529/0.1475, allocations: 335.2 kB / 0.5005 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.1477, allocations: 83 kB / 0.5006 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001967/0.1497, allocations: 1.014 MB / 0.5015 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.1497, allocations: 4 kB / 0.5016 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1497, allocations: 0 / 0.5016 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.1497, allocations: 11.98 kB / 0.5016 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00573/0.1554, allocations: 2.298 MB / 0.5038 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.1555, allocations: 0 / 0.5038 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003629/0.1558, allocations: 99.83 kB / 0.5039 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007825/0.1566, allocations: 338.3 kB / 0.5042 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.856e-05/0.1567, allocations: 19.98 kB / 0.5042 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.1579, allocations: 0.9013 MB / 0.5051 GB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1579, allocations: 0 / 0.5051 GB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.1605, allocations: 1.402 MB / 0.5065 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003238/0.1608, allocations: 220 kB / 0.5067 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.1609, allocations: 28 kB / 0.5067 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005268/0.1615, allocations: 47.97 kB / 0.5068 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.773e-05/0.1616, allocations: 44.5 kB / 0.5068 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.159e-05/0.1616, allocations: 27.97 kB / 0.5068 GB, free: 1.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005553/0.1622, allocations: 451 kB / 0.5073 GB, free: 1.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1622, allocations: 3.938 kB / 0.5073 GB, free: 1.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000883/0.1631, allocations: 327 kB / 0.5076 GB, free: 0.793 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.1632/0.3264, allocations: 2.501 MB / 0.51 GB, free: 45.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001808/0.3282, allocations: 0.9928 MB / 0.511 GB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3282, allocations: 0 / 0.511 GB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000763/0.329, allocations: 0.4975 MB / 0.5115 GB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007929/0.3298, allocations: 159.4 kB / 0.5116 GB, free: 45.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009305/0.3391, allocations: 7.048 MB / 0.5185 GB, free: 41.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.3396, allocations: 1.024 MB / 0.5195 GB, free: 40.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004063/0.34, allocations: 122.8 kB / 0.5196 GB, free: 40.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004203/0.3405, allocations: 401.4 kB / 0.52 GB, free: 40.61 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3405, allocations: 4 kB / 0.52 GB, free: 40.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04223/0.3827, allocations: 20.87 MB / 0.5404 GB, free: 28.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.27, allocations: 6.75 kB / 0.5404 GB, free: 28.64 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe 2>&1)