Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.0007549/0.0007549, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008782/0.0008783, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2633/0.2633, allocations: 28.85 MB / 319.9 MB, free: 6.281 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002717, allocations: 8 kB / 388 MB, free: 3.441 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2308, allocations: 57.48 MB / 445.4 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.002666/0.2335, allocations: 2.912 MB / 448.4 MB, free: 30.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.2346, allocations: 0.6583 MB / 449 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002617/0.2348, allocations: 11.81 kB / 449 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002354/0.2351, allocations: 127 kB / 449.2 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002086/0.2353, allocations: 89.77 kB / 449.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.2357, allocations: 253.8 kB / 449.5 MB, free: 30 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.2363, allocations: 0.7699 MB / 450.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005098/0.2368, allocations: 485.8 kB / 450.7 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.237, allocations: 241 kB / 451 MB, free: 29.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.2372, allocations: 305.2 kB / 451.3 MB, free: 29.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.721e-05/0.2372, allocations: 20.34 kB / 451.3 MB, free: 29.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.2374, allocations: 49.25 kB / 451.3 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002074/0.2376, allocations: 347.8 kB / 451.7 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.2377, allocations: 231.7 kB / 451.9 MB, free: 28.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004835/0.2382, allocations: 0.7917 MB / 452.7 MB, free: 28.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2382, allocations: 2.719 kB / 452.7 MB, free: 28.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2382, allocations: 0 / 452.7 MB, free: 28.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.2382, allocations: 0 / 452.7 MB, free: 28.63 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001295/0.2395, allocations: 1.528 MB / 454.2 MB, free: 27.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2396, allocations: 8.844 kB / 454.2 MB, free: 27.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.2397, allocations: 174.3 kB / 454.4 MB, free: 27.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.2399, allocations: 199.5 kB / 454.6 MB, free: 27.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000575/0.2405, allocations: 0.6826 MB / 455.3 MB, free: 26.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.396e-05/0.2405, allocations: 86.75 kB / 455.4 MB, free: 26.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.271e-05/0.2406, allocations: 108.2 kB / 455.5 MB, free: 26.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.2419, allocations: 1.171 MB / 456.6 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.2419, allocations: 2.844 kB / 456.6 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.02e-05/0.2419, allocations: 44.75 kB / 456.7 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.242, allocations: 30.36 kB / 456.7 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.2432, allocations: 1.096 MB / 457.8 MB, free: 25.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.2467, allocations: 3.706 MB / 461.5 MB, free: 23.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.2481, allocations: 1.329 MB / 462.9 MB, free: 23.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004865/0.2486, allocations: 495.2 kB / 463.3 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.962e-05/0.2486, allocations: 31.09 kB / 463.4 MB, free: 23.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.2487, allocations: 42.59 kB / 463.4 MB, free: 23.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.374e-06/0.2487, allocations: 0 / 463.4 MB, free: 23.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.001688/0.2504, allocations: 1.526 MB / 464.9 MB, free: 22.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.921e-05/0.2504, allocations: 62.19 kB / 465 MB, free: 22.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/0.2518, allocations: 1.273 MB / 466.3 MB, free: 22.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.2518, allocations: 40.45 kB / 466.3 MB, free: 22.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004159/0.2522, allocations: 0.7783 MB / 467.1 MB, free: 21.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.2523, allocations: 227.9 kB / 467.3 MB, free: 21.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.26e-05/0.2524, allocations: 15.94 kB / 467.3 MB, free: 21.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.332e-05/0.2524, allocations: 327.1 kB / 467.6 MB, free: 21.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005216/0.253, allocations: 440.8 kB / 468.1 MB, free: 21.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005338/0.2535, allocations: 0.5377 MB / 468.6 MB, free: 21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000542/0.2541, allocations: 473.8 kB / 469.1 MB, free: 20.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2541, allocations: 1.344 kB / 469.1 MB, free: 20.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00133/0.2554, allocations: 1.186 MB / 470.3 MB, free: 20.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.2554, allocations: 8.875 kB / 470.3 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2554, allocations: 3.203 kB / 470.3 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.2555, allocations: 5.062 kB / 470.3 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004293/0.2559, allocations: 131.2 kB / 470.4 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.2559, allocations: 6.125 kB / 470.4 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.2562, allocations: 64.88 kB / 470.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.601e-05/0.2562, allocations: 24.31 kB / 470.5 MB, free: 20.44 MB / 350.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 (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004142/0.2566, allocations: 380.9 kB / 470.9 MB, free: 20.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.2567, allocations: 137.2 kB / 471 MB, free: 20.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.2582, allocations: 1.2 MB / 472.2 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.2582, allocations: 6.125 kB / 472.2 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2582, allocations: 1.062 kB / 472.2 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.2582, allocations: 7.328 kB / 472.2 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.2608, allocations: 2.37 MB / 474.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2608, allocations: 0.7969 kB / 474.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004312/0.2613, allocations: 115.1 kB / 474.7 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.2613, allocations: 2.156 kB / 474.7 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/0.2613, allocations: 15.89 kB / 474.7 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.2613, allocations: 2.156 kB / 474.7 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2613, allocations: 4 kB / 474.7 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/0.2633, allocations: 1.878 MB / 476.6 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.2635, allocations: 200.7 kB / 476.8 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.772e-05/0.2635, allocations: 11.28 kB / 476.8 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002012/0.2637, allocations: 16.14 kB / 476.8 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.761e-05/0.2638, allocations: 44.8 kB / 476.9 MB, free: 18.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.2639, allocations: 18.03 kB / 476.9 MB, free: 18.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001007/0.2649, allocations: 0.8838 MB / 477.8 MB, free: 17.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2649, allocations: 4 kB / 477.8 MB, free: 17.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005331/0.2654, allocations: 214.9 kB / 478 MB, free: 17.29 MB / 350.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 (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001759/0.2672, allocations: 2.447 MB / 480.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.2682, allocations: 0.9833 MB / 481.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.2682, allocations: 4 kB / 481.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004528/0.2687, allocations: 0.5083 MB / 481.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005566/0.2693, allocations: 92.5 kB / 482 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008867/0.2781, allocations: 9.995 MB / 492 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005872/0.2788, allocations: 1.311 MB / 493.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002169/0.279, allocations: 76.39 kB / 493.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004409/0.2794, allocations: 0.5852 MB / 494 MB, free: 1.926 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2794, allocations: 0 / 494 MB, free: 1.926 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.309, allocations: 17.23 MB / 0.4992 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.3093, allocations: 186.8 kB / 0.4994 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/2.198, allocations: 0 / 0.4994 GB, free: 0.5586 MB / 366.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) Environment - environmentSimulation: