Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.02703/0.02703, allocations: 5.393 MB / 20.89 MB, free: 1.406 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.005833/0.005833, allocations: 99.33 kB / 22.88 MB, free: 0.7812 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.001023/0.001023, allocations: 190.4 kB / 24.99 MB, free: 280 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.261/1.261, allocations: 222.9 MB / 249.9 MB, free: 8.508 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00894/0.00894, allocations: 2.31 MB / 303.5 MB, free: 6.539 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 91.84 kB / 367.3 MB, free: 6.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1846, allocations: 51.21 MB / 418.5 MB, free: 26.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.005719/0.1904, allocations: 6.887 MB / 425.4 MB, free: 19.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004531/0.195, allocations: 4.025 MB / 429.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006506/0.1956, allocations: 23.94 kB / 429.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00216/0.1978, allocations: 1.166 MB / 430.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001367/0.1992, allocations: 0.8778 MB / 431.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.2006, allocations: 0.6099 MB / 432.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008407/0.2014, allocations: 1.402 MB / 433.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009521/0.2024, allocations: 1.017 MB / 434.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004252/0.2028, allocations: 0.5643 MB / 435 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005942/0.2034, allocations: 0.6846 MB / 435.7 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.2036, allocations: 140 kB / 435.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006067/0.2042, allocations: 431.7 kB / 436.3 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.2044, allocations: 298.9 kB / 436.6 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003669/0.2048, allocations: 0.6375 MB / 437.2 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.2059, allocations: 1.741 MB / 439 MB, free: 5.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2059, allocations: 4 kB / 439 MB, free: 5.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.206, allocations: 0 / 439 MB, free: 5.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.206, allocations: 0 / 439 MB, free: 5.703 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003219/0.2092, allocations: 1.798 MB / 440.8 MB, free: 3.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.2092, allocations: 16.03 kB / 440.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000129/0.2094, allocations: 156.5 kB / 440.9 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001899/0.2113, allocations: 371.2 kB / 441.3 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.2127, allocations: 0.8007 MB / 442.1 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.323e-05/0.2127, allocations: 78 kB / 442.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.2129, allocations: 103.9 kB / 442.3 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.2145, allocations: 1.134 MB / 443.4 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.801e-05/0.2145, allocations: 7.922 kB / 443.4 MB, free: 1.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.699e-05/0.2146, allocations: 44 kB / 443.5 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.2146, allocations: 27.98 kB / 443.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.2162, allocations: 0.9447 MB / 444.4 MB, free: 64 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005406/0.2216, allocations: 4.338 MB / 448.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.2241, allocations: 1.673 MB / 450.4 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006148/0.2247, allocations: 316.6 kB / 450.7 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.961e-05/0.2248, allocations: 93.47 kB / 450.8 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007755/0.2256, allocations: 462.6 kB / 451.3 MB, free: 8.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.324e-06/0.2256, allocations: 0 / 451.3 MB, free: 8.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.005437/0.2311, allocations: 1.537 MB / 452.8 MB, free: 7.141 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.2312, allocations: 281.6 kB / 453.1 MB, free: 6.805 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007639/0.232, allocations: 0.6604 MB / 453.8 MB, free: 6.137 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/0.232, allocations: 41.7 kB / 453.8 MB, free: 6.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003488/0.2324, allocations: 0.5179 MB / 454.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.2325, allocations: 217 kB / 454.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.2328, allocations: 190.4 kB / 454.7 MB, free: 5.156 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.233, allocations: 386.8 kB / 455.1 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006365/0.2336, allocations: 285.8 kB / 455.4 MB, free: 4.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007487/0.2344, allocations: 0.5325 MB / 455.9 MB, free: 3.848 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.2357, allocations: 0.9218 MB / 456.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.2357, allocations: 0 / 456.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002089/0.2378, allocations: 1.075 MB / 457.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.584e-05/0.2379, allocations: 63.41 kB / 458 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.2379, allocations: 7.938 kB / 458 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004618/0.2384, allocations: 89.06 kB / 458.1 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008009/0.2392, allocations: 211.7 kB / 458.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/0.2407, allocations: 1.589 MB / 459.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007798/0.2414, allocations: 111.2 kB / 460 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.525e-05/0.2415, allocations: 43.98 kB / 460 MB, free: 15.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.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 (117): * Single equations (assignments): 114 * 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.0004794/0.242, allocations: 335.5 kB / 460.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.2422, allocations: 83 kB / 460.4 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.2441, allocations: 0.9283 MB / 461.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.894e-06/0.2441, allocations: 8 kB / 461.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2441, allocations: 4 kB / 461.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.2441, allocations: 3.984 kB / 461.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005692/0.2498, allocations: 2.194 MB / 463.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.2499, allocations: 4.047 kB / 463.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.2502, allocations: 91.84 kB / 463.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007835/0.251, allocations: 334.3 kB / 464 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.488e-05/0.2511, allocations: 23.98 kB / 464 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.2523, allocations: 0.8935 MB / 464.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.2523, allocations: 7.969 kB / 464.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004964/0.2572, allocations: 1.626 MB / 466.5 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003071/0.2576, allocations: 215.9 kB / 466.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.2577, allocations: 24 kB / 466.8 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005602/0.2583, allocations: 51.95 kB / 466.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.542e-05/0.2584, allocations: 36.33 kB / 466.8 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.756e-05/0.2585, allocations: 31.97 kB / 466.9 MB, free: 8.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005391/0.259, allocations: 467 kB / 467.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.259, allocations: 0 / 467.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008812/0.2599, allocations: 319 kB / 467.6 MB, free: 7.559 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.006554/0.2665, allocations: 2.747 MB / 470.4 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.2684, allocations: 0.9824 MB / 471.4 MB, free: 3.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2684, allocations: 4 kB / 471.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007982/0.2692, allocations: 490.6 kB / 471.9 MB, free: 3.477 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008539/0.2701, allocations: 171.2 kB / 472 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.2806, allocations: 7.261 MB / 479.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005366/0.2812, allocations: 1.01 MB / 480.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005233/0.2818, allocations: 126.4 kB / 480.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004665/0.2822, allocations: 391.3 kB / 480.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2822, allocations: 0 / 480.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04765/0.3299, allocations: 20.24 MB / 0.4893 GB, free: 6.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.66, allocations: 10.11 kB / 0.4893 GB, free: 6.102 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704_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_Comax_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)