Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 113 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 210.3 kB / 22.25 MB, free: 5.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.442/1.442, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.1857/0.1857, allocations: 29.23 MB / 341.7 MB, free: 5.805 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.89 kB / 478.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3171, allocations: 60.79 MB / 0.5266 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004486/0.3216, allocations: 3.697 MB / 0.5302 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.3232, allocations: 0.7654 MB / 0.5309 GB, free: 4.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003682/0.3236, allocations: 22.41 kB / 0.531 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000387/0.324, allocations: 176.8 kB / 0.5311 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000289/0.3243, allocations: 140.2 kB / 0.5313 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009359/0.3252, allocations: 376.6 kB / 0.5316 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009417/0.3262, allocations: 0.8504 MB / 0.5325 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006373/0.3268, allocations: 0.5033 MB / 0.533 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002854/0.3271, allocations: 355.1 kB / 0.5333 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004648/0.3276, allocations: 445.6 kB / 0.5337 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001282/0.3277, allocations: 87.16 kB / 0.5338 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001969/0.3279, allocations: 119.3 kB / 0.5339 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003263/0.3282, allocations: 455.1 kB / 0.5343 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004963/0.3287, allocations: 0.6122 MB / 0.5349 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.33, allocations: 1.272 MB / 0.5362 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.33, allocations: 0 / 0.5362 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.33, allocations: 4 kB / 0.5362 GB, free: 1.801 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.078e-05/0.33, allocations: 0 / 0.5362 GB, free: 1.801 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002111/0.3321, allocations: 1.789 MB / 0.5379 GB, free: 424 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.3321, allocations: 10.69 kB / 0.5379 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001669/0.3323, allocations: 173.1 kB / 0.5381 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.3325, allocations: 209.1 kB / 0.5383 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.3335, allocations: 0.7168 MB / 0.539 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.234e-05/0.3336, allocations: 82.52 kB / 0.5391 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001814/0.3338, allocations: 102.5 kB / 0.5392 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001934/0.3357, allocations: 1.192 MB / 0.5404 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.644e-05/0.3357, allocations: 5.062 kB / 0.5404 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.298e-05/0.3358, allocations: 41.56 kB / 0.5404 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.3358, allocations: 26.44 kB / 0.5404 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.3376, allocations: 1.115 MB / 0.5415 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005269/0.3428, allocations: 3.63 MB / 0.5451 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/0.3447, allocations: 1.322 MB / 0.5463 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005272/0.3452, allocations: 478.4 kB / 0.5468 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.104e-05/0.3453, allocations: 29.8 kB / 0.5468 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000892/0.3462, allocations: 0.5469 MB / 0.5474 GB, free: 10.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.525e-06/0.3462, allocations: 3.938 kB / 0.5474 GB, free: 10.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002207/0.3484, allocations: 1.576 MB / 0.5489 GB, free: 10.19 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.3484, allocations: 64 kB / 0.549 GB, free: 10.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00171/0.3502, allocations: 1.297 MB / 0.5502 GB, free: 8.809 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.554e-05/0.3502, allocations: 45.7 kB / 0.5503 GB, free: 8.758 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008194/0.351, allocations: 0.7844 MB / 0.551 GB, free: 7.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.3513, allocations: 253.9 kB / 0.5513 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.3514, allocations: 122.6 kB / 0.5514 GB, free: 7.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3516, allocations: 333.9 kB / 0.5517 GB, free: 7.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006146/0.3522, allocations: 445.8 kB / 0.5521 GB, free: 6.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006446/0.3528, allocations: 0.5562 MB / 0.5527 GB, free: 6.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/0.3543, allocations: 1.043 MB / 0.5537 GB, free: 5.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3543, allocations: 4 kB / 0.5537 GB, free: 5.145 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001703/0.356, allocations: 1.23 MB / 0.5549 GB, free: 3.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.47e-05/0.356, allocations: 4.344 kB / 0.5549 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.168e-05/0.356, allocations: 8 kB / 0.5549 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.993e-05/0.3561, allocations: 11.98 kB / 0.5549 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.3566, allocations: 135.8 kB / 0.5551 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.641e-05/0.3566, allocations: 15.88 kB / 0.5551 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.3568, allocations: 55.56 kB / 0.5551 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-05/0.3569, allocations: 24 kB / 0.5552 GB, free: 3.656 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) \"Minimum quality of life\" type: Real min_dPop:DISCRETE(unit = \"1/yr\" fixed = true ) \"Minimal derivative of population\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0005803/0.3575, allocations: 381.5 kB / 0.5555 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.3576, allocations: 155 kB / 0.5557 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.3594, allocations: 1.239 MB / 0.5569 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-05/0.3595, allocations: 11.94 kB / 0.5569 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.3595, allocations: 0 / 0.5569 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3595, allocations: 3.984 kB / 0.5569 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003042/0.3625, allocations: 2.385 MB / 0.5592 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3625, allocations: 0 / 0.5592 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004555/0.363, allocations: 115.8 kB / 0.5593 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-06/0.363, allocations: 7.938 kB / 0.5593 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.962e-05/0.363, allocations: 16 kB / 0.5594 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.363, allocations: 3.984 kB / 0.5594 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.363, allocations: 3.938 kB / 0.5594 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/0.3655, allocations: 1.937 MB / 0.5613 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.3658, allocations: 182.8 kB / 0.5614 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.304e-05/0.3659, allocations: 16 kB / 0.5614 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.3661, allocations: 15.98 kB / 0.5615 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.56e-05/0.3662, allocations: 44.58 kB / 0.5615 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.3662, allocations: 23.98 kB / 0.5615 GB, free: 13.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00134/0.3676, allocations: 0.893 MB / 0.5624 GB, free: 12.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3676, allocations: 0 / 0.5624 GB, free: 12.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005645/0.3681, allocations: 219.2 kB / 0.5626 GB, free: 11.93 MB / 414.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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00281/0.3709, allocations: 2.518 MB / 0.5651 GB, free: 9.387 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.3723, allocations: 0.9893 MB / 0.566 GB, free: 8.395 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3723, allocations: 0.6875 kB / 0.566 GB, free: 8.395 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006145/0.3729, allocations: 0.5112 MB / 0.5665 GB, free: 7.887 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006715/0.3736, allocations: 94.02 kB / 0.5666 GB, free: 7.797 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/0.3894, allocations: 11.71 MB / 0.5781 GB, free: 11.89 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/0.3905, allocations: 1.311 MB / 0.5793 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002308/0.3907, allocations: 84.73 kB / 0.5794 GB, free: 10.47 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006494/0.3914, allocations: 0.5969 MB / 0.58 GB, free: 9.875 MB / 430.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3914, allocations: 0 / 0.58 GB, free: 9.875 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0575/0.4489, allocations: 19.46 MB / 0.599 GB, free: 6.512 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/13.89, allocations: 2.656 kB / 0.599 GB, free: 6.512 MB / 446.1 MB " [Timeout remaining time 646] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.66054029087536] Failed to read output from testmodel.py, exit status != 0: 14.008414746029302 14.024741717 13.691584103 Calling exit ...