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.0009013/0.0009015, allocations: 89.89 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005805/0.005805, allocations: 171.4 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2652/0.2652, allocations: 28.83 MB / 320.3 MB, free: 6.215 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.0003078, allocations: 8 kB / 388.6 MB, free: 3.098 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2847, allocations: 57.48 MB / 446.1 MB, free: 32.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.002851/0.2876, allocations: 3.233 MB / 449.3 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.2893, allocations: 0.8106 MB / 450.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008628/0.2902, allocations: 15.72 kB / 450.1 MB, free: 29.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004215/0.2906, allocations: 115.9 kB / 450.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002819/0.2909, allocations: 62.08 kB / 450.3 MB, free: 29.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007014/0.2917, allocations: 403.4 kB / 450.7 MB, free: 29.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006705/0.2923, allocations: 0.933 MB / 451.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006473/0.293, allocations: 0.6629 MB / 452.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.2931, allocations: 223.2 kB / 452.5 MB, free: 28.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.2933, allocations: 284.1 kB / 452.8 MB, free: 28.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.929e-05/0.2934, allocations: 21.59 kB / 452.8 MB, free: 28.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.2935, allocations: 49.62 kB / 452.8 MB, free: 28.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.2936, allocations: 184.6 kB / 453 MB, free: 28.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002015/0.2938, allocations: 443.2 kB / 453.5 MB, free: 27.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006171/0.2945, allocations: 1.079 MB / 454.5 MB, free: 27.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2945, allocations: 0 / 454.5 MB, free: 27.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2945, allocations: 0 / 454.5 MB, free: 27.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.2945, allocations: 0 / 454.5 MB, free: 27.32 MB / 350.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.001236/0.2957, allocations: 1.153 MB / 455.7 MB, free: 26.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.2958, allocations: 7.875 kB / 455.7 MB, free: 26.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001795/0.296, allocations: 170.7 kB / 455.9 MB, free: 26.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.2961, allocations: 143.5 kB / 456 MB, free: 26.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006128/0.2967, allocations: 0.6865 MB / 456.7 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.111e-05/0.2968, allocations: 83.61 kB / 456.8 MB, free: 25.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.2969, allocations: 114.8 kB / 456.9 MB, free: 25.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.2983, allocations: 1.101 MB / 458 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/0.2983, allocations: 6.75 kB / 458 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.633e-05/0.2984, allocations: 42.69 kB / 458 MB, free: 25.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.2984, allocations: 27.44 kB / 458.1 MB, free: 25.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009883/0.2994, allocations: 0.7171 MB / 458.8 MB, free: 24.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003256/0.3027, allocations: 4.169 MB / 462.9 MB, free: 21.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007414/0.3034, allocations: 469.3 kB / 463.4 MB, free: 21.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.3037, allocations: 196.5 kB / 463.6 MB, free: 21.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.369e-05/0.3037, allocations: 15.38 kB / 463.6 MB, free: 21.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.3038, allocations: 40.69 kB / 463.7 MB, free: 21.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.304e-06/0.3038, allocations: 0 / 463.7 MB, free: 21.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009702/0.3048, allocations: 0.6533 MB / 464.3 MB, free: 21.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.3048, allocations: 58.44 kB / 464.4 MB, free: 21.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007075/0.3055, allocations: 0.6711 MB / 465 MB, free: 21.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.3055, allocations: 34.67 kB / 465.1 MB, free: 21.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.3058, allocations: 0.5953 MB / 465.7 MB, free: 20.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.429e-05/0.3059, allocations: 124.8 kB / 465.8 MB, free: 20.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.306, allocations: 53.83 kB / 465.8 MB, free: 20.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.636e-05/0.3061, allocations: 328.8 kB / 466.2 MB, free: 20.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003108/0.3064, allocations: 208.9 kB / 466.4 MB, free: 20.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003846/0.3068, allocations: 367.4 kB / 466.7 MB, free: 19.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007076/0.3075, allocations: 0.5845 MB / 467.3 MB, free: 19.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3075, allocations: 1.188 kB / 467.3 MB, free: 19.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009359/0.3084, allocations: 0.6759 MB / 468 MB, free: 19.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3085, allocations: 6.812 kB / 468 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.3085, allocations: 9.625 kB / 468 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.3085, allocations: 6.969 kB / 468 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003409/0.3088, allocations: 106.1 kB / 468.1 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.3089, allocations: 12.28 kB / 468.1 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.3091, allocations: 50.67 kB / 468.2 MB, free: 19.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.127e-05/0.3091, allocations: 23.42 kB / 468.2 MB, free: 19.19 MB / 350.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.0003363/0.3095, allocations: 278.8 kB / 468.5 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.3096, allocations: 70.5 kB / 468.5 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008818/0.3104, allocations: 0.5457 MB / 469.1 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.3105, allocations: 8.969 kB / 469.1 MB, free: 18.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3105, allocations: 0 / 469.1 MB, free: 18.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.3105, allocations: 1.5 kB / 469.1 MB, free: 18.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.3115, allocations: 0.8442 MB / 469.9 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3115, allocations: 1.297 kB / 469.9 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/0.3119, allocations: 73 kB / 470 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3119, allocations: 1 kB / 470 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/0.3119, allocations: 13.61 kB / 470 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.3119, allocations: 0.9688 kB / 470 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3119, allocations: 0.9375 kB / 470 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.313, allocations: 0.844 MB / 470.9 MB, free: 17.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.596e-05/0.3131, allocations: 148.9 kB / 471 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/0.3132, allocations: 12.38 kB / 471 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.3134, allocations: 15.77 kB / 471 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.853e-05/0.3134, allocations: 23.42 kB / 471.1 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.3135, allocations: 15.47 kB / 471.1 MB, free: 17.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005356/0.314, allocations: 471.6 kB / 471.5 MB, free: 17.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.42e-07/0.314, allocations: 96 / 471.5 MB, free: 17.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005618/0.3146, allocations: 196.2 kB / 471.7 MB, free: 17.49 MB / 350.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.001272/0.3158, allocations: 1.424 MB / 473.2 MB, free: 16.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007401/0.3166, allocations: 492.8 kB / 473.6 MB, free: 16.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3166, allocations: 0 / 473.6 MB, free: 16.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000305/0.3169, allocations: 226.1 kB / 473.9 MB, free: 16.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006075/0.3175, allocations: 100.8 kB / 474 MB, free: 16.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008462/0.326, allocations: 7.435 MB / 481.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006729/0.3267, allocations: 1.067 MB / 482.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002353/0.327, allocations: 56.67 kB / 482.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003603/0.3273, allocations: 408.4 kB / 482.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3273, allocations: 4 kB / 482.9 MB, free: 11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.3499, allocations: 11.95 MB / 494.9 MB, free: 1.527 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/0.3501, allocations: 199.2 kB / 495.1 MB, free: 1.273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.13/2.48, allocations: 3.938 kB / 495.1 MB, free: 1.27 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)