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.00126/0.00126, allocations: 112.7 kB / 19.73 MB, free: 2.242 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.001343/0.001343, allocations: 215.3 kB / 23.04 MB, free: 5.078 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.32/1.32, allocations: 230.6 MB / 256.8 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 179] 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.1754/0.1754, allocations: 29.22 MB / 342.4 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="cs",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.001834/0.001834, allocations: 63.89 kB / 479.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3044, allocations: 60.79 MB / 0.5273 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004305/0.3087, allocations: 3.704 MB / 0.531 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.31, allocations: 0.7704 MB / 0.5317 GB, free: 4.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002909/0.3103, allocations: 18.19 kB / 0.5317 GB, free: 4.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003787/0.3107, allocations: 184.1 kB / 0.5319 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002776/0.311, allocations: 133.2 kB / 0.532 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007042/0.3117, allocations: 376.4 kB / 0.5324 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008095/0.3125, allocations: 0.8546 MB / 0.5332 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006239/0.3131, allocations: 0.4998 MB / 0.5337 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.3134, allocations: 351.7 kB / 0.5341 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003551/0.3138, allocations: 448.1 kB / 0.5345 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.3139, allocations: 86.41 kB / 0.5346 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000204/0.3141, allocations: 116.2 kB / 0.5347 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003448/0.3144, allocations: 455.5 kB / 0.5351 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003122/0.3147, allocations: 0.6183 MB / 0.5357 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.3159, allocations: 1.274 MB / 0.537 GB, free: 1.773 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3159, allocations: 0 / 0.537 GB, free: 1.773 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3159, allocations: 4.469 kB / 0.537 GB, free: 1.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.654e-05/0.3159, allocations: 0 / 0.537 GB, free: 1.77 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.001827/0.3177, allocations: 1.781 MB / 0.5387 GB, free: 396 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.3178, allocations: 10 kB / 0.5387 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.771e-05/0.3178, allocations: 38.86 kB / 0.5387 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001603/0.318, allocations: 180.1 kB / 0.5389 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.3182, allocations: 214.5 kB / 0.5391 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008944/0.3191, allocations: 0.7182 MB / 0.5398 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.387e-05/0.3191, allocations: 82.56 kB / 0.5399 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.3193, allocations: 111.8 kB / 0.54 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.3209, allocations: 1.209 MB / 0.5412 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.3209, allocations: 5.172 kB / 0.5412 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.128e-05/0.321, allocations: 45.94 kB / 0.5412 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.578e-05/0.321, allocations: 26.91 kB / 0.5413 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.3225, allocations: 1.136 MB / 0.5424 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004318/0.3268, allocations: 3.635 MB / 0.5459 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.3281, allocations: 1.025 MB / 0.5469 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005839/0.3287, allocations: 0.4947 MB / 0.5474 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.431e-05/0.3288, allocations: 35.27 kB / 0.5474 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007249/0.3295, allocations: 0.5708 MB / 0.548 GB, free: 10.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=84): time 2.415e-06/0.3295, allocations: 4 kB / 0.548 GB, free: 10.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.009479/0.339, allocations: 5.655 MB / 0.5535 GB, free: 6.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.3391, allocations: 72.28 kB / 0.5536 GB, free: 6.129 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/0.3405, allocations: 1.297 MB / 0.5549 GB, free: 4.824 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.022e-05/0.3406, allocations: 49.7 kB / 0.5549 GB, free: 4.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006443/0.3413, allocations: 0.7811 MB / 0.5557 GB, free: 3.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/0.3415, allocations: 388.7 kB / 0.556 GB, free: 3.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/0.3418, allocations: 174.7 kB / 0.5562 GB, free: 3.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3419, allocations: 345.9 kB / 0.5565 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007682/0.3427, allocations: 0.6192 MB / 0.5571 GB, free: 2.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008662/0.3436, allocations: 0.7614 MB / 0.5579 GB, free: 1.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001948/0.3455, allocations: 1.487 MB / 0.5593 GB, free: 136 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3455, allocations: 4 kB / 0.5593 GB, free: 132 kB / 398.1 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00221/0.3477, allocations: 1.707 MB / 0.561 GB, free: 14.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3478, allocations: 8.281 kB / 0.561 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.3478, allocations: 8 kB / 0.561 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.3478, allocations: 8 kB / 0.561 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007227/0.3485, allocations: 215.7 kB / 0.5612 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.3485, allocations: 7.984 kB / 0.5612 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.3488, allocations: 24 kB / 0.5613 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.574e-05/0.3489, allocations: 56 kB / 0.5613 GB, free: 14.09 MB / 414.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 (127): * Single equations (assignments): 127 * 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.0005945/0.3495, allocations: 409.9 kB / 0.5617 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000175/0.3497, allocations: 170.9 kB / 0.5619 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002514/0.3522, allocations: 1.819 MB / 0.5637 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.3522, allocations: 15.94 kB / 0.5637 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3522, allocations: 0 / 0.5637 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.3522, allocations: 3.984 kB / 0.5637 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004199/0.3564, allocations: 3.302 MB / 0.5669 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.3564, allocations: 4 kB / 0.5669 GB, free: 8.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007116/0.3571, allocations: 191.8 kB / 0.5671 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.3571, allocations: 4 kB / 0.5671 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.233e-05/0.3572, allocations: 36.05 kB / 0.5671 GB, free: 8.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.3572, allocations: 8 kB / 0.5671 GB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3572, allocations: 0 / 0.5671 GB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003244/0.3605, allocations: 2.77 MB / 0.5698 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.3608, allocations: 206.8 kB / 0.57 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.3609, allocations: 20 kB / 0.57 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000291/0.3612, allocations: 23.94 kB / 0.5701 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.3613, allocations: 80.8 kB / 0.5701 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.362e-05/0.3614, allocations: 47.98 kB / 0.5702 GB, free: 4.891 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001065/0.3624, allocations: 0.8969 MB / 0.5711 GB, free: 3.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3624, allocations: 0 / 0.5711 GB, free: 3.996 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000582/0.363, allocations: 200 kB / 0.5713 GB, free: 3.801 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 ($outputAlias_Pop,$outputAlias_Pol,$outputAlias_Cap_inv,$outputAlias_Nat_res,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 (111): * Single equations (assignments): 109 * 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.003687/0.3667, allocations: 3.355 MB / 0.5745 GB, free: 412 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.3686, allocations: 1.434 MB / 0.5759 GB, free: 14.97 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3686, allocations: 3.938 kB / 0.5759 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009022/0.3695, allocations: 0.7483 MB / 0.5767 GB, free: 14.22 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006861/0.3702, allocations: 106.8 kB / 0.5768 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01792/0.3881, allocations: 13.84 MB / 0.5903 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.3891, allocations: 1.359 MB / 0.5916 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000451/0.3896, allocations: 153.3 kB / 0.5918 GB, free: 14.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008133/0.3904, allocations: 0.6633 MB / 0.5924 GB, free: 13.78 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3904, allocations: 0 / 0.5924 GB, free: 13.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05013/0.4405, allocations: 23.07 MB / 0.6149 GB, free: 6.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.53, allocations: 13.12 kB / 0.615 GB, free: 6.816 MB / 462.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 sys.exit(0), Time elapsed: 16.339103114092723] Failed to read output from testmodel.py, exit status != 0: 13.701552078942768 13.717591665 13.398924602 Calling exit ...