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.001671/0.001671, 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.002023/0.002023, 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.362/1.362, allocations: 230.6 MB / 256.8 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.1702/0.1702, allocations: 29.23 MB / 342.4 MB, free: 5.586 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.00187/0.00187, allocations: 67.88 kB / 479.1 MB, free: 364 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3006, allocations: 60.79 MB / 0.5273 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004003/0.3046, allocations: 3.079 MB / 0.5303 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.306, allocations: 0.6719 MB / 0.5309 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003134/0.3063, allocations: 17.62 kB / 0.531 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003973/0.3067, allocations: 173.7 kB / 0.5311 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002949/0.307, allocations: 134.8 kB / 0.5313 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006851/0.3077, allocations: 353.6 kB / 0.5316 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007792/0.3085, allocations: 0.8426 MB / 0.5324 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006187/0.3091, allocations: 0.4982 MB / 0.5329 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002769/0.3094, allocations: 340.6 kB / 0.5332 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003254/0.3097, allocations: 435 kB / 0.5336 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.3098, allocations: 84.78 kB / 0.5337 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/0.31, allocations: 119.5 kB / 0.5338 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003551/0.3104, allocations: 439.5 kB / 0.5343 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002778/0.3107, allocations: 472.8 kB / 0.5347 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.3118, allocations: 1.277 MB / 0.536 GB, free: 2.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3118, allocations: 1.875 kB / 0.536 GB, free: 2.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3118, allocations: 0 / 0.536 GB, free: 2.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.828e-05/0.3118, allocations: 0 / 0.536 GB, free: 2.52 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.00173/0.3136, allocations: 1.768 MB / 0.5377 GB, free: 1.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.3136, allocations: 9.75 kB / 0.5377 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.619e-05/0.3137, allocations: 39.38 kB / 0.5377 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001555/0.3138, allocations: 176 kB / 0.5379 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.314, allocations: 209.1 kB / 0.5381 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007308/0.3148, allocations: 0.7128 MB / 0.5388 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.253e-05/0.3148, allocations: 82.55 kB / 0.5389 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.3149, allocations: 107.9 kB / 0.539 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.3166, allocations: 1.208 MB / 0.5402 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.3166, allocations: 5.547 kB / 0.5402 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.323e-05/0.3167, allocations: 49.25 kB / 0.5402 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.542e-05/0.3167, allocations: 27.66 kB / 0.5402 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.3182, allocations: 1.12 MB / 0.5413 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004414/0.3226, allocations: 3.443 MB / 0.5447 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.3239, allocations: 0.9993 MB / 0.5457 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005937/0.3245, allocations: 498.6 kB / 0.5461 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.27e-05/0.3246, allocations: 25.56 kB / 0.5462 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.3246, allocations: 47.28 kB / 0.5462 GB, free: 12.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.856e-06/0.3246, allocations: 0 / 0.5462 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.009929/0.3345, allocations: 5.609 MB / 0.5517 GB, free: 7.816 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.3346, allocations: 68.34 kB / 0.5518 GB, free: 7.738 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/0.3362, allocations: 1.28 MB / 0.553 GB, free: 6.449 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.026e-05/0.3363, allocations: 45.7 kB / 0.553 GB, free: 6.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006216/0.3369, allocations: 0.7771 MB / 0.5538 GB, free: 5.613 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003015/0.3372, allocations: 380.7 kB / 0.5542 GB, free: 5.238 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002507/0.3374, allocations: 166.7 kB / 0.5543 GB, free: 5.066 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3376, allocations: 341.9 kB / 0.5547 GB, free: 4.727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007979/0.3384, allocations: 0.6149 MB / 0.5553 GB, free: 4.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000875/0.3393, allocations: 0.7423 MB / 0.556 GB, free: 3.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001959/0.3412, allocations: 1.45 MB / 0.5574 GB, free: 1.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3412, allocations: 4 kB / 0.5574 GB, free: 1.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002257/0.3435, allocations: 1.668 MB / 0.559 GB, free: 184 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.3435, allocations: 7.938 kB / 0.559 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.3435, allocations: 4 kB / 0.559 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.3435, allocations: 8.312 kB / 0.559 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007176/0.3442, allocations: 211.6 kB / 0.5593 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.3443, allocations: 8 kB / 0.5593 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.3446, allocations: 23.98 kB / 0.5593 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-05/0.3447, allocations: 52 kB / 0.5593 GB, free: 15.87 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.0007127/0.3454, allocations: 401.4 kB / 0.5597 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001897/0.3456, allocations: 162.9 kB / 0.5599 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002581/0.3481, allocations: 1.799 MB / 0.5616 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.3482, allocations: 19.88 kB / 0.5616 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.3482, allocations: 0 / 0.5616 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.3482, allocations: 7.969 kB / 0.5617 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004217/0.3524, allocations: 3.15 MB / 0.5647 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.3524, allocations: 4 kB / 0.5647 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000733/0.3531, allocations: 187.7 kB / 0.5649 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.3531, allocations: 4 kB / 0.5649 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.989e-05/0.3532, allocations: 35.98 kB / 0.5649 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.3532, allocations: 4 kB / 0.565 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3532, allocations: 4 kB / 0.565 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003265/0.3565, allocations: 2.727 MB / 0.5676 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.3567, allocations: 135 kB / 0.5677 GB, free: 7.129 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.3568, allocations: 20 kB / 0.5678 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003167/0.3571, allocations: 20 kB / 0.5678 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.3572, allocations: 76.81 kB / 0.5679 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.64e-05/0.3573, allocations: 47.98 kB / 0.5679 GB, free: 6.969 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001169/0.3585, allocations: 0.8887 MB / 0.5688 GB, free: 6.082 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3585, allocations: 0 / 0.5688 GB, free: 6.082 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006141/0.3591, allocations: 199.9 kB / 0.569 GB, free: 5.887 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.00363/0.3627, allocations: 3.311 MB / 0.5722 GB, free: 2.535 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001812/0.3645, allocations: 1.406 MB / 0.5736 GB, free: 1.125 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3645, allocations: 4 kB / 0.5736 GB, free: 1.121 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008788/0.3654, allocations: 0.7443 MB / 0.5743 GB, free: 388 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006772/0.3661, allocations: 101.2 kB / 0.5744 GB, free: 288 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01781/0.3839, allocations: 13.64 MB / 0.5877 GB, free: 2.359 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008402/0.3847, allocations: 0.7588 MB / 0.5885 GB, free: 1.566 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004629/0.3852, allocations: 149.5 kB / 0.5886 GB, free: 1.422 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008345/0.386, allocations: 0.6672 MB / 0.5893 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of SimCode: time 1.503e-06/0.386, allocations: 0 / 0.5893 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0515/0.4375, allocations: 22.56 MB / 0.6113 GB, free: 10.37 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.53, allocations: 12.05 kB / 0.6113 GB, free: 10.36 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.339497242006473] Failed to read output from testmodel.py, exit status != 0: 13.694271611049771 13.709231569 13.394469889 Calling exit ...