Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.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.00123/0.00123, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.0013/0.0013, allocations: 215.1 kB / 23.02 MB, free: 4.949 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.315/1.315, allocations: 230.6 MB / 256.8 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.1745/0.1745, allocations: 29.23 MB / 342.4 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.World3.Human_Fertility,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World3.Human_Fertility,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility",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.001843/0.001843, allocations: 59.91 kB / 479.1 MB, free: 444 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.316, allocations: 60.79 MB / 0.5272 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.003976/0.32, allocations: 3.117 MB / 0.5303 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.3212, allocations: 0.8502 MB / 0.5311 GB, free: 5.109 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002661/0.3214, allocations: 25.16 kB / 0.5311 GB, free: 5.098 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003381/0.3218, allocations: 162.4 kB / 0.5313 GB, free: 4.984 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.322, allocations: 103.7 kB / 0.5314 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006691/0.3227, allocations: 448.9 kB / 0.5318 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008236/0.3235, allocations: 0.9946 MB / 0.5328 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006016/0.3241, allocations: 0.5111 MB / 0.5333 GB, free: 3.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002441/0.3244, allocations: 377.1 kB / 0.5336 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002933/0.3247, allocations: 421 kB / 0.534 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.3248, allocations: 116.8 kB / 0.5342 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.325, allocations: 150.4 kB / 0.5343 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002383/0.3252, allocations: 311.4 kB / 0.5346 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.3255, allocations: 417.4 kB / 0.535 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00107/0.3266, allocations: 1.274 MB / 0.5362 GB, free: 2.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.83e-06/0.3266, allocations: 1.062 kB / 0.5362 GB, free: 2.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3266, allocations: 4 kB / 0.5362 GB, free: 2.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.481e-05/0.3266, allocations: 3.938 kB / 0.5362 GB, free: 2.102 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: 279 * Number of variables: 279 Notification: Performance of Generate backend data structure: time 0.001495/0.3281, allocations: 1.34 MB / 0.5376 GB, free: 1.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3281, allocations: 10.16 kB / 0.5376 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.485e-05/0.3282, allocations: 35.83 kB / 0.5376 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.3283, allocations: 171.1 kB / 0.5378 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.3285, allocations: 148.8 kB / 0.5379 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007289/0.3292, allocations: 0.6527 MB / 0.5385 GB, free: 320 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.631e-05/0.3293, allocations: 88.44 kB / 0.5386 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.3294, allocations: 110.9 kB / 0.5387 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.331, allocations: 1.098 MB / 0.5398 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.331, allocations: 5.312 kB / 0.5398 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.465e-05/0.3311, allocations: 47 kB / 0.5399 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.559e-05/0.3311, allocations: 27.38 kB / 0.5399 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.3323, allocations: 0.7144 MB / 0.5406 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004154/0.3364, allocations: 3.813 MB / 0.5443 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007597/0.3372, allocations: 425.2 kB / 0.5447 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.3375, allocations: 187.7 kB / 0.5449 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.603e-05/0.3375, allocations: 19.06 kB / 0.5449 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.3375, allocations: 37.27 kB / 0.5449 GB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 1.674e-06/0.3375, allocations: 0 / 0.5449 GB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.008898/0.3464, allocations: 3.322 MB / 0.5482 GB, free: 10.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.3465, allocations: 59.84 kB / 0.5482 GB, free: 10.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007942/0.3473, allocations: 0.6732 MB / 0.5489 GB, free: 9.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/0.3473, allocations: 31.86 kB / 0.5489 GB, free: 9.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004196/0.3477, allocations: 0.6071 MB / 0.5495 GB, free: 9.082 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.3479, allocations: 183.3 kB / 0.5497 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.3481, allocations: 122.9 kB / 0.5498 GB, free: 8.848 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3482, allocations: 327.7 kB / 0.5501 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007102/0.3489, allocations: 361.4 kB / 0.5505 GB, free: 8.387 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008167/0.3497, allocations: 0.5069 MB / 0.551 GB, free: 8.059 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001644/0.3514, allocations: 0.8946 MB / 0.5518 GB, free: 7.426 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3514, allocations: 0 / 0.5518 GB, free: 7.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001828/0.3532, allocations: 1.004 MB / 0.5528 GB, free: 6.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3532, allocations: 8 kB / 0.5528 GB, free: 6.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.3532, allocations: 4 kB / 0.5528 GB, free: 6.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.3533, allocations: 8.625 kB / 0.5528 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/0.3538, allocations: 147.8 kB / 0.553 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/0.3539, allocations: 15.92 kB / 0.553 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.3542, allocations: 35.97 kB / 0.553 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.48e-05/0.3543, allocations: 44 kB / 0.5531 GB, free: 6.156 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 10 (Fert_Cont_Facil_PC.Smooth3.Integrator1.local_reset,Fert_Cont_Facil_PC.Smooth2.Integrator1.local_reset,Fert_Cont_Facil_PC.Smooth1.Integrator1.local_reset,Perc_Life_Expectancy.Smooth3.Integrator1.local_reset,Perc_Life_Expectancy.Smooth2.Integrator1.local_reset,Perc_Life_Expectancy.Smooth1.Integrator1.local_reset,Del_Ind_Out_PC.Smooth3.Integrator1.local_reset,Del_Ind_Out_PC.Smooth2.Integrator1.local_reset,Del_Ind_Out_PC.Smooth1.Integrator1.local_reset,Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * 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.0003653/0.3546, allocations: 280.2 kB / 0.5533 GB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.3548, allocations: 83.42 kB / 0.5534 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001908/0.3567, allocations: 0.9335 MB / 0.5543 GB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.3567, allocations: 11.94 kB / 0.5543 GB, free: 4.836 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3567, allocations: 0 / 0.5543 GB, free: 4.836 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3567, allocations: 0 / 0.5543 GB, free: 4.836 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002948/0.3596, allocations: 1.837 MB / 0.5561 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3596, allocations: 0 / 0.5561 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005743/0.3602, allocations: 119.9 kB / 0.5562 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3602, allocations: 0 / 0.5562 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.872e-05/0.3603, allocations: 24 kB / 0.5563 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3603, allocations: 3.984 kB / 0.5563 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.3603, allocations: 0 / 0.5563 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.3626, allocations: 1.39 MB / 0.5576 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.965e-05/0.3627, allocations: 71.47 kB / 0.5577 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.671e-05/0.3628, allocations: 12 kB / 0.5577 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/0.3631, allocations: 31.97 kB / 0.5577 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.95e-05/0.3632, allocations: 36.38 kB / 0.5578 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/0.3632, allocations: 27.98 kB / 0.5578 GB, free: 1.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005304/0.3638, allocations: 475 kB / 0.5583 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3638, allocations: 0 / 0.5583 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004879/0.3643, allocations: 135.9 kB / 0.5584 GB, free: 0.6328 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.y,Del_Ind_Out_PC.Smooth1.Integrator1.y,Del_Ind_Out_PC.Smooth2.Integrator1.y,Del_Ind_Out_PC.Smooth3.Integrator1.y,Perc_Life_Expectancy.Smooth1.Integrator1.y,Perc_Life_Expectancy.Smooth2.Integrator1.y,Perc_Life_Expectancy.Smooth3.Integrator1.y,Fert_Cont_Facil_PC.Smooth1.Integrator1.y,Fert_Cont_Facil_PC.Smooth2.Integrator1.y,Fert_Cont_Facil_PC.Smooth3.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 (50): * Single equations (assignments): 50 * 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.002744/0.367, allocations: 1.971 MB / 0.5603 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3685, allocations: 0.7872 MB / 0.5611 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3685, allocations: 0 / 0.5611 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006882/0.3692, allocations: 386.2 kB / 0.5614 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005837/0.3698, allocations: 98.84 kB / 0.5615 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.3808, allocations: 7.948 MB / 0.5693 GB, free: 5.176 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005363/0.3813, allocations: 0.4915 MB / 0.5698 GB, free: 4.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003407/0.3817, allocations: 112.5 kB / 0.5699 GB, free: 4.543 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005785/0.3823, allocations: 439.3 kB / 0.5703 GB, free: 4.113 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3823, allocations: 0 / 0.5703 GB, free: 4.113 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03962/0.4219, allocations: 15.14 MB / 0.5851 GB, free: 5.141 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.39, allocations: 7.797 kB / 0.5851 GB, free: 5.133 MB / 430.1 MB " [Timeout remaining time 647] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility_fmu --startTime=0 --stopTime=200 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.147075031069107] Failed to read output from testmodel.py, exit status != 0: 12.56740852294024 12.591730523 12.260814443 Calling exit ...