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.001671/0.001671, allocations: 104.3 kB / 16.45 MB, free: 6.449 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.001962/0.001962, allocations: 212 kB / 19.43 MB, free: 3.637 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.481/1.481, allocations: 230.6 MB / 252.8 MB, free: 8.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1959/0.1959, allocations: 29.22 MB / 338.1 MB, free: 6.957 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-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.002021/0.002021, allocations: 67.89 kB / 473.2 MB, free: 2.957 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3427, allocations: 60.75 MB / 0.5214 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004275/0.347, allocations: 3.695 MB / 0.525 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.3489, allocations: 0.8582 MB / 0.5259 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005447/0.3494, allocations: 21.03 kB / 0.5259 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000443/0.3499, allocations: 161.9 kB / 0.526 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003235/0.3502, allocations: 105 kB / 0.5261 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009786/0.3512, allocations: 449.1 kB / 0.5266 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001231/0.3524, allocations: 0.9939 MB / 0.5275 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008225/0.3532, allocations: 0.5102 MB / 0.528 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003641/0.3536, allocations: 373.1 kB / 0.5284 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003818/0.354, allocations: 424 kB / 0.5288 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001637/0.3541, allocations: 117.6 kB / 0.5289 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002522/0.3544, allocations: 141.8 kB / 0.529 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002745/0.3547, allocations: 310.8 kB / 0.5293 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003614/0.355, allocations: 0.5353 MB / 0.5299 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001256/0.3563, allocations: 1.262 MB / 0.5311 GB, free: 1.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3563, allocations: 0.5625 kB / 0.5311 GB, free: 1.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3563, allocations: 0 / 0.5311 GB, free: 1.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.3563, allocations: 8.938 kB / 0.5311 GB, free: 1.391 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.001943/0.3582, allocations: 1.416 MB / 0.5325 GB, free: 384 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.3583, allocations: 14.19 kB / 0.5325 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002483/0.3585, allocations: 166.2 kB / 0.5327 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/0.3588, allocations: 146.6 kB / 0.5328 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.3599, allocations: 0.7217 MB / 0.5335 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.645e-05/0.36, allocations: 83.77 kB / 0.5336 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.3602, allocations: 114.9 kB / 0.5337 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.3619, allocations: 1.1 MB / 0.5348 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.362, allocations: 5.469 kB / 0.5348 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.56e-05/0.362, allocations: 41.69 kB / 0.5348 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.3621, allocations: 28.75 kB / 0.5348 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001219/0.3633, allocations: 0.7077 MB / 0.5355 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004909/0.3682, allocations: 4.102 MB / 0.5395 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009082/0.3691, allocations: 442.2 kB / 0.54 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002721/0.3694, allocations: 180.7 kB / 0.5401 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.403e-05/0.3694, allocations: 18.61 kB / 0.5402 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.3695, allocations: 45.5 kB / 0.5402 GB, free: 10.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 2.715e-06/0.3695, allocations: 0 / 0.5402 GB, free: 10.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.00113/0.3706, allocations: 0.6326 MB / 0.5408 GB, free: 10.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.3707, allocations: 58.88 kB / 0.5409 GB, free: 10.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009387/0.3716, allocations: 0.6733 MB / 0.5415 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.3716, allocations: 33.64 kB / 0.5416 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004795/0.3721, allocations: 0.5997 MB / 0.5421 GB, free: 9.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.3723, allocations: 138 kB / 0.5423 GB, free: 9.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.3724, allocations: 97.64 kB / 0.5424 GB, free: 9.438 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.3726, allocations: 331.3 kB / 0.5427 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000349/0.3729, allocations: 203.8 kB / 0.5429 GB, free: 9.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004359/0.3734, allocations: 364.7 kB / 0.5432 GB, free: 8.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007775/0.3741, allocations: 0.5719 MB / 0.5438 GB, free: 8.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.3742, allocations: 1.125 kB / 0.5438 GB, free: 8.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001049/0.3752, allocations: 0.6664 MB / 0.5444 GB, free: 8.062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.3752, allocations: 14.66 kB / 0.5445 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3752, allocations: 5.594 kB / 0.5445 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.3753, allocations: 8.156 kB / 0.5445 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003693/0.3756, allocations: 99.95 kB / 0.5446 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/0.3756, allocations: 19.14 kB / 0.5446 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.3759, allocations: 55.19 kB / 0.5446 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.572e-05/0.3759, allocations: 21.16 kB / 0.5447 GB, free: 7.977 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.0004589/0.3764, allocations: 278.5 kB / 0.5449 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.3765, allocations: 74.89 kB / 0.545 GB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009754/0.3775, allocations: 0.5354 MB / 0.5455 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.3775, allocations: 3.531 kB / 0.5455 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.3775, allocations: 1.031 kB / 0.5455 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3775, allocations: 0 / 0.5455 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.3786, allocations: 0.8301 MB / 0.5463 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.3786, allocations: 0 / 0.5463 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003399/0.379, allocations: 66.55 kB / 0.5464 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.379, allocations: 1.406 kB / 0.5464 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.379, allocations: 16.22 kB / 0.5464 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.379, allocations: 1.375 kB / 0.5464 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.379, allocations: 7.984 kB / 0.5464 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.3801, allocations: 0.8425 MB / 0.5472 GB, free: 6.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.3803, allocations: 146.4 kB / 0.5474 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.844e-05/0.3803, allocations: 14.83 kB / 0.5474 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.3805, allocations: 12.31 kB / 0.5474 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.3806, allocations: 22.19 kB / 0.5474 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.3806, allocations: 12.25 kB / 0.5474 GB, free: 6.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006119/0.3812, allocations: 471.1 kB / 0.5479 GB, free: 5.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3812, allocations: 0 / 0.5479 GB, free: 5.969 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006171/0.3819, allocations: 197.2 kB / 0.5481 GB, free: 5.883 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.001595/0.3835, allocations: 1.415 MB / 0.5495 GB, free: 4.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000835/0.3843, allocations: 474.2 kB / 0.5499 GB, free: 4.605 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3843, allocations: 3.938 kB / 0.5499 GB, free: 4.602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003488/0.3846, allocations: 207.8 kB / 0.5501 GB, free: 4.398 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006124/0.3853, allocations: 98.16 kB / 0.5502 GB, free: 4.309 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009258/0.3945, allocations: 6.668 MB / 0.5567 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008096/0.3953, allocations: 1.066 MB / 0.5578 GB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002413/0.3956, allocations: 60.23 kB / 0.5578 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004823/0.396, allocations: 403.3 kB / 0.5582 GB, free: 11.88 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.396, allocations: 0 / 0.5582 GB, free: 11.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04693/0.443, allocations: 12.62 MB / 0.5705 GB, free: 15.38 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.512/9.955, allocations: 12.88 kB / 0.5705 GB, free: 15.36 MB / 430.1 MB " [Timeout remaining time 650] (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: 12.863183857873082] Failed to read output from testmodel.py, exit status != 0: 10.029450869187713 10.044324015 9.684803714 Calling exit ...