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.00125/0.00125, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.0014/0.0014, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.369/1.369, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.1911/0.1911, allocations: 29.23 MB / 338.8 MB, free: 11.76 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.001838/0.001838, allocations: 73.73 kB / 473.9 MB, free: 27.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1019, allocations: 60.74 MB / 0.5221 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004834/0.1067, allocations: 3.691 MB / 0.5257 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.1082, allocations: 0.8605 MB / 0.5266 GB, free: 200 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003024/0.1085, allocations: 23.81 kB / 0.5266 GB, free: 176 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003749/0.1089, allocations: 170.2 kB / 0.5267 GB, free: 4 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002541/0.1092, allocations: 91.09 kB / 0.5268 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007494/0.1099, allocations: 455.5 kB / 0.5273 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000946/0.1109, allocations: 0.996 MB / 0.5282 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006858/0.1116, allocations: 0.5034 MB / 0.5287 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.1119, allocations: 382.3 kB / 0.5291 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003387/0.1122, allocations: 417.6 kB / 0.5295 GB, free: 13.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.1123, allocations: 116 kB / 0.5296 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001906/0.1125, allocations: 148 kB / 0.5297 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002646/0.1128, allocations: 310.9 kB / 0.53 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000386/0.1132, allocations: 0.5358 MB / 0.5306 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001176/0.1144, allocations: 1.252 MB / 0.5318 GB, free: 10.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1144, allocations: 0 / 0.5318 GB, free: 10.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1144, allocations: 0 / 0.5318 GB, free: 10.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.1144, allocations: 0 / 0.5318 GB, free: 10.79 MB / 398.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.001839/0.1162, allocations: 1.429 MB / 0.5332 GB, free: 9.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1162, allocations: 12.03 kB / 0.5332 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.112e-05/0.1163, allocations: 41.39 kB / 0.5332 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002063/0.1165, allocations: 163.4 kB / 0.5334 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.1167, allocations: 152 kB / 0.5335 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009229/0.1176, allocations: 0.7146 MB / 0.5342 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.996e-05/0.1177, allocations: 94.53 kB / 0.5343 GB, free: 8.074 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.1178, allocations: 108.4 kB / 0.5344 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.1194, allocations: 1.096 MB / 0.5355 GB, free: 6.777 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.1194, allocations: 4 kB / 0.5355 GB, free: 6.773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-05/0.1195, allocations: 52 kB / 0.5355 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.602e-05/0.1195, allocations: 28 kB / 0.5356 GB, free: 6.695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.1206, allocations: 0.7144 MB / 0.5363 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004139/0.1248, allocations: 4.119 MB / 0.5403 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00078/0.1256, allocations: 430.6 kB / 0.5407 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.1258, allocations: 184.8 kB / 0.5409 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.202e-05/0.1259, allocations: 23.91 kB / 0.5409 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.1259, allocations: 34.56 kB / 0.5409 GB, free: 1.035 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 1.823e-06/0.1259, allocations: 0 / 0.5409 GB, free: 1.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.008904/0.1348, allocations: 3.394 MB / 0.5443 GB, free: 13.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.1349, allocations: 55.84 kB / 0.5443 GB, free: 13.49 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007753/0.1357, allocations: 0.6762 MB / 0.545 GB, free: 12.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.1357, allocations: 33.7 kB / 0.545 GB, free: 12.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003968/0.1361, allocations: 0.5935 MB / 0.5456 GB, free: 12.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.1363, allocations: 182.5 kB / 0.5458 GB, free: 11.99 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.1364, allocations: 134.2 kB / 0.5459 GB, free: 11.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1366, allocations: 326 kB / 0.5462 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007174/0.1373, allocations: 365.1 kB / 0.5465 GB, free: 11.17 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008173/0.1381, allocations: 0.5048 MB / 0.547 GB, free: 10.6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.1398, allocations: 0.8986 MB / 0.5479 GB, free: 9.633 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1398, allocations: 0 / 0.5479 GB, free: 9.633 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001838/0.1416, allocations: 1.006 MB / 0.5489 GB, free: 8.617 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1416, allocations: 12.12 kB / 0.5489 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.1416, allocations: 4 kB / 0.5489 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.1417, allocations: 8 kB / 0.5489 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005702/0.1422, allocations: 147.8 kB / 0.5491 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.79e-05/0.1422, allocations: 11.94 kB / 0.5491 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.1426, allocations: 39.97 kB / 0.5491 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.376e-05/0.1426, allocations: 43.98 kB / 0.5491 GB, free: 8.355 MB / 414.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.0003952/0.143, allocations: 279.9 kB / 0.5494 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.1432, allocations: 83.41 kB / 0.5495 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/0.145, allocations: 0.9334 MB / 0.5504 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.145, allocations: 11.94 kB / 0.5504 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.145, allocations: 0 / 0.5504 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.145, allocations: 3.984 kB / 0.5504 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/0.1479, allocations: 1.932 MB / 0.5523 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1479, allocations: 0 / 0.5523 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005519/0.1485, allocations: 119.8 kB / 0.5524 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1485, allocations: 3.938 kB / 0.5524 GB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.857e-05/0.1485, allocations: 27.98 kB / 0.5525 GB, free: 4.895 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.1485, allocations: 4 kB / 0.5525 GB, free: 4.891 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1485, allocations: 0 / 0.5525 GB, free: 4.891 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.1509, allocations: 1.386 MB / 0.5538 GB, free: 3.492 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.1511, allocations: 144.6 kB / 0.5539 GB, free: 3.332 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.629e-05/0.1511, allocations: 16 kB / 0.554 GB, free: 3.316 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003062/0.1514, allocations: 31.97 kB / 0.554 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.1e-05/0.1515, allocations: 32.39 kB / 0.554 GB, free: 3.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.813e-05/0.1516, allocations: 31.98 kB / 0.5541 GB, free: 3.219 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000546/0.1521, allocations: 475 kB / 0.5545 GB, free: 2.762 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1521, allocations: 0 / 0.5545 GB, free: 2.762 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005157/0.1526, allocations: 131.9 kB / 0.5546 GB, free: 2.633 MB / 414.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.002759/0.1554, allocations: 1.974 MB / 0.5566 GB, free: 0.625 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.157, allocations: 0.7798 MB / 0.5573 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.157, allocations: 0 / 0.5573 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006871/0.1576, allocations: 394.4 kB / 0.5577 GB, free: 15.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.1582, allocations: 98.88 kB / 0.5578 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.1694, allocations: 7.942 MB / 0.5656 GB, free: 7.168 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007593/0.1702, allocations: 1.081 MB / 0.5666 GB, free: 6.062 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00035/0.1705, allocations: 108.5 kB / 0.5667 GB, free: 5.957 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005564/0.1711, allocations: 439.3 kB / 0.5671 GB, free: 5.527 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1711, allocations: 4 kB / 0.5671 GB, free: 5.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03546/0.2066, allocations: 14.66 MB / 0.5815 GB, free: 6.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.143/9.35, allocations: 10.58 kB / 0.5815 GB, free: 6.973 MB / 446.1 MB " [Timeout remaining time 651] (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: 12.360387912020087] Failed to read output from testmodel.py, exit status != 0: 9.47891949705081 9.72128968 9.604117357 Calling exit ...