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.001349/0.001349, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001578/0.001578, allocations: 214.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.402/1.402, allocations: 230.6 MB / 256.8 MB, free: 7.953 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.1809/0.1809, allocations: 29.23 MB / 342.5 MB, free: 5.762 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.001855/0.001855, allocations: 64.19 kB / 479.2 MB, free: 492 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.299, allocations: 60.8 MB / 0.5274 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004159/0.3031, allocations: 3.639 MB / 0.5309 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.3042, allocations: 0.6709 MB / 0.5316 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.3045, allocations: 17.97 kB / 0.5316 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003601/0.3049, allocations: 166.8 kB / 0.5317 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002651/0.3052, allocations: 124.8 kB / 0.5319 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006492/0.3058, allocations: 355.7 kB / 0.5322 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007444/0.3066, allocations: 0.8324 MB / 0.533 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006057/0.3072, allocations: 0.5025 MB / 0.5335 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.3074, allocations: 342.3 kB / 0.5338 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.3077, allocations: 431.9 kB / 0.5342 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.3079, allocations: 86.09 kB / 0.5343 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.3081, allocations: 118.4 kB / 0.5344 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003375/0.3084, allocations: 445.3 kB / 0.5349 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003175/0.3087, allocations: 0.5979 MB / 0.5354 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001103/0.3098, allocations: 1.226 MB / 0.5366 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3098, allocations: 0 / 0.5366 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3098, allocations: 0 / 0.5366 GB, free: 1.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.3098, allocations: 0 / 0.5366 GB, free: 1.926 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.001698/0.3115, allocations: 1.712 MB / 0.5383 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.3116, allocations: 9.625 kB / 0.5383 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.414e-05/0.3116, allocations: 43.2 kB / 0.5384 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000156/0.3118, allocations: 178.6 kB / 0.5385 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.312, allocations: 202.2 kB / 0.5387 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008277/0.3128, allocations: 0.6926 MB / 0.5394 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.646e-05/0.3129, allocations: 77.48 kB / 0.5395 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.313, allocations: 110.7 kB / 0.5396 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.3145, allocations: 1.174 MB / 0.5407 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.3146, allocations: 1.219 kB / 0.5407 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.728e-05/0.3146, allocations: 45.56 kB / 0.5408 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.3147, allocations: 31.25 kB / 0.5408 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.3161, allocations: 1.075 MB / 0.5419 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004289/0.3204, allocations: 3.555 MB / 0.5453 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.3216, allocations: 0.956 MB / 0.5463 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005331/0.3221, allocations: 480.1 kB / 0.5467 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.747e-05/0.3222, allocations: 26.09 kB / 0.5467 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.3222, allocations: 42.47 kB / 0.5468 GB, free: 11.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.024e-06/0.3222, allocations: 4.281 kB / 0.5468 GB, free: 11.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=104): time 0.009013/0.3312, allocations: 5.401 MB / 0.5521 GB, free: 7.664 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.3313, allocations: 68.28 kB / 0.5521 GB, free: 7.586 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/0.3327, allocations: 1.23 MB / 0.5533 GB, free: 6.344 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.894e-05/0.3327, allocations: 45.7 kB / 0.5534 GB, free: 6.293 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006046/0.3333, allocations: 0.7572 MB / 0.5541 GB, free: 5.527 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002745/0.3336, allocations: 368.8 kB / 0.5545 GB, free: 5.164 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.3339, allocations: 162.6 kB / 0.5546 GB, free: 4.996 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.334, allocations: 345.9 kB / 0.5549 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007096/0.3347, allocations: 0.5876 MB / 0.5555 GB, free: 4.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007993/0.3355, allocations: 0.7032 MB / 0.5562 GB, free: 3.332 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/0.3373, allocations: 1.399 MB / 0.5576 GB, free: 1.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3373, allocations: 0 / 0.5576 GB, free: 1.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001975/0.3392, allocations: 1.594 MB / 0.5591 GB, free: 308 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.3393, allocations: 7.938 kB / 0.5591 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.3393, allocations: 8.312 kB / 0.5591 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.3393, allocations: 12 kB / 0.5592 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006585/0.34, allocations: 199.7 kB / 0.5593 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.34, allocations: 11.94 kB / 0.5594 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.3402, allocations: 24 kB / 0.5594 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.784e-05/0.3403, allocations: 52.03 kB / 0.5594 GB, free: 15.99 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 (119): * Single equations (assignments): 119 * 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.0004894/0.3408, allocations: 377.9 kB / 0.5598 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.341, allocations: 158.9 kB / 0.5599 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002327/0.3433, allocations: 1.72 MB / 0.5616 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.3433, allocations: 16 kB / 0.5616 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3434, allocations: 0 / 0.5616 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.3434, allocations: 3.984 kB / 0.5616 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003931/0.3473, allocations: 3.148 MB / 0.5647 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.3473, allocations: 11.97 kB / 0.5647 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006756/0.348, allocations: 183.7 kB / 0.5649 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.415e-06/0.348, allocations: 7.984 kB / 0.5649 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.778e-05/0.348, allocations: 31.98 kB / 0.5649 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.818e-06/0.3481, allocations: 11.94 kB / 0.565 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3481, allocations: 0 / 0.565 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003009/0.3511, allocations: 2.606 MB / 0.5675 GB, free: 7.609 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.3512, allocations: 131 kB / 0.5676 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.964e-05/0.3513, allocations: 16 kB / 0.5676 GB, free: 7.465 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002683/0.3516, allocations: 23.94 kB / 0.5677 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.3517, allocations: 68.88 kB / 0.5677 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.966e-05/0.3518, allocations: 47.98 kB / 0.5678 GB, free: 7.328 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001019/0.3528, allocations: 0.8558 MB / 0.5686 GB, free: 6.473 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3528, allocations: 0 / 0.5686 GB, free: 6.473 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005588/0.3533, allocations: 195.9 kB / 0.5688 GB, free: 6.281 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 (105): * Single equations (assignments): 105 * 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.003445/0.3568, allocations: 3.199 MB / 0.5719 GB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.3585, allocations: 1.356 MB / 0.5732 GB, free: 1.684 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3585, allocations: 0 / 0.5732 GB, free: 1.684 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007929/0.3593, allocations: 0.7052 MB / 0.5739 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006354/0.3599, allocations: 98.44 kB / 0.574 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/0.3757, allocations: 13.12 MB / 0.5868 GB, free: 3.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.3767, allocations: 1.327 MB / 0.5881 GB, free: 2.211 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004253/0.3771, allocations: 145.2 kB / 0.5883 GB, free: 2.066 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007752/0.3779, allocations: 0.6359 MB / 0.5889 GB, free: 1.434 MB / 430.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3779, allocations: 0 / 0.5889 GB, free: 1.434 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04867/0.4266, allocations: 22.07 MB / 0.6104 GB, free: 11.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.2, allocations: 4 kB / 0.6104 GB, free: 11.48 MB / 462.1 MB " [Timeout remaining time 647] (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 sys.exit(0), Time elapsed: 16.112985232961364] Failed to read output from testmodel.py, exit status != 0: 13.373392009059899 13.396290514 13.082419383 Calling exit ...