Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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.001725/0.001725, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.002162/0.002162, allocations: 220.5 kB / 22.25 MB, free: 5.102 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.512/1.512, allocations: 230.6 MB / 256 MB, free: 7.793 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.1835/0.1835, allocations: 29.23 MB / 341.7 MB, free: 5.594 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_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",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.002099/0.002099, allocations: 75.86 kB / 478.4 MB, free: 356 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3046, allocations: 60.8 MB / 0.5265 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004013/0.3086, allocations: 2.742 MB / 0.5292 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.31, allocations: 0.5259 MB / 0.5297 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003062/0.3103, allocations: 15.62 kB / 0.5297 GB, free: 5.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.3106, allocations: 144.2 kB / 0.5299 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003174/0.3109, allocations: 127.4 kB / 0.53 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006219/0.3116, allocations: 289.4 kB / 0.5303 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006405/0.3122, allocations: 0.72 MB / 0.531 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004976/0.3127, allocations: 380.8 kB / 0.5313 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002617/0.313, allocations: 323.5 kB / 0.5316 GB, free: 4.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002935/0.3133, allocations: 400.6 kB / 0.532 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.3134, allocations: 75.38 kB / 0.5321 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002056/0.3136, allocations: 110.1 kB / 0.5322 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003322/0.3139, allocations: 435.9 kB / 0.5326 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002588/0.3142, allocations: 453 kB / 0.5331 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001059/0.3152, allocations: 1.158 MB / 0.5342 GB, free: 3.074 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3153, allocations: 0 / 0.5342 GB, free: 3.074 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3153, allocations: 0 / 0.5342 GB, free: 3.074 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.756e-05/0.3153, allocations: 1.156 kB / 0.5342 GB, free: 3.074 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001892/0.3172, allocations: 1.703 MB / 0.5358 GB, free: 1.895 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.3172, allocations: 13.16 kB / 0.5359 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.3174, allocations: 174.5 kB / 0.536 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.3175, allocations: 200.2 kB / 0.5362 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.3179, allocations: 0.5231 MB / 0.5367 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.427e-05/0.318, allocations: 75.64 kB / 0.5368 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.3181, allocations: 97 kB / 0.5369 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.3195, allocations: 1.097 MB / 0.538 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.962e-05/0.3195, allocations: 5.344 kB / 0.538 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.323e-05/0.3195, allocations: 39.69 kB / 0.538 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.914e-05/0.3196, allocations: 54.23 kB / 0.5381 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.3211, allocations: 1.223 MB / 0.5393 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004181/0.3253, allocations: 2.624 MB / 0.5418 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.3266, allocations: 0.98 MB / 0.5428 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006441/0.3273, allocations: 494.4 kB / 0.5432 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.055e-05/0.3273, allocations: 27.77 kB / 0.5433 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.3274, allocations: 39.06 kB / 0.5433 GB, free: 13.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.474e-06/0.3274, allocations: 0 / 0.5433 GB, free: 13.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002236/0.3296, allocations: 1.593 MB / 0.5449 GB, free: 13.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.3297, allocations: 62.69 kB / 0.5449 GB, free: 13.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001514/0.3312, allocations: 1.268 MB / 0.5462 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.962e-05/0.3312, allocations: 35.8 kB / 0.5462 GB, free: 12.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006552/0.3319, allocations: 0.8017 MB / 0.547 GB, free: 11.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002049/0.3321, allocations: 241.9 kB / 0.5472 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.3322, allocations: 130.6 kB / 0.5473 GB, free: 11.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3324, allocations: 341.9 kB / 0.5477 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006973/0.3331, allocations: 469.7 kB / 0.5481 GB, free: 10.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008184/0.3339, allocations: 0.656 MB / 0.5487 GB, free: 9.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004185/0.3381, allocations: 2.141 MB / 0.5508 GB, free: 7.711 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.3381, allocations: 0 / 0.5508 GB, free: 7.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001994/0.3401, allocations: 1.344 MB / 0.5522 GB, free: 6.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3401, allocations: 8 kB / 0.5522 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3401, allocations: 4 kB / 0.5522 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.3402, allocations: 12 kB / 0.5522 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005911/0.3407, allocations: 175.7 kB / 0.5523 GB, free: 6.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.3408, allocations: 11.94 kB / 0.5524 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004339/0.3412, allocations: 83.81 kB / 0.5524 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.796e-05/0.3413, allocations: 39.98 kB / 0.5525 GB, free: 6.031 MB / 398.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) \"Time in calendar years\" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) \"Reversible state variable\" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) \"Reversible state variable\" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) \"Reversible state variable\" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) \"Reversible state variable\" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) \"Reversible state variable\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0008615/0.3421, allocations: 403.2 kB / 0.5529 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.3423, allocations: 139.1 kB / 0.553 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/0.3441, allocations: 1.253 MB / 0.5542 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.3441, allocations: 8 kB / 0.5542 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.3442, allocations: 0 / 0.5542 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3442, allocations: 0 / 0.5542 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003016/0.3472, allocations: 2.298 MB / 0.5565 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3472, allocations: 0 / 0.5565 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005116/0.3477, allocations: 131.8 kB / 0.5566 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3477, allocations: 0 / 0.5566 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.064e-05/0.3477, allocations: 20 kB / 0.5566 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3477, allocations: 0 / 0.5566 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3477, allocations: 0 / 0.5566 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/0.3502, allocations: 1.956 MB / 0.5585 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001957/0.3504, allocations: 122.9 kB / 0.5586 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.929e-05/0.3505, allocations: 8.062 kB / 0.5586 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002693/0.3508, allocations: 31.97 kB / 0.5587 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.3509, allocations: 44.58 kB / 0.5587 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.31e-05/0.3509, allocations: 27.98 kB / 0.5587 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001163/0.3521, allocations: 0.8715 MB / 0.5596 GB, free: 14.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3521, allocations: 0 / 0.5596 GB, free: 14.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006705/0.3528, allocations: 219.2 kB / 0.5598 GB, free: 14.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.002891/0.3557, allocations: 2.514 MB / 0.5623 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.3573, allocations: 1.06 MB / 0.5633 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3573, allocations: 0 / 0.5633 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007269/0.358, allocations: 0.5318 MB / 0.5638 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.3585, allocations: 69.14 kB / 0.5639 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01627/0.3748, allocations: 11.69 MB / 0.5753 GB, free: 14.28 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008057/0.3756, allocations: 0.7127 MB / 0.576 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003641/0.376, allocations: 124.3 kB / 0.5761 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006665/0.3766, allocations: 0.5775 MB / 0.5767 GB, free: 12.83 MB / 430.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3766, allocations: 7.875 kB / 0.5767 GB, free: 12.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05189/0.4285, allocations: 18.92 MB / 0.5952 GB, free: 10 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.97, allocations: 6.25 kB / 0.5952 GB, free: 10 MB / 446.1 MB " [Timeout remaining time 648] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5_res.csv --start-time 0 --stop-time 233 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0932 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.866586928954348] Failed to read output from testmodel.py, exit status != 0: 12.122621563030407 12.152632401 11.831907546 Calling exit ...