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.001343/0.001343, allocations: 114.3 kB / 18.94 MB, free: 2.789 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.001497/0.001497, allocations: 220.1 kB / 22.26 MB, free: 5.211 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.478/1.478, allocations: 230.6 MB / 256 MB, free: 7.996 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.2231/0.2231, allocations: 29.22 MB / 341.7 MB, free: 5.805 MB / 270.1 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World3.Human_Fertility,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility",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.002101/0.002101, allocations: 59.91 kB / 478.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4495/0.4516, allocations: 60.8 MB / 0.5265 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.006112/0.4577, allocations: 3.699 MB / 0.5302 GB, free: 5.133 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002773/0.4605, allocations: 0.8531 MB / 0.531 GB, free: 4.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007756/0.4613, allocations: 25.31 kB / 0.531 GB, free: 4.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005045/0.4618, allocations: 166.4 kB / 0.5312 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002949/0.4621, allocations: 96.94 kB / 0.5313 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.4631, allocations: 464.8 kB / 0.5317 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.4645, allocations: 0.9948 MB / 0.5327 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008801/0.4654, allocations: 0.507 MB / 0.5332 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003617/0.4658, allocations: 373.7 kB / 0.5335 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004276/0.4662, allocations: 419.3 kB / 0.5339 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001887/0.4664, allocations: 117 kB / 0.534 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003562/0.4668, allocations: 146.4 kB / 0.5342 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000288/0.467, allocations: 316.7 kB / 0.5345 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004158/0.4675, allocations: 0.5358 MB / 0.535 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001663/0.4691, allocations: 1.262 MB / 0.5362 GB, free: 1.348 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.4691, allocations: 3.938 kB / 0.5362 GB, free: 1.344 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4691, allocations: 0 / 0.5362 GB, free: 1.344 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.995e-05/0.4692, allocations: 0 / 0.5362 GB, free: 1.344 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.001984/0.4711, allocations: 1.344 MB / 0.5376 GB, free: 360 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.4712, allocations: 8.906 kB / 0.5376 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002377/0.4714, allocations: 171 kB / 0.5377 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.4717, allocations: 148 kB / 0.5379 GB, free: 132 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.4728, allocations: 0.6536 MB / 0.5385 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.72e-05/0.4729, allocations: 84.11 kB / 0.5386 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/0.4731, allocations: 114.1 kB / 0.5387 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.475, allocations: 1.097 MB / 0.5398 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.85e-05/0.475, allocations: 5.062 kB / 0.5398 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.117e-05/0.4751, allocations: 43.91 kB / 0.5398 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.022e-05/0.4752, allocations: 27.66 kB / 0.5398 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.4765, allocations: 0.7082 MB / 0.5405 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005836/0.4824, allocations: 4.033 MB / 0.5445 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.4836, allocations: 443.3 kB / 0.5449 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004049/0.484, allocations: 184.3 kB / 0.5451 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.283e-05/0.4841, allocations: 19.92 kB / 0.5451 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.686e-05/0.4842, allocations: 40.95 kB / 0.5451 GB, free: 10.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 4.017e-06/0.4842, allocations: 0 / 0.5451 GB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.001677/0.4858, allocations: 0.639 MB / 0.5457 GB, free: 10.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.143e-05/0.4859, allocations: 58.72 kB / 0.5458 GB, free: 10.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/0.4873, allocations: 0.6767 MB / 0.5465 GB, free: 9.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/0.4873, allocations: 31.05 kB / 0.5465 GB, free: 9.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005568/0.4879, allocations: 0.5996 MB / 0.5471 GB, free: 9.418 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.488, allocations: 138.7 kB / 0.5472 GB, free: 9.297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.4882, allocations: 96.94 kB / 0.5473 GB, free: 9.234 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002431/0.4885, allocations: 334.9 kB / 0.5476 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004275/0.4889, allocations: 203.6 kB / 0.5478 GB, free: 8.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007134/0.4896, allocations: 369.8 kB / 0.5482 GB, free: 8.539 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009867/0.4906, allocations: 0.5648 MB / 0.5487 GB, free: 8.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.4906, allocations: 5.031 kB / 0.5487 GB, free: 8.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001311/0.4919, allocations: 0.6706 MB / 0.5494 GB, free: 7.852 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.492, allocations: 10.88 kB / 0.5494 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/0.492, allocations: 5.656 kB / 0.5494 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.337e-05/0.492, allocations: 7.781 kB / 0.5494 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/0.4924, allocations: 103.1 kB / 0.5495 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.734e-05/0.4925, allocations: 7.906 kB / 0.5495 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000281/0.4927, allocations: 54.77 kB / 0.5496 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.29e-05/0.4928, allocations: 21.59 kB / 0.5496 GB, free: 7.777 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 (64): * Single equations (assignments): 64 * 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.0005791/0.4934, allocations: 278.8 kB / 0.5499 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.4935, allocations: 74.44 kB / 0.5499 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.4948, allocations: 0.53 MB / 0.5504 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.4948, allocations: 4.188 kB / 0.5504 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.4948, allocations: 0 / 0.5504 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.4948, allocations: 5.328 kB / 0.5504 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.4962, allocations: 0.8051 MB / 0.5512 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4962, allocations: 0 / 0.5512 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003752/0.4966, allocations: 62.78 kB / 0.5513 GB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.4966, allocations: 2.281 kB / 0.5513 GB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.871e-05/0.4967, allocations: 15.83 kB / 0.5513 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.4967, allocations: 0.8125 kB / 0.5513 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.4967, allocations: 1.031 kB / 0.5513 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.4982, allocations: 0.8502 MB / 0.5521 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.4983, allocations: 73.77 kB / 0.5522 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.714e-05/0.4984, allocations: 6.875 kB / 0.5522 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.4986, allocations: 16.42 kB / 0.5522 GB, free: 6.176 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.413e-05/0.4986, allocations: 24.83 kB / 0.5523 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.4987, allocations: 11.59 kB / 0.5523 GB, free: 6.156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007729/0.4994, allocations: 473.7 kB / 0.5527 GB, free: 5.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4994, allocations: 0 / 0.5527 GB, free: 5.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007782/0.5002, allocations: 191.1 kB / 0.5529 GB, free: 5.652 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 (36): * Single equations (assignments): 36 * 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.001844/0.5021, allocations: 1.418 MB / 0.5543 GB, free: 4.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008919/0.503, allocations: 472 kB / 0.5547 GB, free: 3.746 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.503, allocations: 192 / 0.5547 GB, free: 3.746 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003512/0.5033, allocations: 207.7 kB / 0.5549 GB, free: 3.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/0.504, allocations: 104.7 kB / 0.555 GB, free: 3.449 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.5149, allocations: 6.666 MB / 0.5615 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.5161, allocations: 1.066 MB / 0.5626 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003004/0.5164, allocations: 64.25 kB / 0.5627 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006325/0.517, allocations: 407.3 kB / 0.563 GB, free: 11.01 MB / 414.1 MB Notification: Performance of SimCode: time 2.014e-06/0.517, allocations: 0 / 0.563 GB, free: 11.01 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0502/0.5672, allocations: 13.03 MB / 0.5758 GB, free: 14.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.29, allocations: 8 kB / 0.5758 GB, free: 14.1 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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 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: 16.440492024001287] Failed to read output from testmodel.py, exit status != 0: 13.408755702002964 13.434753666 12.960614692 Calling exit ...