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.00158/0.00158, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001938/0.001938, allocations: 219.3 kB / 22.25 MB, free: 5.105 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.423/1.423, 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.181/0.181, allocations: 29.22 MB / 341.7 MB, free: 5.59 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="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.002033/0.002033, allocations: 71.89 kB / 478.3 MB, free: 408 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2821, allocations: 60.78 MB / 0.5265 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.003844/0.2859, allocations: 3.113 MB / 0.5295 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.2873, allocations: 0.8474 MB / 0.5303 GB, free: 5.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003018/0.2876, allocations: 24.56 kB / 0.5304 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003382/0.2879, allocations: 161.9 kB / 0.5305 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002722/0.2882, allocations: 104.3 kB / 0.5306 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006527/0.2888, allocations: 448.4 kB / 0.531 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008022/0.2896, allocations: 0.9984 MB / 0.532 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006441/0.2903, allocations: 0.5074 MB / 0.5325 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.2905, allocations: 377.6 kB / 0.5329 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.2908, allocations: 420.3 kB / 0.5333 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000142/0.291, allocations: 116.7 kB / 0.5334 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002137/0.2912, allocations: 153.9 kB / 0.5335 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002354/0.2914, allocations: 308.7 kB / 0.5338 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002591/0.2917, allocations: 425.4 kB / 0.5342 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.2928, allocations: 1.266 MB / 0.5355 GB, free: 2.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2928, allocations: 3.938 kB / 0.5355 GB, free: 2.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2928, allocations: 0 / 0.5355 GB, free: 2.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.97e-05/0.2928, allocations: 0 / 0.5355 GB, free: 2.109 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.001512/0.2943, allocations: 1.347 MB / 0.5368 GB, free: 1.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2943, allocations: 9.656 kB / 0.5368 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001795/0.2945, allocations: 174.8 kB / 0.537 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.2947, allocations: 148.4 kB / 0.5371 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007756/0.2954, allocations: 0.6528 MB / 0.5377 GB, free: 304 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.676e-05/0.2955, allocations: 88.92 kB / 0.5378 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.2956, allocations: 113.9 kB / 0.5379 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.2971, allocations: 1.092 MB / 0.539 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/0.2971, allocations: 6.125 kB / 0.539 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.771e-05/0.2972, allocations: 46.25 kB / 0.539 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.772e-05/0.2973, allocations: 27.91 kB / 0.5391 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/0.2984, allocations: 0.7088 MB / 0.5398 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004233/0.3027, allocations: 3.773 MB / 0.5435 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007852/0.3034, allocations: 455.7 kB / 0.5439 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002763/0.3037, allocations: 180.5 kB / 0.5441 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.169e-05/0.3038, allocations: 19.27 kB / 0.5441 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.3038, allocations: 33.11 kB / 0.5441 GB, free: 11.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 2.144e-06/0.3038, allocations: 5.031 kB / 0.5441 GB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.001016/0.3048, allocations: 0.6432 MB / 0.5447 GB, free: 11.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.3049, allocations: 58.06 kB / 0.5448 GB, free: 11.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008037/0.3057, allocations: 0.6859 MB / 0.5455 GB, free: 10.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.121e-05/0.3057, allocations: 32.3 kB / 0.5455 GB, free: 10.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004325/0.3062, allocations: 0.599 MB / 0.5461 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.3063, allocations: 137.7 kB / 0.5462 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.3064, allocations: 94.16 kB / 0.5463 GB, free: 10.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3065, allocations: 331.5 kB / 0.5466 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003173/0.3069, allocations: 203.3 kB / 0.5468 GB, free: 9.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004355/0.3073, allocations: 369.9 kB / 0.5472 GB, free: 9.488 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007659/0.3081, allocations: 0.5718 MB / 0.5477 GB, free: 9.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3081, allocations: 1.406 kB / 0.5477 GB, free: 9.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009765/0.309, allocations: 0.6748 MB / 0.5484 GB, free: 8.797 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.3091, allocations: 6.375 kB / 0.5484 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3091, allocations: 5.688 kB / 0.5484 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.3091, allocations: 7.531 kB / 0.5484 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003554/0.3095, allocations: 104 kB / 0.5485 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.3095, allocations: 10.78 kB / 0.5485 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.3097, allocations: 56.14 kB / 0.5486 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.3097, allocations: 21.78 kB / 0.5486 GB, free: 8.723 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.0003565/0.3101, allocations: 278.2 kB / 0.5489 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-05/0.3102, allocations: 71.03 kB / 0.5489 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008746/0.3111, allocations: 0.526 MB / 0.5494 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3111, allocations: 4.031 kB / 0.5494 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3111, allocations: 0 / 0.5494 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.3111, allocations: 5.141 kB / 0.5494 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009164/0.312, allocations: 0.7514 MB / 0.5502 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.312, allocations: 7.938 kB / 0.5502 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.3123, allocations: 66.64 kB / 0.5502 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3123, allocations: 1 kB / 0.5502 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.914e-05/0.3124, allocations: 16.62 kB / 0.5503 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3124, allocations: 5.062 kB / 0.5503 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.3124, allocations: 0 / 0.5503 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.3135, allocations: 0.8477 MB / 0.5511 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.3136, allocations: 73.36 kB / 0.5512 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.3136, allocations: 12.12 kB / 0.5512 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.3138, allocations: 11.27 kB / 0.5512 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.152e-05/0.3139, allocations: 25.52 kB / 0.5512 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.3139, allocations: 7.562 kB / 0.5512 GB, free: 7.156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005587/0.3145, allocations: 478.6 kB / 0.5517 GB, free: 6.723 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3145, allocations: 0 / 0.5517 GB, free: 6.723 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005345/0.315, allocations: 191.1 kB / 0.5519 GB, free: 6.535 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.001478/0.3165, allocations: 1.406 MB / 0.5532 GB, free: 5.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007503/0.3172, allocations: 476.2 kB / 0.5537 GB, free: 4.637 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3172, allocations: 0 / 0.5537 GB, free: 4.637 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003184/0.3175, allocations: 211.6 kB / 0.5539 GB, free: 4.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005672/0.3181, allocations: 93.22 kB / 0.554 GB, free: 4.344 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008766/0.3269, allocations: 6.667 MB / 0.5605 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005452/0.3274, allocations: 478.8 kB / 0.5609 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002339/0.3277, allocations: 64.23 kB / 0.561 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005416/0.3282, allocations: 407.3 kB / 0.5614 GB, free: 12.5 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3282, allocations: 0 / 0.5614 GB, free: 12.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04709/0.3753, allocations: 13.36 MB / 0.5744 GB, free: 15.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.75, allocations: 6.984 kB / 0.5744 GB, free: 15.29 MB / 430.1 MB " [Timeout remaining time 648] (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: 14.48412726004608] Failed to read output from testmodel.py, exit status != 0: 11.885401659994386 11.90913199 11.612139929 Calling exit ...