Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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.001225/0.001225, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001441/0.001441, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.334/1.334, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.1675/0.1675, allocations: 29.24 MB / 342.4 MB, free: 5.605 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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.001887/0.001887, allocations: 63.89 kB / 479.1 MB, free: 380 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3078, allocations: 60.79 MB / 0.5273 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004033/0.3119, allocations: 3.096 MB / 0.5303 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.3134, allocations: 0.6783 MB / 0.531 GB, free: 5.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003582/0.3138, allocations: 22.28 kB / 0.531 GB, free: 5.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004136/0.3142, allocations: 169.2 kB / 0.5311 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003049/0.3145, allocations: 143.5 kB / 0.5313 GB, free: 5.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007305/0.3152, allocations: 354.6 kB / 0.5316 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007696/0.316, allocations: 0.8475 MB / 0.5325 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006202/0.3166, allocations: 0.4997 MB / 0.5329 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/0.3169, allocations: 347.3 kB / 0.5333 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003422/0.3172, allocations: 437 kB / 0.5337 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.3174, allocations: 86.56 kB / 0.5338 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002116/0.3176, allocations: 119.3 kB / 0.5339 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003446/0.3179, allocations: 458.9 kB / 0.5343 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.3182, allocations: 484.8 kB / 0.5348 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.3194, allocations: 1.311 MB / 0.5361 GB, free: 2.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3194, allocations: 0 / 0.5361 GB, free: 2.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3194, allocations: 5.406 kB / 0.5361 GB, free: 2.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.3194, allocations: 0 / 0.5361 GB, free: 2.461 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001711/0.3211, allocations: 1.814 MB / 0.5378 GB, free: 1.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3212, allocations: 13.56 kB / 0.5379 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.103e-05/0.3212, allocations: 33.03 kB / 0.5379 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001652/0.3214, allocations: 187.2 kB / 0.5381 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.3216, allocations: 214.5 kB / 0.5383 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007524/0.3223, allocations: 0.727 MB / 0.539 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.108e-05/0.3224, allocations: 82.83 kB / 0.5391 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.3225, allocations: 110 kB / 0.5392 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001827/0.3243, allocations: 1.32 MB / 0.5405 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.3244, allocations: 2.25 kB / 0.5405 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.38e-05/0.3244, allocations: 46 kB / 0.5405 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.964e-05/0.3245, allocations: 54.28 kB / 0.5405 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.3262, allocations: 1.253 MB / 0.5418 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00489/0.331, allocations: 3.658 MB / 0.5453 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.3324, allocations: 1.023 MB / 0.5463 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006097/0.333, allocations: 0.5057 MB / 0.5468 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.161e-05/0.3331, allocations: 29.55 kB / 0.5469 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.3331, allocations: 43.44 kB / 0.5469 GB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=82): time 3.196e-06/0.3331, allocations: 0 / 0.5469 GB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.01021/0.3433, allocations: 5.938 MB / 0.5527 GB, free: 6.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.493e-05/0.3434, allocations: 94.14 kB / 0.5528 GB, free: 6.648 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.3451, allocations: 1.366 MB / 0.5541 GB, free: 5.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.163e-05/0.3452, allocations: 45.7 kB / 0.5542 GB, free: 5.223 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006529/0.3458, allocations: 0.8546 MB / 0.555 GB, free: 4.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002924/0.3461, allocations: 384.7 kB / 0.5554 GB, free: 3.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002881/0.3464, allocations: 210.9 kB / 0.5556 GB, free: 3.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3465, allocations: 345.9 kB / 0.5559 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008271/0.3474, allocations: 0.6546 MB / 0.5565 GB, free: 2.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.3484, allocations: 0.9264 MB / 0.5574 GB, free: 1.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002167/0.3506, allocations: 1.686 MB / 0.5591 GB, free: 15.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3506, allocations: 4 kB / 0.5591 GB, free: 15.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.002462/0.353, allocations: 1.866 MB / 0.5609 GB, free: 14.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.3531, allocations: 12.94 kB / 0.5609 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.3531, allocations: 8 kB / 0.5609 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.075e-05/0.3531, allocations: 16 kB / 0.561 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008095/0.3539, allocations: 259.6 kB / 0.5612 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.029e-05/0.3539, allocations: 15.94 kB / 0.5612 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004005/0.3543, allocations: 43.98 kB / 0.5613 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.3544, allocations: 64 kB / 0.5613 GB, free: 13.64 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (147): * Single equations (assignments): 147 * 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.0007006/0.3551, allocations: 421.3 kB / 0.5617 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.3553, allocations: 170.8 kB / 0.5619 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002552/0.3579, allocations: 1.838 MB / 0.5637 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.3579, allocations: 12 kB / 0.5637 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.3579, allocations: 4 kB / 0.5637 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.3579, allocations: 7.984 kB / 0.5637 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004201/0.3621, allocations: 3.197 MB / 0.5668 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-06/0.3621, allocations: 4 kB / 0.5668 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007293/0.3629, allocations: 195.7 kB / 0.567 GB, free: 7.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.846e-06/0.3629, allocations: 4 kB / 0.567 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.086e-05/0.3629, allocations: 35.98 kB / 0.5671 GB, free: 7.688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.778e-06/0.3629, allocations: 7.938 kB / 0.5671 GB, free: 7.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3629, allocations: 12.06 kB / 0.5671 GB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003242/0.3662, allocations: 2.826 MB / 0.5698 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000168/0.3664, allocations: 138.9 kB / 0.57 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.3665, allocations: 16.06 kB / 0.57 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003379/0.3668, allocations: 27.94 kB / 0.57 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.3669, allocations: 76.86 kB / 0.5701 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.007e-05/0.367, allocations: 59.98 kB / 0.5701 GB, free: 4.496 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001157/0.3682, allocations: 0.9336 MB / 0.5711 GB, free: 3.566 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3682, allocations: 0 / 0.5711 GB, free: 3.566 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007339/0.3689, allocations: 207.9 kB / 0.5712 GB, free: 3.363 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 5 ($outputAlias_Pop,$outputAlias_Pol,$outputAlias_Cap_inv,$outputAlias_Nat_res,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 (109): * Single equations (assignments): 109 * 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.003649/0.3726, allocations: 3.424 MB / 0.5746 GB, free: 15.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001994/0.3745, allocations: 1.502 MB / 0.5761 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3746, allocations: 0 / 0.5761 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008745/0.3754, allocations: 0.748 MB / 0.5768 GB, free: 13.65 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007434/0.3762, allocations: 108.2 kB / 0.5769 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01833/0.3945, allocations: 14.53 MB / 0.5911 GB, free: 14.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000831/0.3953, allocations: 0.7842 MB / 0.5919 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000589/0.3959, allocations: 206 kB / 0.592 GB, free: 13.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008363/0.3968, allocations: 0.6868 MB / 0.5927 GB, free: 12.87 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3968, allocations: 3.938 kB / 0.5927 GB, free: 12.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05204/0.4488, allocations: 23.52 MB / 0.6157 GB, free: 5.523 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.65, allocations: 4.062 kB / 0.6157 GB, free: 5.52 MB / 462.1 MB " [Timeout remaining time 646] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4_fmu --startTime=1900 --stopTime=2000 --stepSize=0.04 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.43306150205899] Failed to read output from testmodel.py, exit status != 0: 13.824228745070286 13.840579622 13.518051369 Calling exit ...