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.001672/0.001672, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001886/0.001886, allocations: 214.9 kB / 22.25 MB, free: 5.078 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.438/1.438, allocations: 230.6 MB / 256 MB, free: 8.027 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.1952/0.1952, allocations: 29.22 MB / 341.7 MB, free: 5.809 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.002279/0.002279, allocations: 71.89 kB / 478.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3062, allocations: 60.79 MB / 0.5265 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004331/0.3106, allocations: 3.703 MB / 0.5302 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.312, allocations: 0.8542 MB / 0.531 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004923/0.3125, allocations: 24.31 kB / 0.531 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003862/0.3129, allocations: 162.3 kB / 0.5312 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.3132, allocations: 101.4 kB / 0.5313 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009867/0.3141, allocations: 457 kB / 0.5317 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000981/0.3151, allocations: 0.9941 MB / 0.5327 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000871/0.316, allocations: 0.5022 MB / 0.5332 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002877/0.3163, allocations: 383 kB / 0.5335 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004218/0.3167, allocations: 415.6 kB / 0.5339 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.3169, allocations: 116.8 kB / 0.534 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002152/0.3171, allocations: 150.1 kB / 0.5342 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005202/0.3176, allocations: 317 kB / 0.5345 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002937/0.3179, allocations: 0.536 MB / 0.535 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001502/0.3194, allocations: 1.257 MB / 0.5362 GB, free: 1.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3194, allocations: 0 / 0.5362 GB, free: 1.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3194, allocations: 5.312 kB / 0.5362 GB, free: 1.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.3194, allocations: 3.938 kB / 0.5362 GB, free: 1.492 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.001798/0.3212, allocations: 1.346 MB / 0.5376 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.3212, allocations: 14.06 kB / 0.5376 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002062/0.3215, allocations: 170 kB / 0.5377 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.3216, allocations: 148.3 kB / 0.5379 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.3229, allocations: 0.6532 MB / 0.5385 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.933e-05/0.323, allocations: 87.95 kB / 0.5386 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.3232, allocations: 114.6 kB / 0.5387 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/0.3251, allocations: 1.09 MB / 0.5398 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.3251, allocations: 1.562 kB / 0.5398 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.94e-05/0.3252, allocations: 47.12 kB / 0.5398 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/0.3252, allocations: 31.53 kB / 0.5398 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.3264, allocations: 0.7123 MB / 0.5405 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00499/0.3314, allocations: 4.021 MB / 0.5445 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008968/0.3323, allocations: 449.2 kB / 0.5449 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003625/0.3326, allocations: 180 kB / 0.5451 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.188e-05/0.3327, allocations: 24.34 kB / 0.5451 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.3327, allocations: 32.12 kB / 0.5451 GB, free: 10.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 1.523e-06/0.3327, allocations: 0 / 0.5451 GB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.001429/0.3342, allocations: 0.6476 MB / 0.5458 GB, free: 10.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.12e-05/0.3342, allocations: 58.72 kB / 0.5458 GB, free: 10.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.3353, allocations: 0.6727 MB / 0.5465 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.842e-05/0.3353, allocations: 30.8 kB / 0.5465 GB, free: 10.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006359/0.3359, allocations: 0.6001 MB / 0.5471 GB, free: 9.559 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.3361, allocations: 137.4 kB / 0.5472 GB, free: 9.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.3362, allocations: 97.75 kB / 0.5473 GB, free: 9.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002608/0.3365, allocations: 330.6 kB / 0.5476 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003415/0.3368, allocations: 208.7 kB / 0.5478 GB, free: 8.965 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005874/0.3374, allocations: 362.3 kB / 0.5482 GB, free: 8.688 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009262/0.3383, allocations: 0.5766 MB / 0.5487 GB, free: 8.309 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3383, allocations: 1.125 kB / 0.5487 GB, free: 8.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00117/0.3395, allocations: 0.6714 MB / 0.5494 GB, free: 7.992 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3395, allocations: 10.5 kB / 0.5494 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3395, allocations: 4.531 kB / 0.5494 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3395, allocations: 8.594 kB / 0.5494 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.3399, allocations: 99.95 kB / 0.5495 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.3399, allocations: 14.36 kB / 0.5495 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000294/0.3402, allocations: 51.25 kB / 0.5496 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.194e-05/0.3403, allocations: 21.88 kB / 0.5496 GB, free: 7.918 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.0003514/0.3406, allocations: 290.2 kB / 0.5499 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.129e-05/0.3407, allocations: 70.38 kB / 0.5499 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.3417, allocations: 0.5187 MB / 0.5504 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/0.3418, allocations: 7.906 kB / 0.5504 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.3418, allocations: 1.281 kB / 0.5504 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.059e-05/0.3418, allocations: 0 / 0.5504 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.3429, allocations: 0.8018 MB / 0.5512 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3429, allocations: 7.984 kB / 0.5512 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003718/0.3433, allocations: 66.25 kB / 0.5513 GB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.457e-05/0.3433, allocations: 2.375 kB / 0.5513 GB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.873e-05/0.3433, allocations: 11.38 kB / 0.5513 GB, free: 6.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3433, allocations: 2.281 kB / 0.5513 GB, free: 6.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3433, allocations: 0 / 0.5513 GB, free: 6.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.3446, allocations: 0.8546 MB / 0.5521 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.3447, allocations: 73.67 kB / 0.5522 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.3447, allocations: 10.27 kB / 0.5522 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.3449, allocations: 8.125 kB / 0.5522 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.857e-05/0.3449, allocations: 25.48 kB / 0.5523 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.889e-05/0.345, allocations: 10.91 kB / 0.5523 GB, free: 6.297 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007141/0.3457, allocations: 478.2 kB / 0.5527 GB, free: 5.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3457, allocations: 0 / 0.5527 GB, free: 5.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006255/0.3463, allocations: 187.1 kB / 0.5529 GB, free: 5.781 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.001606/0.3479, allocations: 1.414 MB / 0.5543 GB, free: 4.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008227/0.3487, allocations: 472.1 kB / 0.5547 GB, free: 3.879 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3487, allocations: 5.188 kB / 0.5547 GB, free: 3.875 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003037/0.349, allocations: 211.6 kB / 0.5549 GB, free: 3.668 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007032/0.3497, allocations: 96.77 kB / 0.555 GB, free: 3.578 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008929/0.3587, allocations: 6.67 MB / 0.5616 GB, free: 12.69 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008788/0.3596, allocations: 1.066 MB / 0.5626 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000199/0.3598, allocations: 60.25 kB / 0.5626 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000482/0.3602, allocations: 403.3 kB / 0.563 GB, free: 11.14 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3602, allocations: 0 / 0.563 GB, free: 11.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05065/0.4109, allocations: 13.04 MB / 0.5758 GB, free: 14.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.72, allocations: 9.766 kB / 0.5758 GB, free: 14.23 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 & /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: 15.442791723879054] Failed to read output from testmodel.py, exit status != 0: 12.826900527114049 12.842996335 12.520481492 Calling exit ...