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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002828/0.002827, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004287/0.004288, allocations: 196.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.235/3.235, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.9937/0.9937, allocations: 28.81 MB / 319.2 MB, free: 5.762 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003571/0.003571, allocations: 67.89 kB / 386.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.125/1.129, allocations: 56.41 MB / 443.1 MB, free: 39.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.02317/1.152, allocations: 3.703 MB / 446.8 MB, free: 37.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00822/1.16, allocations: 0.8698 MB / 447.7 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002758/1.163, allocations: 15.38 kB / 447.7 MB, free: 37.11 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001307/1.165, allocations: 161.7 kB / 447.9 MB, free: 37.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001379/1.166, allocations: 112.7 kB / 448 MB, free: 36.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00311/1.169, allocations: 448.3 kB / 448.4 MB, free: 36.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004297/1.174, allocations: 1.017 MB / 449.4 MB, free: 36.58 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003135/1.177, allocations: 0.7156 MB / 450.2 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/1.178, allocations: 372.2 kB / 450.5 MB, free: 35.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009541/1.179, allocations: 418.3 kB / 450.9 MB, free: 35.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004785/1.179, allocations: 122.7 kB / 451.1 MB, free: 35.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006972/1.18, allocations: 141.1 kB / 451.2 MB, free: 35.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008546/1.181, allocations: 313.3 kB / 451.5 MB, free: 35.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001155/1.182, allocations: 0.541 MB / 452 MB, free: 35.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003084/1.185, allocations: 1.193 MB / 453.2 MB, free: 34.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-05/1.185, allocations: 4 kB / 453.2 MB, free: 34.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.643e-06/1.185, allocations: 0 / 453.2 MB, free: 34.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.213e-05/1.186, allocations: 0 / 453.2 MB, free: 34.45 MB / 366.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.00715/1.193, allocations: 1.384 MB / 454.6 MB, free: 33.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001636/1.193, allocations: 8.844 kB / 454.6 MB, free: 33.46 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008951/1.194, allocations: 169.3 kB / 454.8 MB, free: 33.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009506/1.195, allocations: 145.9 kB / 454.9 MB, free: 33.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002641/1.198, allocations: 0.6814 MB / 455.6 MB, free: 32.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/1.198, allocations: 87.83 kB / 455.7 MB, free: 32.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004112/1.198, allocations: 112 kB / 455.8 MB, free: 32.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005056/1.203, allocations: 1.097 MB / 456.9 MB, free: 32.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-05/1.203, allocations: 10.56 kB / 456.9 MB, free: 32.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001726/1.204, allocations: 42.88 kB / 457 MB, free: 32.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.917e-05/1.204, allocations: 26.34 kB / 457 MB, free: 32.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002459/1.206, allocations: 0.709 MB / 457.7 MB, free: 31.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0183/1.224, allocations: 4.155 MB / 461.9 MB, free: 28.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003375/1.228, allocations: 454.3 kB / 462.3 MB, free: 28.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/1.229, allocations: 189 kB / 462.5 MB, free: 28.72 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002854/1.23, allocations: 22.44 kB / 462.5 MB, free: 28.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000122/1.23, allocations: 40.7 kB / 462.5 MB, free: 28.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.204e-05/1.23, allocations: 0 / 462.5 MB, free: 28.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.005532/1.235, allocations: 0.6412 MB / 463.2 MB, free: 28.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001804/1.236, allocations: 57.69 kB / 463.2 MB, free: 28.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004212/1.24, allocations: 0.6694 MB / 463.9 MB, free: 28.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/1.24, allocations: 40.42 kB / 463.9 MB, free: 28.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00159/1.242, allocations: 0.5851 MB / 464.5 MB, free: 27.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005595/1.242, allocations: 124.7 kB / 464.7 MB, free: 27.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006846/1.243, allocations: 106.4 kB / 464.8 MB, free: 27.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003355/1.243, allocations: 323.4 kB / 465.1 MB, free: 27.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/1.245, allocations: 204.1 kB / 465.3 MB, free: 27.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001701/1.247, allocations: 366 kB / 465.6 MB, free: 26.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002265/1.249, allocations: 0.5721 MB / 466.2 MB, free: 26.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-05/1.249, allocations: 2.812 kB / 466.2 MB, free: 26.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00311/1.252, allocations: 0.6651 MB / 466.9 MB, free: 26.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.544e-05/1.252, allocations: 9.203 kB / 466.9 MB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.6e-05/1.252, allocations: 10.53 kB / 466.9 MB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.462e-05/1.252, allocations: 9.719 kB / 466.9 MB, free: 26.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005736/1.253, allocations: 103.4 kB / 467 MB, free: 26.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.249e-05/1.253, allocations: 11.61 kB / 467 MB, free: 26.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/1.254, allocations: 44.91 kB / 467.1 MB, free: 26.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/1.254, allocations: 23.5 kB / 467.1 MB, free: 26.16 MB / 366.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.001504/1.256, allocations: 279.6 kB / 467.4 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004368/1.256, allocations: 73.66 kB / 467.4 MB, free: 25.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003474/1.26, allocations: 0.5328 MB / 468 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/1.26, allocations: 7.5 kB / 468 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/1.26, allocations: 0.7188 kB / 468 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-05/1.26, allocations: 4.812 kB / 468 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00247/1.263, allocations: 0.8462 MB / 468.8 MB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/1.263, allocations: 0 / 468.8 MB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00069/1.263, allocations: 69.19 kB / 468.9 MB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.341e-05/1.263, allocations: 0 / 468.9 MB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-05/1.263, allocations: 13.22 kB / 468.9 MB, free: 25.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.099e-05/1.263, allocations: 3 kB / 468.9 MB, free: 25.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.263, allocations: 0 / 468.9 MB, free: 25.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003558/1.267, allocations: 0.8368 MB / 469.7 MB, free: 24.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004705/1.268, allocations: 143.9 kB / 469.9 MB, free: 24.78 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/1.268, allocations: 12.72 kB / 469.9 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005967/1.268, allocations: 11.95 kB / 469.9 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/1.269, allocations: 25.94 kB / 469.9 MB, free: 24.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/1.269, allocations: 14.88 kB / 469.9 MB, free: 24.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.007051/1.276, allocations: 468.6 kB / 470.4 MB, free: 24.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.863e-06/1.276, allocations: 0 / 470.4 MB, free: 24.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002132/1.278, allocations: 201.4 kB / 470.6 MB, free: 24.48 MB / 366.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.006659/1.285, allocations: 1.414 MB / 472 MB, free: 23.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003578/1.288, allocations: 0.4892 MB / 472.5 MB, free: 23.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-05/1.289, allocations: 0 / 472.5 MB, free: 23.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008716/1.289, allocations: 217.2 kB / 472.7 MB, free: 23.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/1.292, allocations: 109.3 kB / 472.8 MB, free: 23.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04494/1.337, allocations: 6.915 MB / 479.7 MB, free: 19.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001945/1.339, allocations: 1.068 MB / 480.8 MB, free: 18.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005382/1.339, allocations: 64.28 kB / 480.9 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006736/1.34, allocations: 410.2 kB / 481.3 MB, free: 18.46 MB / 366.1 MB Notification: Performance of SimCode: time 1.874e-06/1.34, allocations: 0 / 481.3 MB, free: 18.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1998/1.54, allocations: 12.52 MB / 493.8 MB, free: 16.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.98/21.52, allocations: 17.17 kB / 493.8 MB, free: 16.89 MB / 366.1 MB (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)