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.03085/0.03085, allocations: 5.396 MB / 21.03 MB, free: 1.543 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.001247/0.001247, allocations: 102.6 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.001307/0.001307, allocations: 199.5 kB / 25.16 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.389/1.389, allocations: 222.9 MB / 250 MB, free: 8.438 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01012/0.01012, allocations: 2.317 MB / 303.7 MB, free: 6.484 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002728/0.002728, allocations: 91.84 kB / 419.2 MB, free: 23.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0858/0.08854, allocations: 51.21 MB / 470.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808): time 0.009208/0.09778, allocations: 6.851 MB / 477.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006881/0.1047, allocations: 3.947 MB / 481.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008392/0.1056, allocations: 19.94 kB / 481.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002959/0.1086, allocations: 1.158 MB / 482.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002303/0.1109, allocations: 0.8504 MB / 483.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001707/0.1126, allocations: 0.55 MB / 483.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001684/0.1143, allocations: 1.413 MB / 485.2 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.1158, allocations: 1.025 MB / 486.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007385/0.1165, allocations: 0.5526 MB / 486.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009541/0.1175, allocations: 0.6925 MB / 487.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.1177, allocations: 144 kB / 487.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008922/0.1186, allocations: 435.7 kB / 488 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000298/0.1189, allocations: 307 kB / 488.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006884/0.1196, allocations: 0.6452 MB / 488.9 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002452/0.1221, allocations: 1.81 MB / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1221, allocations: 0 / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1221, allocations: 0 / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.1221, allocations: 0 / 490.7 MB, free: 15.27 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.004361/0.1265, allocations: 1.847 MB / 492.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.1266, allocations: 8.031 kB / 492.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002103/0.1268, allocations: 160.9 kB / 492.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002237/0.129, allocations: 391.8 kB / 493.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00187/0.1309, allocations: 0.8365 MB / 494 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.339e-05/0.131, allocations: 78.08 kB / 494.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.1312, allocations: 108 kB / 494.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.1334, allocations: 1.173 MB / 495.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.1335, allocations: 0 / 495.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/0.1336, allocations: 48 kB / 495.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.306e-05/0.1336, allocations: 28 kB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002269/0.1359, allocations: 1.07 MB / 496.5 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006813/0.1427, allocations: 4.346 MB / 0.4891 GB, free: 4.809 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002934/0.1457, allocations: 1.74 MB / 0.4908 GB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007024/0.1464, allocations: 327.3 kB / 0.4911 GB, free: 2.531 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001143/0.1465, allocations: 97.64 kB / 0.4912 GB, free: 2.418 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008973/0.1474, allocations: 461.8 kB / 0.4916 GB, free: 1.938 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.294e-06/0.1475, allocations: 0 / 0.4916 GB, free: 1.938 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.006006/0.1535, allocations: 1.593 MB / 0.4932 GB, free: 312 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.1536, allocations: 226.1 kB / 0.4934 GB, free: 36 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009521/0.1546, allocations: 0.6566 MB / 0.494 GB, free: 15.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.84e-05/0.1547, allocations: 45.64 kB / 0.4941 GB, free: 15.31 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004652/0.1551, allocations: 0.5388 MB / 0.4946 GB, free: 14.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002288/0.1554, allocations: 246 kB / 0.4948 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003106/0.1557, allocations: 182.5 kB / 0.495 GB, free: 14.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.1559, allocations: 390.8 kB / 0.4954 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007126/0.1566, allocations: 297.8 kB / 0.4957 GB, free: 13.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009203/0.1576, allocations: 0.5309 MB / 0.4962 GB, free: 13.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.1592, allocations: 0.9399 MB / 0.4971 GB, free: 11.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.1592, allocations: 0 / 0.4971 GB, free: 11.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002422/0.1617, allocations: 1.114 MB / 0.4982 GB, free: 10.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.184e-05/0.1618, allocations: 71.39 kB / 0.4983 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.1618, allocations: 8 kB / 0.4983 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004868/0.1623, allocations: 84.72 kB / 0.4984 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000902/0.1632, allocations: 223.7 kB / 0.4986 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.165, allocations: 1.585 MB / 0.5001 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007543/0.1657, allocations: 107.3 kB / 0.5002 GB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-05/0.1658, allocations: 48.06 kB / 0.5003 GB, free: 8.551 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.0005259/0.1664, allocations: 347.1 kB / 0.5006 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.1665, allocations: 83.48 kB / 0.5007 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002306/0.1688, allocations: 1.014 MB / 0.5017 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.1689, allocations: 8 kB / 0.5017 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.1689, allocations: 0 / 0.5017 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.1689, allocations: 3.984 kB / 0.5017 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006393/0.1753, allocations: 2.302 MB / 0.5039 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.1753, allocations: 0 / 0.5039 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004131/0.1757, allocations: 99.83 kB / 0.504 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008991/0.1766, allocations: 322.3 kB / 0.5043 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.841e-05/0.1767, allocations: 31.97 kB / 0.5044 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001476/0.1782, allocations: 0.8936 MB / 0.5052 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.1782, allocations: 3.984 kB / 0.5052 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003047/0.1813, allocations: 1.414 MB / 0.5066 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003765/0.1817, allocations: 232.3 kB / 0.5068 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.1818, allocations: 23.94 kB / 0.5069 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005611/0.1824, allocations: 47.97 kB / 0.5069 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.1825, allocations: 44.5 kB / 0.5069 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.071e-05/0.1826, allocations: 31.97 kB / 0.507 GB, free: 1.445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006345/0.1832, allocations: 451 kB / 0.5074 GB, free: 1.012 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1832, allocations: 0 / 0.5074 GB, free: 1.012 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009847/0.1842, allocations: 323.2 kB / 0.5077 GB, free: 0.6953 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.1738/0.358, allocations: 2.504 MB / 0.5102 GB, free: 45.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001993/0.36, allocations: 0.9973 MB / 0.5111 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3601, allocations: 1.469 kB / 0.5111 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008323/0.3609, allocations: 0.4943 MB / 0.5116 GB, free: 45.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008747/0.3618, allocations: 165.5 kB / 0.5118 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.3723, allocations: 7.079 MB / 0.5187 GB, free: 41.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005365/0.3729, allocations: 1.018 MB / 0.5197 GB, free: 40.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004983/0.3734, allocations: 130.2 kB / 0.5198 GB, free: 40.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004499/0.3738, allocations: 399.5 kB / 0.5202 GB, free: 40.52 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3739, allocations: 0 / 0.5202 GB, free: 40.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0489/0.4228, allocations: 20.51 MB / 0.5402 GB, free: 28.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.34/16.76, allocations: 8 kB / 0.5402 GB, free: 28.88 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 & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808.pipe 2>&1)