Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.001112/0.001112, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001091/0.001091, allocations: 190.5 kB / 16.25 MB, free: 6.629 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.279/1.279, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2826/0.2826, allocations: 28.8 MB / 318.9 MB, free: 5.844 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 55.91 kB / 386.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2474, allocations: 56.42 MB / 442.6 MB, free: 39.7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.003355/0.2508, allocations: 3.632 MB / 446.3 MB, free: 37.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.2518, allocations: 0.655 MB / 446.9 MB, free: 37.22 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.2521, allocations: 15.62 kB / 446.9 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.2524, allocations: 114.6 kB / 447 MB, free: 37.17 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002478/0.2527, allocations: 85.75 kB / 447.1 MB, free: 37.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005042/0.2532, allocations: 306.7 kB / 447.4 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005465/0.2538, allocations: 0.8454 MB / 448.3 MB, free: 37.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000577/0.2544, allocations: 0.6397 MB / 448.9 MB, free: 36.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.2545, allocations: 330.9 kB / 449.2 MB, free: 36.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.2548, allocations: 449 kB / 449.7 MB, free: 36.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.97e-05/0.2549, allocations: 87.97 kB / 449.8 MB, free: 36.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.255, allocations: 109.4 kB / 449.9 MB, free: 36.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002199/0.2552, allocations: 431.2 kB / 450.3 MB, free: 36.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002488/0.2555, allocations: 0.6031 MB / 450.9 MB, free: 35.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006367/0.2561, allocations: 1.151 MB / 452 MB, free: 35.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.2561, allocations: 3.031 kB / 452 MB, free: 35.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2562, allocations: 0 / 452 MB, free: 35.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.2562, allocations: 3.938 kB / 452 MB, free: 35.16 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001438/0.2576, allocations: 1.724 MB / 453.8 MB, free: 33.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.2577, allocations: 8.969 kB / 453.8 MB, free: 33.94 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001527/0.2578, allocations: 176 kB / 453.9 MB, free: 33.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.258, allocations: 192.9 kB / 454.1 MB, free: 33.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005397/0.2585, allocations: 0.7303 MB / 454.9 MB, free: 33.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.2586, allocations: 78.06 kB / 454.9 MB, free: 33.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.577e-05/0.2587, allocations: 108.8 kB / 455 MB, free: 33.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.2598, allocations: 1.142 MB / 456.2 MB, free: 32.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.2599, allocations: 7.938 kB / 456.2 MB, free: 32.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.326e-05/0.2599, allocations: 41.03 kB / 456.2 MB, free: 32.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.26, allocations: 27.59 kB / 456.3 MB, free: 32.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009985/0.261, allocations: 1.061 MB / 457.3 MB, free: 32.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002981/0.264, allocations: 3.635 MB / 461 MB, free: 30.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.265, allocations: 1.285 MB / 462.2 MB, free: 29.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003509/0.2654, allocations: 460.3 kB / 462.7 MB, free: 29.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.185e-05/0.2655, allocations: 26.41 kB / 462.7 MB, free: 29.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.581e-05/0.2655, allocations: 38.19 kB / 462.8 MB, free: 29.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.304e-06/0.2655, allocations: 0 / 462.8 MB, free: 29.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.001237/0.2667, allocations: 1.45 MB / 464.2 MB, free: 29.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.2668, allocations: 61.97 kB / 464.3 MB, free: 29.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009553/0.2677, allocations: 1.233 MB / 465.5 MB, free: 28.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.2678, allocations: 36.58 kB / 465.5 MB, free: 28.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/0.2681, allocations: 0.7611 MB / 466.3 MB, free: 28.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.2682, allocations: 227.5 kB / 466.5 MB, free: 28.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.2683, allocations: 110.7 kB / 466.6 MB, free: 28.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.949e-05/0.2684, allocations: 337.6 kB / 467 MB, free: 27.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003411/0.2687, allocations: 409.5 kB / 467.4 MB, free: 27.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/0.2691, allocations: 0.5019 MB / 467.9 MB, free: 27.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008107/0.2699, allocations: 0.9509 MB / 468.8 MB, free: 27.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2699, allocations: 0 / 468.8 MB, free: 27.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001084/0.271, allocations: 1.133 MB / 469.9 MB, free: 26.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.271, allocations: 5.688 kB / 469.9 MB, free: 26.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.2711, allocations: 2.25 kB / 470 MB, free: 26.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.2711, allocations: 6.375 kB / 470 MB, free: 26.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.2715, allocations: 132.9 kB / 470.1 MB, free: 26.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.2715, allocations: 13.47 kB / 470.1 MB, free: 26.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.2718, allocations: 56.16 kB / 470.2 MB, free: 26.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.2718, allocations: 28.75 kB / 470.2 MB, free: 26.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * 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.0003613/0.2722, allocations: 357.9 kB / 470.5 MB, free: 26.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.2723, allocations: 135.4 kB / 470.7 MB, free: 26.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.2735, allocations: 1.144 MB / 471.8 MB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.2736, allocations: 6.531 kB / 471.8 MB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2736, allocations: 3.938 kB / 471.8 MB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.2736, allocations: 8.922 kB / 471.8 MB, free: 26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.2757, allocations: 2.271 MB / 474.1 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2757, allocations: 0 / 474.1 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004026/0.2761, allocations: 115.6 kB / 474.2 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2761, allocations: 2.656 kB / 474.2 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/0.2761, allocations: 16.28 kB / 474.2 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2761, allocations: 6.906 kB / 474.2 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2761, allocations: 0 / 474.2 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.2778, allocations: 1.783 MB / 476 MB, free: 24.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.2779, allocations: 204.4 kB / 476.2 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.395e-05/0.278, allocations: 14.75 kB / 476.2 MB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.2782, allocations: 10.75 kB / 476.2 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.2782, allocations: 37.59 kB / 476.3 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/0.2783, allocations: 23.66 kB / 476.3 MB, free: 24.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007976/0.2791, allocations: 0.8546 MB / 477.2 MB, free: 24.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2791, allocations: 0 / 477.2 MB, free: 24.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005113/0.2796, allocations: 202.4 kB / 477.4 MB, free: 23.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.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 (66): * Single equations (assignments): 66 * 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.001857/0.2815, allocations: 2.357 MB / 479.7 MB, free: 22.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.2826, allocations: 0.9704 MB / 480.7 MB, free: 22.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2826, allocations: 0 / 480.7 MB, free: 22.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004369/0.2831, allocations: 496 kB / 481.2 MB, free: 22.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006263/0.2837, allocations: 100.6 kB / 481.3 MB, free: 22.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01204/0.2958, allocations: 12.39 MB / 493.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000628/0.2964, allocations: 1.28 MB / 494.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002211/0.2967, allocations: 76.5 kB / 495 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004829/0.2972, allocations: 0.5671 MB / 495.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2972, allocations: 0 / 495.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.604/0.9012, allocations: 17.64 MB / 0.5012 GB, free: 14.78 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003143/0.9015, allocations: 208.7 kB / 0.5014 GB, free: 14.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/2.988, allocations: 3.375 kB / 0.5014 GB, free: 14.51 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)