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.0007529/0.0007529, allocations: 80.44 kB / 19.17 MB, free: 0.7383 MB / 13.93 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.0007611/0.0007611, allocations: 165.9 kB / 22.45 MB, free: 2.102 MB / 18.57 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 0.9847/0.9847, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.1245/0.1245, allocations: 21.8 MB / 281 MB, free: 7.398 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.806e-06/2.806e-06, allocations: 0 / 417.7 MB, free: 9.422 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.164e-05/2.445e-05, allocations: 9.656 kB / 417.7 MB, free: 9.414 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.003303/0.003327, allocations: 3.11 MB / 420.8 MB, free: 6.293 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.004781, allocations: 0.8527 MB / 421.7 MB, free: 5.438 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003978/0.005179, allocations: 27.81 kB / 421.7 MB, free: 5.41 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003405/0.005519, allocations: 158.3 kB / 421.9 MB, free: 5.254 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.005733, allocations: 110.9 kB / 422 MB, free: 5.145 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007761/0.006509, allocations: 447.5 kB / 422.4 MB, free: 4.707 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008575/0.007366, allocations: 1.008 MB / 423.4 MB, free: 3.695 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005585/0.007925, allocations: 491.9 kB / 423.9 MB, free: 3.184 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004296/0.008354, allocations: 0.5495 MB / 424.5 MB, free: 2.633 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.008573, allocations: 294.7 kB / 424.7 MB, free: 2.344 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.008674, allocations: 120 kB / 424.9 MB, free: 2.227 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001958/0.00887, allocations: 148 kB / 425 MB, free: 2.082 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001862/0.009057, allocations: 314.9 kB / 425.3 MB, free: 1.773 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.009222, allocations: 322.9 kB / 425.6 MB, free: 1.457 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008919/0.01011, allocations: 1.261 MB / 426.9 MB, free: 196 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.01012, allocations: 4 kB / 426.9 MB, free: 192 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01012, allocations: 0 / 426.9 MB, free: 192 kB / 394.7 MB Notification: Performance of Transformations before backend: time 2.712e-05/0.01015, allocations: 4 kB / 426.9 MB, free: 188 kB / 394.7 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.001405/0.01155, allocations: 1.326 MB / 428.2 MB, free: 14.81 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.01159, allocations: 8.031 kB / 428.2 MB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.01176, allocations: 167.3 kB / 428.4 MB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.0119, allocations: 152 kB / 428.5 MB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006843/0.01258, allocations: 0.6496 MB / 429.2 MB, free: 13.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/0.01263, allocations: 86.58 kB / 429.3 MB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.44e-05/0.01272, allocations: 112.4 kB / 429.4 MB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.0138, allocations: 1.095 MB / 430.5 MB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.01382, allocations: 11.88 kB / 430.5 MB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.7e-05/0.01387, allocations: 43.98 kB / 430.5 MB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.01389, allocations: 31.98 kB / 430.6 MB, free: 12.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007993/0.01469, allocations: 0.7106 MB / 431.3 MB, free: 11.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002952/0.01764, allocations: 3.765 MB / 435 MB, free: 7.707 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006245/0.01827, allocations: 439.8 kB / 435.5 MB, free: 7.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.01843, allocations: 182.3 kB / 435.6 MB, free: 7.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.005e-05/0.01848, allocations: 24.2 kB / 435.7 MB, free: 7.066 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.0185, allocations: 38.78 kB / 435.7 MB, free: 7.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 2.124e-06/0.0185, allocations: 3.938 kB / 435.7 MB, free: 7.016 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.000728/0.01923, allocations: 0.6359 MB / 436.4 MB, free: 6.375 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.01927, allocations: 63.34 kB / 436.4 MB, free: 6.301 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007593/0.02003, allocations: 0.6839 MB / 437.1 MB, free: 5.609 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.02006, allocations: 33.7 kB / 437.1 MB, free: 5.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004897/0.02055, allocations: 0.6011 MB / 437.7 MB, free: 4.961 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.878e-05/0.02061, allocations: 126.9 kB / 437.9 MB, free: 4.836 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.02072, allocations: 102.3 kB / 438 MB, free: 4.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.402e-05/0.02081, allocations: 326 kB / 438.3 MB, free: 4.406 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.02103, allocations: 205.2 kB / 438.5 MB, free: 4.203 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003242/0.02136, allocations: 360.4 kB / 438.8 MB, free: 3.789 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005962/0.02195, allocations: 0.5719 MB / 439.4 MB, free: 3.152 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.02196, allocations: 4 kB / 439.4 MB, free: 3.148 MB / 410.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000694/0.02265, allocations: 0.6684 MB / 440.1 MB, free: 2.473 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.02268, allocations: 15.38 kB / 440.1 MB, free: 2.461 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.02269, allocations: 7.938 kB / 440.1 MB, free: 2.453 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.02272, allocations: 12 kB / 440.1 MB, free: 2.441 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.02294, allocations: 99.83 kB / 440.2 MB, free: 2.344 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.02296, allocations: 8 kB / 440.2 MB, free: 2.336 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.02309, allocations: 55.61 kB / 440.3 MB, free: 2.281 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.02312, allocations: 20 kB / 440.3 MB, free: 2.262 MB / 410.7 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.000283/0.0234, allocations: 276.2 kB / 440.6 MB, free: 1.984 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.74e-05/0.02346, allocations: 71.47 kB / 440.6 MB, free: 1.914 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005844/0.02404, allocations: 0.5363 MB / 441.2 MB, free: 1.363 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.02405, allocations: 4 kB / 441.2 MB, free: 1.359 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.02405, allocations: 0 / 441.2 MB, free: 1.359 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.02406, allocations: 7.969 kB / 441.2 MB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006414/0.0247, allocations: 0.754 MB / 441.9 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.02471, allocations: 0 / 441.9 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.02489, allocations: 63.91 kB / 442 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.0249, allocations: 8 kB / 442 MB, free: 496 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.02492, allocations: 15.98 kB / 442 MB, free: 480 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.02492, allocations: 0 / 442 MB, free: 480 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.02492, allocations: 3.938 kB / 442 MB, free: 476 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1689/0.1938, allocations: 0.8459 MB / 442.9 MB, free: 64.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.194, allocations: 64.61 kB / 442.9 MB, free: 64.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.01e-05/0.194, allocations: 16.2 kB / 442.9 MB, free: 64.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.1941, allocations: 7.219 kB / 442.9 MB, free: 64.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.131e-05/0.1942, allocations: 31.88 kB / 443 MB, free: 64.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.1942, allocations: 6.562 kB / 443 MB, free: 64.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003513/0.1945, allocations: 475.8 kB / 443.4 MB, free: 64.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1945, allocations: 0 / 443.4 MB, free: 64.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003888/0.1949, allocations: 194.6 kB / 443.6 MB, free: 64.06 MB / 410.7 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.0009175/0.1958, allocations: 1.404 MB / 445 MB, free: 63.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005056/0.1963, allocations: 475 kB / 445.5 MB, free: 63.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1963, allocations: 0 / 445.5 MB, free: 63.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.1965, allocations: 210.7 kB / 445.7 MB, free: 63.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.1969, allocations: 95.7 kB / 445.8 MB, free: 63.08 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004865/0.2018, allocations: 6.639 MB / 452.4 MB, free: 59.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.202, allocations: 482.5 kB / 452.9 MB, free: 59.56 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.2022, allocations: 63.86 kB / 453 MB, free: 59.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.2024, allocations: 403 kB / 453.4 MB, free: 59.22 MB / 410.7 MB Notification: Performance of SimCode: time 1.283e-06/0.2024, allocations: 0.75 kB / 453.4 MB, free: 59.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02495/0.2274, allocations: 13.33 MB / 466.7 MB, free: 56.99 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.78/7.008, allocations: 0 / 466.7 MB, free: 56.99 MB / 410.7 MB " [Timeout remaining time 653] (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: 9.032537969760597] Failed to read output from testmodel.py, exit status != 0: 7.095267295837402 7.104324811 7.092445919 Calling exit ...