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.0269/0.0269, allocations: 5.392 MB / 20.89 MB, free: 1.727 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.0008872/0.0008872, allocations: 96.17 kB / 22.89 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 189.1 kB / 25 MB, free: 452 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.228/1.228, allocations: 222.9 MB / 249.9 MB, free: 8.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009183/0.009182, allocations: 2.326 MB / 303.5 MB, free: 6.523 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 91.84 kB / 367.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1721, allocations: 51.21 MB / 418.5 MB, free: 26.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704): time 0.005682/0.1778, allocations: 6.842 MB / 425.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003892/0.1817, allocations: 3.947 MB / 429.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003291/0.1821, allocations: 19.94 kB / 429.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.184, allocations: 1.162 MB / 430.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001197/0.1852, allocations: 0.8545 MB / 431.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.1863, allocations: 0.5432 MB / 431.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007802/0.1871, allocations: 1.406 MB / 433.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009357/0.188, allocations: 1.017 MB / 434.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000365/0.1884, allocations: 0.5526 MB / 434.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005364/0.189, allocations: 0.6886 MB / 435.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.1891, allocations: 144 kB / 435.6 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005006/0.1896, allocations: 435.6 kB / 436.1 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.1898, allocations: 322.9 kB / 436.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003508/0.1901, allocations: 0.6336 MB / 437 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.1912, allocations: 1.772 MB / 438.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1912, allocations: 0 / 438.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.1912, allocations: 0 / 438.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.1913, allocations: 4 kB / 438.8 MB, free: 5.973 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.003122/0.1944, allocations: 1.81 MB / 440.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.849e-05/0.1944, allocations: 8.031 kB / 440.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.1946, allocations: 164.9 kB / 440.8 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001874/0.1964, allocations: 387.1 kB / 441.1 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.1978, allocations: 0.8164 MB / 442 MB, free: 2.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.623e-05/0.1979, allocations: 82.02 kB / 442 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.198, allocations: 108 kB / 442.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.1996, allocations: 1.169 MB / 443.3 MB, free: 1.254 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.1996, allocations: 4 kB / 443.3 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.908e-05/0.1997, allocations: 48 kB / 443.4 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.1997, allocations: 24 kB / 443.4 MB, free: 1.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.2015, allocations: 1.066 MB / 444.5 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005855/0.2074, allocations: 4.396 MB / 448.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/0.21, allocations: 1.732 MB / 450.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006604/0.2107, allocations: 331.1 kB / 450.9 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.2108, allocations: 97.66 kB / 451 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008112/0.2116, allocations: 465.6 kB / 451.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of pre-optimization done (n=69): time 2.084e-06/0.2116, allocations: 0 / 451.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.005669/0.2173, allocations: 1.592 MB / 453.1 MB, free: 7.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.2174, allocations: 222.2 kB / 453.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007444/0.2182, allocations: 0.6525 MB / 453.9 MB, free: 6.094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.527e-05/0.2182, allocations: 45.69 kB / 454 MB, free: 6.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000339/0.2186, allocations: 0.518 MB / 454.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/0.2188, allocations: 232.8 kB / 454.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000256/0.219, allocations: 182.5 kB / 454.9 MB, free: 5.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2192, allocations: 398.7 kB / 455.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006534/0.2199, allocations: 297.8 kB / 455.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000808/0.2207, allocations: 0.5309 MB / 456.1 MB, free: 3.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.2222, allocations: 0.9399 MB / 457 MB, free: 2.715 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.2222, allocations: 0 / 457 MB, free: 2.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002167/0.2244, allocations: 1.117 MB / 458.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.269e-05/0.2244, allocations: 59.41 kB / 458.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.2245, allocations: 8 kB / 458.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000476/0.2249, allocations: 93 kB / 458.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008378/0.2258, allocations: 219.7 kB / 458.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.2272, allocations: 1.589 MB / 460.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006811/0.2279, allocations: 107.1 kB / 460.2 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/0.228, allocations: 39.98 kB / 460.3 MB, free: 15.31 MB / 334.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.0003988/0.2284, allocations: 347.2 kB / 460.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.2286, allocations: 79.06 kB / 460.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002052/0.2306, allocations: 1.018 MB / 461.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.2306, allocations: 8 kB / 461.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.2306, allocations: 0 / 461.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.2307, allocations: 3.984 kB / 461.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005826/0.2365, allocations: 2.306 MB / 464 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.2365, allocations: 0 / 464 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003758/0.2369, allocations: 99.83 kB / 464.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007714/0.2377, allocations: 330.3 kB / 464.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.2377, allocations: 23.98 kB / 464.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.239, allocations: 0.909 MB / 465.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.239, allocations: 0 / 465.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/0.2415, allocations: 1.397 MB / 466.8 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.2418, allocations: 224 kB / 467 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.242, allocations: 27.94 kB / 467 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005369/0.2425, allocations: 39.97 kB / 467 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.729e-05/0.2426, allocations: 48.44 kB / 467.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.732e-05/0.2427, allocations: 31.97 kB / 467.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005279/0.2432, allocations: 455 kB / 467.6 MB, free: 7.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2432, allocations: 3.938 kB / 467.6 MB, free: 7.766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008423/0.2441, allocations: 327 kB / 467.9 MB, free: 7.445 MB / 334.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.004068/0.2481, allocations: 2.515 MB / 470.4 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.2502, allocations: 1.019 MB / 471.4 MB, free: 4.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2502, allocations: 0 / 471.4 MB, free: 4.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008164/0.251, allocations: 498.4 kB / 471.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007793/0.2518, allocations: 155.7 kB / 472.1 MB, free: 3.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.2624, allocations: 7.326 MB / 479.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005501/0.263, allocations: 1.018 MB / 480.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004628/0.2635, allocations: 130.4 kB / 480.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004696/0.2639, allocations: 407.3 kB / 480.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2639, allocations: 0 / 480.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04345/0.3074, allocations: 20.13 MB / 0.4893 GB, free: 6.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.65, allocations: 10.7 kB / 0.4893 GB, free: 6.223 MB / 366.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 & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe 2>&1)