Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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.001282/0.001282, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001518/0.001518, allocations: 214.3 kB / 22.25 MB, free: 4.859 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.331/1.331, allocations: 230.6 MB / 256 MB, free: 7.801 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.1813/0.1813, allocations: 29.24 MB / 341.7 MB, free: 5.613 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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.002072/0.002072, allocations: 71.91 kB / 478.4 MB, free: 392 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3216, allocations: 60.8 MB / 0.5265 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.003983/0.3255, allocations: 3.063 MB / 0.5295 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.3274, allocations: 0.6601 MB / 0.5302 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000506/0.3279, allocations: 22.28 kB / 0.5302 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004137/0.3283, allocations: 162.6 kB / 0.5303 GB, free: 5.203 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003001/0.3286, allocations: 121.5 kB / 0.5304 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007199/0.3293, allocations: 359.2 kB / 0.5308 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007853/0.3301, allocations: 0.8367 MB / 0.5316 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006172/0.3307, allocations: 465.4 kB / 0.5321 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002785/0.331, allocations: 346.6 kB / 0.5324 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003374/0.3313, allocations: 380.2 kB / 0.5327 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001295/0.3314, allocations: 85.81 kB / 0.5328 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002206/0.3317, allocations: 114.7 kB / 0.5329 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003577/0.332, allocations: 444.4 kB / 0.5334 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002691/0.3323, allocations: 460.9 kB / 0.5338 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001203/0.3335, allocations: 1.248 MB / 0.535 GB, free: 2.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3335, allocations: 1.125 kB / 0.535 GB, free: 2.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3335, allocations: 0 / 0.535 GB, free: 2.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.963e-05/0.3335, allocations: 0 / 0.535 GB, free: 2.672 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001849/0.3354, allocations: 1.709 MB / 0.5367 GB, free: 1.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3354, allocations: 10 kB / 0.5367 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.3356, allocations: 173.4 kB / 0.5369 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.3358, allocations: 208.9 kB / 0.5371 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008034/0.3366, allocations: 0.6948 MB / 0.5377 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.521e-05/0.3366, allocations: 77.09 kB / 0.5378 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.3367, allocations: 109.1 kB / 0.5379 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.3382, allocations: 1.142 MB / 0.539 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.3382, allocations: 5.25 kB / 0.539 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.745e-05/0.3383, allocations: 41.75 kB / 0.5391 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.362e-05/0.3383, allocations: 30.06 kB / 0.5391 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.3398, allocations: 1.059 MB / 0.5401 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004504/0.3443, allocations: 3.342 MB / 0.5434 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.3458, allocations: 1.242 MB / 0.5446 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004995/0.3463, allocations: 440.8 kB / 0.545 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.399e-05/0.3464, allocations: 33.75 kB / 0.5451 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.3464, allocations: 41.5 kB / 0.5451 GB, free: 12.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.965e-06/0.3464, allocations: 1.281 kB / 0.5451 GB, free: 12.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001868/0.3483, allocations: 1.457 MB / 0.5465 GB, free: 11.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.3483, allocations: 58.31 kB / 0.5466 GB, free: 11.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001578/0.3499, allocations: 1.238 MB / 0.5478 GB, free: 11.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.987e-05/0.35, allocations: 45.69 kB / 0.5478 GB, free: 11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006128/0.3506, allocations: 0.7605 MB / 0.5486 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.3508, allocations: 234.2 kB / 0.5488 GB, free: 10 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.3509, allocations: 114.3 kB / 0.5489 GB, free: 9.887 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3511, allocations: 334 kB / 0.5492 GB, free: 9.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/0.3516, allocations: 413.1 kB / 0.5496 GB, free: 9.148 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005558/0.3521, allocations: 0.5043 MB / 0.5501 GB, free: 8.609 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.3532, allocations: 0.9513 MB / 0.5511 GB, free: 7.629 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3532, allocations: 0 / 0.5511 GB, free: 7.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.00143/0.3546, allocations: 1.141 MB / 0.5522 GB, free: 6.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3547, allocations: 7.984 kB / 0.5522 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.3547, allocations: 7.938 kB / 0.5522 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.3547, allocations: 4 kB / 0.5522 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004488/0.3552, allocations: 123.8 kB / 0.5523 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/0.3552, allocations: 15.88 kB / 0.5523 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.3555, allocations: 55.58 kB / 0.5524 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.117e-05/0.3555, allocations: 24.3 kB / 0.5524 GB, free: 6.246 MB / 398.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 (81): * Single equations (assignments): 81 * 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.0006162/0.3561, allocations: 357.5 kB / 0.5527 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.3563, allocations: 143 kB / 0.5529 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/0.3577, allocations: 1.14 MB / 0.554 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.3578, allocations: 11.98 kB / 0.554 GB, free: 4.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3578, allocations: 3.938 kB / 0.554 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3578, allocations: 0 / 0.554 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002719/0.3605, allocations: 2.193 MB / 0.5561 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3605, allocations: 0 / 0.5561 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004315/0.3609, allocations: 111.8 kB / 0.5562 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.3609, allocations: 0 / 0.5562 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.927e-05/0.361, allocations: 23.94 kB / 0.5563 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.361, allocations: 0 / 0.5563 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.361, allocations: 0 / 0.5563 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.363, allocations: 1.796 MB / 0.558 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002181/0.3632, allocations: 126.9 kB / 0.5581 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.633e-05/0.3633, allocations: 12 kB / 0.5582 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000196/0.3635, allocations: 12 kB / 0.5582 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.078e-05/0.3635, allocations: 44.56 kB / 0.5582 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.3636, allocations: 20 kB / 0.5582 GB, free: 176 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001134/0.3647, allocations: 0.8558 MB / 0.5591 GB, free: 15.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3647, allocations: 0 / 0.5591 GB, free: 15.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006106/0.3653, allocations: 207.2 kB / 0.5593 GB, free: 15.11 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (66): * Single equations (assignments): 66 * 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.002367/0.3677, allocations: 2.37 MB / 0.5616 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.3689, allocations: 0.9191 MB / 0.5625 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3689, allocations: 0 / 0.5625 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005267/0.3694, allocations: 479.5 kB / 0.5629 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006542/0.3701, allocations: 88.98 kB / 0.563 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/0.3847, allocations: 11.08 MB / 0.5738 GB, free: 15.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007524/0.3854, allocations: 0.6931 MB / 0.5745 GB, free: 15.25 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002424/0.3856, allocations: 80.3 kB / 0.5746 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006082/0.3863, allocations: 0.5657 MB / 0.5751 GB, free: 14.61 MB / 430.1 MB Notification: Performance of SimCode: time 1.764e-06/0.3863, allocations: 0 / 0.5751 GB, free: 14.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05799/0.4442, allocations: 18.4 MB / 0.5931 GB, free: 12.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.12, allocations: 0 / 0.5931 GB, free: 12.32 MB / 446.1 MB " [Timeout remaining time 648] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.790922555606812] Failed to read output from testmodel.py, exit status != 0: 12.23710811091587 12.251057062 11.91473077 Calling exit ...