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.00128/0.00128, allocations: 113.5 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.001443/0.001443, allocations: 213.5 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.381/1.381, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.1885/0.1885, allocations: 29.22 MB / 342.4 MB, free: 5.793 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.001861/0.001861, allocations: 67.91 kB / 479.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3076, allocations: 60.79 MB / 0.5274 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004323/0.312, allocations: 3.674 MB / 0.5309 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.3131, allocations: 0.6852 MB / 0.5316 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003/0.3134, allocations: 22.12 kB / 0.5316 GB, free: 4.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004043/0.3138, allocations: 173.4 kB / 0.5318 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002883/0.3141, allocations: 139.7 kB / 0.5319 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006717/0.3148, allocations: 366.5 kB / 0.5323 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007799/0.3156, allocations: 0.8517 MB / 0.5331 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006294/0.3162, allocations: 0.4913 MB / 0.5336 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002543/0.3165, allocations: 347.1 kB / 0.5339 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003354/0.3168, allocations: 437.2 kB / 0.5343 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.3169, allocations: 86.66 kB / 0.5344 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.3171, allocations: 119.7 kB / 0.5345 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003761/0.3175, allocations: 459.1 kB / 0.535 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003392/0.3178, allocations: 0.6316 MB / 0.5356 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.319, allocations: 1.291 MB / 0.5369 GB, free: 1.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.319, allocations: 0 / 0.5369 GB, free: 1.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.319, allocations: 1.156 kB / 0.5369 GB, free: 1.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.753e-05/0.319, allocations: 0 / 0.5369 GB, free: 1.832 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.001838/0.3209, allocations: 1.821 MB / 0.5386 GB, free: 432 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.3209, allocations: 10.25 kB / 0.5386 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.763e-05/0.321, allocations: 32.78 kB / 0.5387 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001725/0.3212, allocations: 183 kB / 0.5388 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.3214, allocations: 219.2 kB / 0.5391 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009397/0.3223, allocations: 0.7286 MB / 0.5398 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.518e-05/0.3224, allocations: 83.64 kB / 0.5398 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.3225, allocations: 113.2 kB / 0.54 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.3243, allocations: 1.314 MB / 0.5412 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.3244, allocations: 1.344 kB / 0.5412 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.586e-05/0.3244, allocations: 46.33 kB / 0.5413 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.017e-05/0.3245, allocations: 50.27 kB / 0.5413 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.3263, allocations: 1.256 MB / 0.5426 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004878/0.3312, allocations: 3.854 MB / 0.5463 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.3325, allocations: 1.019 MB / 0.5473 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006603/0.3332, allocations: 0.5013 MB / 0.5478 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.022e-05/0.3333, allocations: 42.55 kB / 0.5478 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.3333, allocations: 39.06 kB / 0.5479 GB, free: 10.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=82): time 2.275e-06/0.3333, allocations: 0 / 0.5479 GB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.01047/0.3438, allocations: 5.94 MB / 0.5537 GB, free: 6.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/0.3438, allocations: 90.11 kB / 0.5538 GB, free: 5.914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001673/0.3455, allocations: 1.362 MB / 0.5551 GB, free: 4.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.316e-05/0.3456, allocations: 49.69 kB / 0.5551 GB, free: 4.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006872/0.3463, allocations: 0.8586 MB / 0.556 GB, free: 3.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002931/0.3466, allocations: 384.7 kB / 0.5564 GB, free: 3.242 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002857/0.3469, allocations: 206.9 kB / 0.5566 GB, free: 3.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.347, allocations: 345.9 kB / 0.5569 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008736/0.3479, allocations: 0.6624 MB / 0.5575 GB, free: 2.027 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.349, allocations: 0.9264 MB / 0.5584 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/0.3512, allocations: 1.682 MB / 0.5601 GB, free: 15.2 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.3512, allocations: 4 kB / 0.5601 GB, free: 15.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.002513/0.3537, allocations: 1.867 MB / 0.5619 GB, free: 13.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3538, allocations: 11.94 kB / 0.5619 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.3538, allocations: 8 kB / 0.5619 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.004e-05/0.3538, allocations: 16 kB / 0.5619 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008128/0.3546, allocations: 256.3 kB / 0.5622 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.45e-05/0.3546, allocations: 23.94 kB / 0.5622 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.355, allocations: 35.98 kB / 0.5622 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.3551, allocations: 68 kB / 0.5623 GB, free: 12.91 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.0005607/0.3557, allocations: 425.2 kB / 0.5627 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/0.3559, allocations: 174.8 kB / 0.5629 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002643/0.3585, allocations: 1.839 MB / 0.5647 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.3585, allocations: 8 kB / 0.5647 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.3585, allocations: 4 kB / 0.5647 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.3585, allocations: 3.984 kB / 0.5647 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004406/0.3629, allocations: 3.287 MB / 0.5679 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.363, allocations: 4 kB / 0.5679 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007367/0.3637, allocations: 199.7 kB / 0.5681 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-06/0.3637, allocations: 8.125 kB / 0.5681 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.878e-05/0.3638, allocations: 31.98 kB / 0.5681 GB, free: 6.855 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/0.3638, allocations: 7.938 kB / 0.5681 GB, free: 6.848 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.3638, allocations: 0 / 0.5681 GB, free: 6.848 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003447/0.3672, allocations: 2.83 MB / 0.5709 GB, free: 3.988 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.3674, allocations: 138.8 kB / 0.571 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.3675, allocations: 24.06 kB / 0.5711 GB, free: 3.828 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003396/0.3679, allocations: 23.92 kB / 0.5711 GB, free: 3.805 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.368, allocations: 88.78 kB / 0.5712 GB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.902e-05/0.3681, allocations: 52 kB / 0.5712 GB, free: 3.664 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001185/0.3693, allocations: 0.9375 MB / 0.5721 GB, free: 2.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3693, allocations: 0 / 0.5721 GB, free: 2.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006971/0.37, allocations: 207.9 kB / 0.5723 GB, free: 2.527 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.003979/0.3739, allocations: 3.417 MB / 0.5757 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00206/0.376, allocations: 1.509 MB / 0.5771 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.376, allocations: 0 / 0.5771 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000953/0.377, allocations: 0.7401 MB / 0.5779 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007437/0.3777, allocations: 115 kB / 0.578 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01889/0.3966, allocations: 14.53 MB / 0.5922 GB, free: 13.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.3977, allocations: 1.367 MB / 0.5935 GB, free: 12.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005973/0.3983, allocations: 214 kB / 0.5937 GB, free: 12.13 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008721/0.3992, allocations: 0.6829 MB / 0.5944 GB, free: 11.45 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3992, allocations: 3.938 kB / 0.5944 GB, free: 11.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05145/0.4506, allocations: 23.8 MB / 0.6176 GB, free: 3.762 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.56, allocations: 10.64 kB / 0.6176 GB, free: 3.754 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.45530257106293] Failed to read output from testmodel.py, exit status != 0: 13.734205871005543 13.76034562 13.436900889 Calling exit ...