Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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.001255/0.001255, 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.001338/0.001338, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.338/1.338, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.174/0.174, allocations: 29.23 MB / 342.5 MB, free: 5.789 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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.001849/0.001849, allocations: 66.88 kB / 479.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3066, allocations: 60.8 MB / 0.5274 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004202/0.3108, allocations: 3.657 MB / 0.5309 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.3123, allocations: 0.6756 MB / 0.5316 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000362/0.3126, allocations: 18.12 kB / 0.5316 GB, free: 4.816 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000405/0.313, allocations: 177 kB / 0.5318 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002797/0.3133, allocations: 135.9 kB / 0.5319 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007157/0.314, allocations: 356.7 kB / 0.5322 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009101/0.3149, allocations: 0.8339 MB / 0.5331 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007128/0.3156, allocations: 0.4995 MB / 0.5335 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003231/0.316, allocations: 344.2 kB / 0.5339 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003924/0.3164, allocations: 434.7 kB / 0.5343 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001518/0.3165, allocations: 84.47 kB / 0.5344 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002422/0.3167, allocations: 123.4 kB / 0.5345 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004288/0.3172, allocations: 437.6 kB / 0.5349 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004046/0.3176, allocations: 0.6158 MB / 0.5355 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.319, allocations: 1.258 MB / 0.5367 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.319, allocations: 4 kB / 0.5367 GB, free: 1.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.155e-06/0.319, allocations: 0.7812 kB / 0.5367 GB, free: 1.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.208e-05/0.3191, allocations: 0 / 0.5367 GB, free: 1.906 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001792/0.3208, allocations: 1.768 MB / 0.5385 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3209, allocations: 9.312 kB / 0.5385 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.166e-05/0.321, allocations: 35.64 kB / 0.5385 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001642/0.3211, allocations: 174.6 kB / 0.5387 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002032/0.3213, allocations: 209.4 kB / 0.5389 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009641/0.3223, allocations: 0.711 MB / 0.5396 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.139e-05/0.3224, allocations: 82.64 kB / 0.5396 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.3225, allocations: 115.8 kB / 0.5398 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.3242, allocations: 1.198 MB / 0.5409 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.824e-05/0.3242, allocations: 9 kB / 0.5409 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-05/0.3243, allocations: 45.19 kB / 0.541 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.3243, allocations: 27.25 kB / 0.541 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.3259, allocations: 1.125 MB / 0.5421 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004443/0.3303, allocations: 3.632 MB / 0.5456 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.3316, allocations: 1.009 MB / 0.5466 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005893/0.3322, allocations: 0.4893 MB / 0.5471 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.651e-05/0.3323, allocations: 34.69 kB / 0.5471 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.3323, allocations: 42.03 kB / 0.5472 GB, free: 11.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.154e-06/0.3323, allocations: 1.344 kB / 0.5472 GB, free: 11.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.009535/0.3418, allocations: 5.599 MB / 0.5527 GB, free: 7.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.3419, allocations: 64.41 kB / 0.5527 GB, free: 7.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/0.3434, allocations: 1.28 MB / 0.554 GB, free: 5.766 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.72e-05/0.3434, allocations: 45.69 kB / 0.554 GB, free: 5.715 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005984/0.344, allocations: 0.7888 MB / 0.5548 GB, free: 4.918 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002917/0.3443, allocations: 376.7 kB / 0.5551 GB, free: 4.547 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.3446, allocations: 170.6 kB / 0.5553 GB, free: 4.371 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3447, allocations: 345.9 kB / 0.5556 GB, free: 4.027 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007721/0.3455, allocations: 0.6149 MB / 0.5562 GB, free: 3.414 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008671/0.3463, allocations: 0.7384 MB / 0.557 GB, free: 2.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001892/0.3482, allocations: 1.446 MB / 0.5584 GB, free: 1.164 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3482, allocations: 4 kB / 0.5584 GB, free: 1.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002137/0.3504, allocations: 1.676 MB / 0.56 GB, free: 15.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.3504, allocations: 8 kB / 0.56 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3504, allocations: 4 kB / 0.56 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.3504, allocations: 4 kB / 0.56 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000696/0.3511, allocations: 212 kB / 0.5602 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.3511, allocations: 15.98 kB / 0.5602 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002731/0.3514, allocations: 20 kB / 0.5603 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-05/0.3515, allocations: 52 kB / 0.5603 GB, free: 15.17 MB / 414.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 (121): * Single equations (assignments): 121 * 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.0005402/0.352, allocations: 397.3 kB / 0.5607 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.3522, allocations: 158.9 kB / 0.5608 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/0.3547, allocations: 1.795 MB / 0.5626 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.3547, allocations: 12 kB / 0.5626 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3547, allocations: 0 / 0.5626 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.3547, allocations: 7.969 kB / 0.5626 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00418/0.3589, allocations: 3.251 MB / 0.5658 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3589, allocations: 0 / 0.5658 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007105/0.3596, allocations: 195.7 kB / 0.566 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.3596, allocations: 4 kB / 0.566 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.1e-05/0.3597, allocations: 35.92 kB / 0.566 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.935e-06/0.3597, allocations: 4 kB / 0.566 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3597, allocations: 0 / 0.566 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003201/0.3629, allocations: 2.739 MB / 0.5687 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.3631, allocations: 126.9 kB / 0.5688 GB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.3632, allocations: 24.06 kB / 0.5688 GB, free: 6.316 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/0.3635, allocations: 23.98 kB / 0.5689 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.3636, allocations: 68.88 kB / 0.5689 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.433e-05/0.3637, allocations: 47.98 kB / 0.569 GB, free: 6.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.3647, allocations: 0.8926 MB / 0.5698 GB, free: 5.289 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3647, allocations: 0 / 0.5698 GB, free: 5.289 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005848/0.3653, allocations: 191.9 kB / 0.57 GB, free: 5.102 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 107 * 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.00366/0.369, allocations: 3.322 MB / 0.5733 GB, free: 1.746 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001885/0.3709, allocations: 1.414 MB / 0.5746 GB, free: 336 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3709, allocations: 0 / 0.5746 GB, free: 336 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009297/0.3718, allocations: 0.7319 MB / 0.5754 GB, free: 15.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006713/0.3725, allocations: 106.8 kB / 0.5755 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01811/0.3906, allocations: 13.66 MB / 0.5888 GB, free: 1.559 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.3917, allocations: 1.359 MB / 0.5901 GB, free: 172 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004751/0.3922, allocations: 149.2 kB / 0.5903 GB, free: 24 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000817/0.393, allocations: 0.6556 MB / 0.5909 GB, free: 15.37 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.393, allocations: 0 / 0.5909 GB, free: 15.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04966/0.4426, allocations: 22.74 MB / 0.6131 GB, free: 8.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.37, allocations: 8 kB / 0.6131 GB, free: 8.742 MB / 462.1 MB " [Timeout remaining time 646] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.181360907969065] Failed to read output from testmodel.py, exit status != 0: 13.541528953937814 13.568646196 13.244716376 Calling exit ...