Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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.001382/0.001382, allocations: 106.2 kB / 16.45 MB, free: 6.508 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.001283/0.001283, allocations: 200.5 kB / 19.41 MB, free: 3.664 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.43/1.43, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.1915/0.1915, allocations: 29.24 MB / 331.9 MB, free: 12.49 MB / 270.1 MB " [Timeout remaining time 180] 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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002339/0.002339, allocations: 63.89 kB / 464.7 MB, free: 9.715 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3323, allocations: 59.56 MB / 0.512 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.00423/0.3366, allocations: 3.661 MB / 0.5156 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.3383, allocations: 0.6715 MB / 0.5162 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005175/0.3388, allocations: 18.81 kB / 0.5162 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000426/0.3392, allocations: 179.8 kB / 0.5164 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003577/0.3396, allocations: 138.8 kB / 0.5166 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008166/0.3404, allocations: 356.7 kB / 0.5169 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009172/0.3413, allocations: 0.8429 MB / 0.5177 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006782/0.342, allocations: 0.4976 MB / 0.5182 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003095/0.3423, allocations: 341.5 kB / 0.5185 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003425/0.3427, allocations: 430.1 kB / 0.5189 GB, free: 4.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.3428, allocations: 84.78 kB / 0.519 GB, free: 4.387 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002299/0.343, allocations: 119.6 kB / 0.5191 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003423/0.3434, allocations: 436.2 kB / 0.5195 GB, free: 4.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000343/0.3437, allocations: 0.6214 MB / 0.5202 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001432/0.3452, allocations: 1.26 MB / 0.5214 GB, free: 3.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3452, allocations: 1.625 kB / 0.5214 GB, free: 3.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3452, allocations: 0 / 0.5214 GB, free: 3.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.3452, allocations: 0 / 0.5214 GB, free: 3.02 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002405/0.3476, allocations: 1.849 MB / 0.5232 GB, free: 1.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.92e-05/0.3477, allocations: 10.31 kB / 0.5232 GB, free: 1.691 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002791/0.3479, allocations: 168.6 kB / 0.5234 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003927/0.3483, allocations: 208.9 kB / 0.5236 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.3496, allocations: 0.7728 MB / 0.5243 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-05/0.3496, allocations: 85.11 kB / 0.5244 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.3498, allocations: 105.2 kB / 0.5245 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.3516, allocations: 1.172 MB / 0.5256 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/0.3516, allocations: 3.938 kB / 0.5256 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-05/0.3516, allocations: 41.81 kB / 0.5257 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.725e-05/0.3517, allocations: 26 kB / 0.5257 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.3533, allocations: 1.102 MB / 0.5268 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005596/0.3589, allocations: 3.682 MB / 0.5304 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.3606, allocations: 1.3 MB / 0.5317 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000556/0.3612, allocations: 469 kB / 0.5321 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.302e-05/0.3612, allocations: 26.11 kB / 0.5321 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.3613, allocations: 41.81 kB / 0.5322 GB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.254e-06/0.3613, allocations: 0 / 0.5322 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.00198/0.3633, allocations: 1.523 MB / 0.5337 GB, free: 13.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.3633, allocations: 63.3 kB / 0.5337 GB, free: 13.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.365, allocations: 1.292 MB / 0.535 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.881e-05/0.365, allocations: 40.11 kB / 0.535 GB, free: 12.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006618/0.3657, allocations: 0.7868 MB / 0.5358 GB, free: 11.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.3659, allocations: 240.5 kB / 0.536 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.3661, allocations: 116.7 kB / 0.5361 GB, free: 11.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3662, allocations: 331 kB / 0.5364 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005241/0.3667, allocations: 436.4 kB / 0.5369 GB, free: 11.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006025/0.3673, allocations: 0.5311 MB / 0.5374 GB, free: 11.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.3685, allocations: 0.9882 MB / 0.5383 GB, free: 10.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3685, allocations: 2.016 kB / 0.5383 GB, free: 10.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001649/0.3702, allocations: 1.19 MB / 0.5395 GB, free: 10.33 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3702, allocations: 6.297 kB / 0.5395 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.3702, allocations: 6.188 kB / 0.5395 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.3702, allocations: 5.469 kB / 0.5395 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004603/0.3707, allocations: 128.2 kB / 0.5396 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.3707, allocations: 10.14 kB / 0.5396 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003231/0.371, allocations: 61.8 kB / 0.5397 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.371, allocations: 23.48 kB / 0.5397 GB, free: 10.26 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 (82): * Single equations (assignments): 82 * 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.0006872/0.3717, allocations: 374.3 kB / 0.5401 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/0.3719, allocations: 147 kB / 0.5402 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.3735, allocations: 1.19 MB / 0.5414 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.3735, allocations: 11.22 kB / 0.5414 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3735, allocations: 3.938 kB / 0.5414 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.3735, allocations: 5.297 kB / 0.5414 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003074/0.3766, allocations: 2.368 MB / 0.5437 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3766, allocations: 0 / 0.5437 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000484/0.3771, allocations: 119.8 kB / 0.5438 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.3771, allocations: 6.688 kB / 0.5438 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.669e-05/0.3771, allocations: 13.5 kB / 0.5439 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.3771, allocations: 1.375 kB / 0.5439 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3772, allocations: 1.375 kB / 0.5439 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.3794, allocations: 1.872 MB / 0.5457 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003159/0.3797, allocations: 212 kB / 0.5459 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.034e-05/0.3798, allocations: 15.47 kB / 0.5459 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.38, allocations: 10.59 kB / 0.5459 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.572e-05/0.3801, allocations: 39.16 kB / 0.5459 GB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.3801, allocations: 21.56 kB / 0.546 GB, free: 7.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001357/0.3815, allocations: 0.9003 MB / 0.5468 GB, free: 6.547 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3815, allocations: 0 / 0.5468 GB, free: 6.547 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006886/0.3821, allocations: 219.2 kB / 0.5471 GB, free: 6.332 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 (67): * Single equations (assignments): 67 * 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.002623/0.3848, allocations: 2.445 MB / 0.5494 GB, free: 3.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.3861, allocations: 0.961 MB / 0.5504 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3862, allocations: 0 / 0.5504 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006023/0.3868, allocations: 0.4911 MB / 0.5509 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00065/0.3874, allocations: 107.2 kB / 0.551 GB, free: 2.316 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/0.4037, allocations: 11.55 MB / 0.5622 GB, free: 6.574 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/0.4048, allocations: 1.311 MB / 0.5635 GB, free: 5.238 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002591/0.405, allocations: 72.36 kB / 0.5636 GB, free: 5.168 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006515/0.4057, allocations: 0.5892 MB / 0.5642 GB, free: 4.578 MB / 414.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4057, allocations: 7.938 kB / 0.5642 GB, free: 4.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0506/0.4563, allocations: 18.82 MB / 0.5826 GB, free: 1.805 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.19, allocations: 11.8 kB / 0.5826 GB, free: 1.793 MB / 430.1 MB " [Timeout remaining time 649] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.086686034221202] Failed to read output from testmodel.py, exit status != 0: 11.301500690169632 11.317563343 10.969137571 Calling exit ...