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.001248/0.001248, allocations: 113 kB / 18.94 MB, free: 2.957 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.001447/0.001447, allocations: 214.1 kB / 22.25 MB, free: 5.121 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.437/1.437, allocations: 230.6 MB / 256 MB, free: 8.012 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.1974/0.1974, allocations: 29.23 MB / 341.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.002166/0.002166, allocations: 63.91 kB / 478.4 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3025, allocations: 60.8 MB / 0.5266 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004479/0.3069, allocations: 3.658 MB / 0.5302 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.3088, allocations: 0.6781 MB / 0.5308 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006402/0.3094, allocations: 23.47 kB / 0.5308 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004236/0.3098, allocations: 171.9 kB / 0.531 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003318/0.3101, allocations: 132.8 kB / 0.5311 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009045/0.3111, allocations: 355.4 kB / 0.5315 GB, free: 4.441 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008548/0.3119, allocations: 0.847 MB / 0.5323 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007654/0.3127, allocations: 0.4942 MB / 0.5328 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.313, allocations: 340.3 kB / 0.5331 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003066/0.3133, allocations: 430.7 kB / 0.5335 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.3134, allocations: 85.69 kB / 0.5336 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001969/0.3136, allocations: 119.6 kB / 0.5337 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003061/0.3139, allocations: 444.3 kB / 0.5341 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000461/0.3144, allocations: 0.6125 MB / 0.5347 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.3156, allocations: 1.262 MB / 0.536 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3156, allocations: 0 / 0.536 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3156, allocations: 4 kB / 0.536 GB, free: 1.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.672e-05/0.3156, allocations: 0 / 0.536 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.002163/0.3178, allocations: 1.762 MB / 0.5377 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3178, allocations: 9.156 kB / 0.5377 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001539/0.3179, allocations: 172.9 kB / 0.5379 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001919/0.3181, allocations: 209.3 kB / 0.5381 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008925/0.319, allocations: 0.7141 MB / 0.5388 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.3192, allocations: 81.12 kB / 0.5388 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.3193, allocations: 105.1 kB / 0.5389 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.321, allocations: 1.178 MB / 0.5401 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.3211, allocations: 8.938 kB / 0.5401 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.36e-05/0.3211, allocations: 44.94 kB / 0.5401 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.747e-05/0.3212, allocations: 26.09 kB / 0.5402 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.3228, allocations: 1.104 MB / 0.5412 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00523/0.328, allocations: 3.609 MB / 0.5448 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.3297, allocations: 1.312 MB / 0.5461 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005242/0.3302, allocations: 466.8 kB / 0.5465 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.551e-05/0.3303, allocations: 29.48 kB / 0.5465 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.3303, allocations: 41.66 kB / 0.5466 GB, free: 11.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.224e-06/0.3303, allocations: 1.438 kB / 0.5466 GB, free: 11.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.002073/0.3324, allocations: 1.538 MB / 0.5481 GB, free: 10.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.3324, allocations: 59.28 kB / 0.5481 GB, free: 10.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001735/0.3342, allocations: 1.286 MB / 0.5494 GB, free: 9.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/0.3342, allocations: 37.7 kB / 0.5494 GB, free: 9.617 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006624/0.3349, allocations: 0.7843 MB / 0.5502 GB, free: 8.824 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/0.3351, allocations: 241.9 kB / 0.5504 GB, free: 8.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/0.3353, allocations: 114.7 kB / 0.5505 GB, free: 8.469 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3354, allocations: 337.9 kB / 0.5508 GB, free: 8.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006409/0.3361, allocations: 437.8 kB / 0.5513 GB, free: 7.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006419/0.3367, allocations: 0.5311 MB / 0.5518 GB, free: 7.145 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.338, allocations: 1.006 MB / 0.5528 GB, free: 6.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.338, allocations: 0 / 0.5528 GB, free: 6.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001671/0.3397, allocations: 1.199 MB / 0.5539 GB, free: 4.898 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3397, allocations: 7.938 kB / 0.5539 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.3397, allocations: 4 kB / 0.5539 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.3397, allocations: 11.94 kB / 0.554 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/0.3402, allocations: 136.1 kB / 0.5541 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.3402, allocations: 8 kB / 0.5541 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002895/0.3405, allocations: 59.52 kB / 0.5542 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.3406, allocations: 27.98 kB / 0.5542 GB, free: 4.648 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 (83): * Single equations (assignments): 83 * 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.0007708/0.3413, allocations: 369.5 kB / 0.5545 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.3415, allocations: 147 kB / 0.5547 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/0.3432, allocations: 1.199 MB / 0.5558 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.3432, allocations: 12 kB / 0.5559 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3432, allocations: 4 kB / 0.5559 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3433, allocations: 3.984 kB / 0.5559 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003152/0.3464, allocations: 2.354 MB / 0.5582 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3464, allocations: 0 / 0.5582 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004731/0.3469, allocations: 107.9 kB / 0.5583 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.3469, allocations: 4 kB / 0.5583 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.334e-05/0.3469, allocations: 12 kB / 0.5583 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.3469, allocations: 7.938 kB / 0.5583 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.3469, allocations: 11.92 kB / 0.5583 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00238/0.3493, allocations: 1.883 MB / 0.5601 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002038/0.3495, allocations: 130.8 kB / 0.5603 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.928e-05/0.3496, allocations: 12.06 kB / 0.5603 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.3498, allocations: 15.98 kB / 0.5603 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.102e-05/0.3499, allocations: 52.52 kB / 0.5603 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.3499, allocations: 16 kB / 0.5604 GB, free: 14.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001313/0.3513, allocations: 0.8926 MB / 0.5612 GB, free: 13.33 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3513, allocations: 0 / 0.5612 GB, free: 13.33 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005948/0.3519, allocations: 211.2 kB / 0.5614 GB, free: 13.12 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 (68): * Single equations (assignments): 68 * 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.002757/0.3546, allocations: 2.464 MB / 0.5638 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.3561, allocations: 0.9621 MB / 0.5648 GB, free: 9.672 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3561, allocations: 3.938 kB / 0.5648 GB, free: 9.668 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006139/0.3567, allocations: 0.5001 MB / 0.5653 GB, free: 9.168 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007841/0.3575, allocations: 93.94 kB / 0.5654 GB, free: 9.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01704/0.3745, allocations: 11.55 MB / 0.5766 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.3757, allocations: 1.319 MB / 0.5779 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002563/0.376, allocations: 72.39 kB / 0.578 GB, free: 11.94 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008585/0.3768, allocations: 0.5891 MB / 0.5786 GB, free: 11.36 MB / 430.1 MB Notification: Performance of SimCode: time 1.673e-06/0.3768, allocations: 0 / 0.5786 GB, free: 11.36 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06118/0.438, allocations: 19.1 MB / 0.5972 GB, free: 8.355 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.04, allocations: 2.406 kB / 0.5972 GB, free: 8.355 MB / 446.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 os._exit(0), Time elapsed: 16.80391382612288] Failed to read output from testmodel.py, exit status != 0: 14.156222442863509 14.173387744 13.854797182 Calling exit ...