Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.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_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",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.02818/0.02818, allocations: 5.394 MB / 21.03 MB, free: 1.566 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.001023/0.001023, allocations: 102.1 kB / 23.02 MB, free: 0.7852 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.001113/0.001113, allocations: 204 kB / 25.15 MB, free: 140 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.343/1.343, allocations: 222.9 MB / 250 MB, free: 8.367 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009115/0.009115, allocations: 2.316 MB / 303.7 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 99.84 kB / 419.2 MB, free: 22.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08598/0.08768, allocations: 51.21 MB / 470.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808): time 0.00792/0.09564, allocations: 6.849 MB / 477.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006262/0.1019, allocations: 3.939 MB / 481.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.103, allocations: 23.94 kB / 481.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002967/0.106, allocations: 1.162 MB / 482.3 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00227/0.1083, allocations: 0.8506 MB / 483.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001704/0.11, allocations: 0.5466 MB / 483.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001746/0.1118, allocations: 1.417 MB / 485.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001565/0.1134, allocations: 1.018 MB / 486.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008019/0.1142, allocations: 0.5565 MB / 486.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001011/0.1152, allocations: 0.7003 MB / 487.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002922/0.1155, allocations: 144 kB / 487.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009242/0.1164, allocations: 435.7 kB / 488 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003231/0.1168, allocations: 303 kB / 488.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008075/0.1176, allocations: 0.6452 MB / 488.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002113/0.1197, allocations: 1.795 MB / 490.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1197, allocations: 0 / 490.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1197, allocations: 4 kB / 490.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.667e-05/0.1198, allocations: 0 / 490.7 MB, free: 15.23 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.004392/0.1242, allocations: 1.813 MB / 492.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1242, allocations: 8.031 kB / 492.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000218/0.1245, allocations: 156.9 kB / 492.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002118/0.1266, allocations: 387.1 kB / 493.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001776/0.1284, allocations: 0.832 MB / 493.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.452e-05/0.1285, allocations: 78.08 kB / 494 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.1286, allocations: 111.9 kB / 494.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002156/0.1308, allocations: 1.165 MB / 495.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.1308, allocations: 0 / 495.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.131, allocations: 51.98 kB / 495.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.131, allocations: 28 kB / 495.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00216/0.1331, allocations: 1.066 MB / 496.4 MB, free: 9.375 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00645/0.1396, allocations: 4.341 MB / 0.489 GB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002655/0.1423, allocations: 1.736 MB / 0.4907 GB, free: 2.883 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006715/0.143, allocations: 327.3 kB / 0.491 GB, free: 2.559 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.043e-05/0.1431, allocations: 97.64 kB / 0.4911 GB, free: 2.445 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008203/0.1439, allocations: 469.6 kB / 0.4916 GB, free: 1.957 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 3.206e-06/0.1439, allocations: 0 / 0.4916 GB, free: 1.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.006089/0.15, allocations: 1.584 MB / 0.4931 GB, free: 340 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.1502, allocations: 226.2 kB / 0.4933 GB, free: 64 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009373/0.1511, allocations: 0.6564 MB / 0.494 GB, free: 15.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.212e-05/0.1512, allocations: 45.7 kB / 0.494 GB, free: 15.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003794/0.1516, allocations: 0.5179 MB / 0.4945 GB, free: 14.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.1518, allocations: 236.7 kB / 0.4947 GB, free: 14.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002821/0.1521, allocations: 178.5 kB / 0.4949 GB, free: 14.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1522, allocations: 394.7 kB / 0.4953 GB, free: 14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006658/0.1529, allocations: 293.8 kB / 0.4956 GB, free: 13.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007984/0.1537, allocations: 0.5348 MB / 0.4961 GB, free: 13.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.1551, allocations: 0.9438 MB / 0.497 GB, free: 12.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.1552, allocations: 0 / 0.497 GB, free: 12.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002221/0.1574, allocations: 1.118 MB / 0.4981 GB, free: 10.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.293e-05/0.1575, allocations: 67.39 kB / 0.4982 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.1575, allocations: 8 kB / 0.4982 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004942/0.158, allocations: 84.72 kB / 0.4983 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008849/0.1589, allocations: 223.7 kB / 0.4985 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.1604, allocations: 1.582 MB / 0.5 GB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000802/0.1612, allocations: 107 kB / 0.5001 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.59e-05/0.1613, allocations: 56 kB / 0.5002 GB, free: 8.598 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.0004721/0.1618, allocations: 335.2 kB / 0.5005 GB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.162, allocations: 83.06 kB / 0.5006 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/0.1641, allocations: 1.01 MB / 0.5016 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.1641, allocations: 8 kB / 0.5016 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.1641, allocations: 0 / 0.5016 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.1641, allocations: 3.984 kB / 0.5016 GB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006353/0.1705, allocations: 2.302 MB / 0.5038 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1705, allocations: 4 kB / 0.5038 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003754/0.1709, allocations: 99.83 kB / 0.5039 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008204/0.1717, allocations: 326.3 kB / 0.5042 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.126e-05/0.1718, allocations: 31.97 kB / 0.5043 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.1731, allocations: 0.8935 MB / 0.5051 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1731, allocations: 64 / 0.5051 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/0.1758, allocations: 1.405 MB / 0.5065 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003232/0.1761, allocations: 224 kB / 0.5067 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.1763, allocations: 23.98 kB / 0.5067 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005997/0.1769, allocations: 47.97 kB / 0.5068 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.152e-05/0.177, allocations: 48.44 kB / 0.5068 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.068e-05/0.1771, allocations: 27.98 kB / 0.5069 GB, free: 1.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005517/0.1776, allocations: 455 kB / 0.5073 GB, free: 1.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1776, allocations: 0 / 0.5073 GB, free: 1.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009391/0.1786, allocations: 323 kB / 0.5076 GB, free: 0.7656 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.2003/0.3788, allocations: 2.5 MB / 0.51 GB, free: 45.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001975/0.3808, allocations: 0.992 MB / 0.511 GB, free: 45.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.3809, allocations: 0 / 0.511 GB, free: 45.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008023/0.3817, allocations: 0.495 MB / 0.5115 GB, free: 44.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008928/0.3826, allocations: 163.2 kB / 0.5116 GB, free: 44.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.393, allocations: 7.048 MB / 0.5185 GB, free: 41.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005476/0.3935, allocations: 1.018 MB / 0.5195 GB, free: 40.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004838/0.394, allocations: 129.1 kB / 0.5196 GB, free: 40.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004604/0.3945, allocations: 398.5 kB / 0.52 GB, free: 40.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.483e-06/0.3945, allocations: 0 / 0.52 GB, free: 40.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04148/0.436, allocations: 20.87 MB / 0.5404 GB, free: 28.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/15.77, allocations: 7.938 kB / 0.5404 GB, free: 28.33 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe 2>&1)