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.001427/0.001427, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001553/0.001553, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.475/1.475, allocations: 230.6 MB / 256 MB, free: 8.031 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.1888/0.1888, allocations: 29.22 MB / 341.7 MB, free: 5.805 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.001994/0.001994, allocations: 75.88 kB / 478.4 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3053, allocations: 60.78 MB / 0.5266 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004073/0.3093, allocations: 3.684 MB / 0.5302 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.3107, allocations: 0.6824 MB / 0.5308 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003394/0.311, allocations: 22.66 kB / 0.5309 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004691/0.3115, allocations: 177 kB / 0.531 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002846/0.3118, allocations: 139.9 kB / 0.5312 GB, free: 4.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006167/0.3124, allocations: 365.6 kB / 0.5315 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008756/0.3133, allocations: 0.844 MB / 0.5323 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005848/0.3139, allocations: 0.4958 MB / 0.5328 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.3141, allocations: 351.7 kB / 0.5332 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004191/0.3145, allocations: 431.8 kB / 0.5336 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.3147, allocations: 86.53 kB / 0.5337 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.3149, allocations: 123.9 kB / 0.5338 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003366/0.3152, allocations: 459.1 kB / 0.5342 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003194/0.3155, allocations: 0.6289 MB / 0.5348 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001307/0.3168, allocations: 1.291 MB / 0.5361 GB, free: 1.703 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3168, allocations: 4 kB / 0.5361 GB, free: 1.699 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3168, allocations: 0 / 0.5361 GB, free: 1.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.23e-05/0.3168, allocations: 0 / 0.5361 GB, free: 1.699 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.001921/0.3188, allocations: 1.815 MB / 0.5379 GB, free: 328 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3188, allocations: 9.5 kB / 0.5379 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.319, allocations: 176.2 kB / 0.538 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.3191, allocations: 213.8 kB / 0.5382 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.3202, allocations: 0.7208 MB / 0.5389 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.321e-05/0.3203, allocations: 86.52 kB / 0.539 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.3204, allocations: 107.9 kB / 0.5391 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001839/0.3223, allocations: 1.293 MB / 0.5404 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.3223, allocations: 3.938 kB / 0.5404 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.639e-05/0.3224, allocations: 45.88 kB / 0.5404 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.206e-05/0.3224, allocations: 51.2 kB / 0.5405 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001759/0.3242, allocations: 1.239 MB / 0.5417 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005768/0.3299, allocations: 3.833 MB / 0.5454 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/0.3317, allocations: 1.329 MB / 0.5467 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000585/0.3323, allocations: 479.2 kB / 0.5472 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-05/0.3324, allocations: 33 kB / 0.5472 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.3324, allocations: 42.84 kB / 0.5473 GB, free: 10.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.345e-06/0.3324, allocations: 4 kB / 0.5473 GB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002483/0.3349, allocations: 1.566 MB / 0.5488 GB, free: 10.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/0.335, allocations: 89.3 kB / 0.5489 GB, free: 10.03 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001889/0.3369, allocations: 1.364 MB / 0.5502 GB, free: 8.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.3369, allocations: 41.7 kB / 0.5503 GB, free: 8.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007002/0.3376, allocations: 0.8659 MB / 0.5511 GB, free: 7.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002353/0.3379, allocations: 253.9 kB / 0.5514 GB, free: 7.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/0.3381, allocations: 146.6 kB / 0.5515 GB, free: 7.359 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3382, allocations: 341.9 kB / 0.5518 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007142/0.3389, allocations: 473.7 kB / 0.5523 GB, free: 6.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008388/0.3398, allocations: 0.7278 MB / 0.553 GB, free: 5.723 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/0.3414, allocations: 1.234 MB / 0.5542 GB, free: 4.379 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.732e-05/0.3414, allocations: 0 / 0.5542 GB, free: 4.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00206/0.3434, allocations: 1.398 MB / 0.5556 GB, free: 2.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.878e-05/0.3435, allocations: 20.06 kB / 0.5556 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.279e-05/0.3436, allocations: 8 kB / 0.5556 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.463e-05/0.3436, allocations: 12 kB / 0.5556 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005669/0.3442, allocations: 183.7 kB / 0.5558 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-05/0.3442, allocations: 19.92 kB / 0.5558 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005127/0.3447, allocations: 83.34 kB / 0.5559 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.904e-05/0.3448, allocations: 40 kB / 0.5559 GB, free: 2.613 MB / 398.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 (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 prepare postOptimizeDAE: time 0.0006486/0.3454, allocations: 397.4 kB / 0.5563 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.3456, allocations: 162.9 kB / 0.5564 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001815/0.3475, allocations: 1.243 MB / 0.5576 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.3475, allocations: 8 kB / 0.5577 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.3475, allocations: 7.984 kB / 0.5577 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3475, allocations: 0 / 0.5577 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/0.3509, allocations: 2.386 MB / 0.56 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3509, allocations: 0 / 0.56 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004726/0.3514, allocations: 123.8 kB / 0.5601 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.3514, allocations: 0 / 0.5601 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.544e-05/0.3515, allocations: 20 kB / 0.5601 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.121e-05/0.3515, allocations: 4 kB / 0.5601 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.3515, allocations: 4 kB / 0.5601 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.3541, allocations: 2.008 MB / 0.5621 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.3543, allocations: 134.8 kB / 0.5622 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.505e-05/0.3543, allocations: 16.06 kB / 0.5622 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002662/0.3546, allocations: 15.98 kB / 0.5623 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.112e-05/0.3547, allocations: 40.58 kB / 0.5623 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.3547, allocations: 31.98 kB / 0.5623 GB, free: 11.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001263/0.356, allocations: 0.9297 MB / 0.5632 GB, free: 11 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.356, allocations: 4 kB / 0.5632 GB, free: 11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008509/0.3568, allocations: 227.2 kB / 0.5635 GB, free: 10.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,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 (70): * Single equations (assignments): 70 * 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.002873/0.3597, allocations: 2.569 MB / 0.566 GB, free: 8.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.3613, allocations: 1.061 MB / 0.567 GB, free: 7.117 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3614, allocations: 0 / 0.567 GB, free: 7.117 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007198/0.3621, allocations: 0.5073 MB / 0.5675 GB, free: 6.613 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006668/0.3627, allocations: 95.86 kB / 0.5676 GB, free: 6.523 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01726/0.38, allocations: 12.42 MB / 0.5797 GB, free: 9.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.3812, allocations: 1.334 MB / 0.581 GB, free: 8.312 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003894/0.3816, allocations: 137.1 kB / 0.5812 GB, free: 8.176 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007776/0.3823, allocations: 0.6164 MB / 0.5818 GB, free: 7.559 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3823, allocations: 0 / 0.5818 GB, free: 7.559 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0566/0.4389, allocations: 20.16 MB / 0.6014 GB, free: 3.492 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/13.96, allocations: 17.72 kB / 0.6015 GB, free: 3.48 MB / 446.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 os._exit(0), Time elapsed: 16.785351348808035] Failed to read output from testmodel.py, exit status != 0: 14.074404238956049 14.104008754 13.781098319 Calling exit ...