Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 187 kB / 22.22 MB, free: 5.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.605/1.605, allocations: 225.7 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2164/0.2164, allocations: 29.23 MB / 335.5 MB, free: 11.34 MB / 270.1 MB " [Timeout remaining time 179] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/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) Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 59.91 kB / 469.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4968/0.4988, allocations: 59.61 MB / 0.5171 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005509/0.5043, allocations: 3.672 MB / 0.5207 GB, free: 7.188 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002575/0.5069, allocations: 0.6835 MB / 0.5214 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009653/0.5079, allocations: 22.62 kB / 0.5214 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006088/0.5085, allocations: 177 kB / 0.5216 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000514/0.509, allocations: 137.4 kB / 0.5217 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.5101, allocations: 357.3 kB / 0.522 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001305/0.5114, allocations: 0.8498 MB / 0.5229 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008812/0.5123, allocations: 0.4991 MB / 0.5234 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004647/0.5128, allocations: 346.1 kB / 0.5237 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004888/0.5132, allocations: 436.2 kB / 0.5241 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001728/0.5134, allocations: 84.97 kB / 0.5242 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002881/0.5137, allocations: 120.5 kB / 0.5243 GB, free: 5.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004611/0.5142, allocations: 440.7 kB / 0.5247 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000431/0.5146, allocations: 0.6181 MB / 0.5253 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001756/0.5164, allocations: 1.262 MB / 0.5266 GB, free: 3.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.5164, allocations: 4 kB / 0.5266 GB, free: 3.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5164, allocations: 7.938 kB / 0.5266 GB, free: 3.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.454e-05/0.5164, allocations: 0 / 0.5266 GB, free: 3.746 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.00285/0.5192, allocations: 1.842 MB / 0.5284 GB, free: 2.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.5193, allocations: 9.031 kB / 0.5284 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002269/0.5195, allocations: 172.7 kB / 0.5285 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003194/0.5198, allocations: 212.8 kB / 0.5287 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.521, allocations: 0.7718 MB / 0.5295 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-05/0.5211, allocations: 81.38 kB / 0.5296 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.5212, allocations: 101.9 kB / 0.5297 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002267/0.5235, allocations: 1.186 MB / 0.5308 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/0.5235, allocations: 3.938 kB / 0.5308 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.58e-05/0.5236, allocations: 42.19 kB / 0.5309 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.752e-05/0.5236, allocations: 26 kB / 0.5309 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.526, allocations: 1.116 MB / 0.532 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01166/0.5376, allocations: 3.682 MB / 0.5356 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003355/0.541, allocations: 1.304 MB / 0.5369 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.5424, allocations: 468.2 kB / 0.5373 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001915/0.5425, allocations: 33.97 kB / 0.5373 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.085e-05/0.5426, allocations: 39.09 kB / 0.5374 GB, free: 14.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 6.482e-06/0.5426, allocations: 0 / 0.5374 GB, free: 14.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.004365/0.547, allocations: 1.535 MB / 0.5389 GB, free: 13.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.733e-05/0.5471, allocations: 68.97 kB / 0.5389 GB, free: 13.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005181/0.5523, allocations: 1.277 MB / 0.5402 GB, free: 13.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.5524, allocations: 35.86 kB / 0.5402 GB, free: 13.13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001393/0.5538, allocations: 0.7958 MB / 0.541 GB, free: 12.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004719/0.5543, allocations: 248.7 kB / 0.5412 GB, free: 12.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003963/0.5547, allocations: 118.5 kB / 0.5413 GB, free: 12.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002493/0.5549, allocations: 331.9 kB / 0.5417 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.556, allocations: 441.3 kB / 0.5421 GB, free: 11.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.5573, allocations: 0.5301 MB / 0.5426 GB, free: 11.4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00268/0.56, allocations: 0.9962 MB / 0.5436 GB, free: 10.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.56, allocations: 1.125 kB / 0.5436 GB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00349/0.5635, allocations: 1.198 MB / 0.5447 GB, free: 10.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.5636, allocations: 6.906 kB / 0.5447 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/0.5636, allocations: 2.406 kB / 0.5448 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.086e-05/0.5636, allocations: 4.906 kB / 0.5448 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007751/0.5644, allocations: 139.8 kB / 0.5449 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-05/0.5644, allocations: 14.11 kB / 0.5449 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008165/0.5652, allocations: 56.06 kB / 0.545 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.373e-05/0.5653, allocations: 27.86 kB / 0.545 GB, free: 10.41 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001375/0.5667, allocations: 381.7 kB / 0.5453 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006244/0.5673, allocations: 149.8 kB / 0.5455 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003171/0.5705, allocations: 1.206 MB / 0.5467 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.5705, allocations: 14.16 kB / 0.5467 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.5705, allocations: 1.406 kB / 0.5467 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.5706, allocations: 3.984 kB / 0.5467 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005404/0.576, allocations: 2.372 MB / 0.549 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.576, allocations: 0 / 0.549 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005326/0.5765, allocations: 116.7 kB / 0.5491 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-05/0.5765, allocations: 6.781 kB / 0.5491 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.311e-05/0.5766, allocations: 17.27 kB / 0.5491 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/0.5766, allocations: 6.5 kB / 0.5491 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5766, allocations: 0 / 0.5491 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002945/0.5795, allocations: 1.89 MB / 0.551 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005689/0.5801, allocations: 211.9 kB / 0.5512 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/0.5803, allocations: 12.06 kB / 0.5512 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003145/0.5806, allocations: 16 kB / 0.5512 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.5807, allocations: 44.58 kB / 0.5513 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/0.5808, allocations: 19.98 kB / 0.5513 GB, free: 6.051 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001922/0.5827, allocations: 0.8887 MB / 0.5521 GB, free: 5.164 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5827, allocations: 0 / 0.5521 GB, free: 5.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000897/0.5836, allocations: 215.2 kB / 0.5524 GB, free: 4.953 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003392/0.587, allocations: 2.467 MB / 0.5548 GB, free: 2.457 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.5887, allocations: 0.966 MB / 0.5557 GB, free: 1.488 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5887, allocations: 0 / 0.5557 GB, free: 1.488 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007524/0.5894, allocations: 0.4962 MB / 0.5562 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000948/0.5904, allocations: 93.38 kB / 0.5563 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02192/0.6123, allocations: 11.55 MB / 0.5676 GB, free: 5.168 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001471/0.6138, allocations: 1.323 MB / 0.5688 GB, free: 3.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003093/0.6141, allocations: 72.39 kB / 0.5689 GB, free: 3.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008013/0.6149, allocations: 0.5852 MB / 0.5695 GB, free: 3.164 MB / 414.1 MB Notification: Performance of SimCode: time 1.563e-06/0.6149, allocations: 3.938 kB / 0.5695 GB, free: 3.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06369/0.6786, allocations: 19.16 MB / 0.5882 GB, free: 68 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.41/18.09, allocations: 15.61 kB / 0.5882 GB, free: 56 kB / 430.1 MB " [Timeout remaining time 642] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3_res.csv --start-time 1900 --stop-time 2100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.516999763902277] Failed to read output from testmodel.py, exit status != 0: 18.20626905700192 18.224677238 17.704870425 Calling exit ...