Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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.0007374/0.0007374, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008527/0.0008527, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9783/0.9783, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.1317/0.1317, allocations: 21.79 MB / 281 MB, free: 7.391 MB / 266.7 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.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 417.8 MB, free: 9.375 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.791e-05/1.967e-05, allocations: 5.797 kB / 417.8 MB, free: 9.371 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003256/0.003275, allocations: 3.087 MB / 420.9 MB, free: 6.273 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.004279, allocations: 0.6779 MB / 421.5 MB, free: 5.594 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002739/0.004553, allocations: 19.94 kB / 421.6 MB, free: 5.574 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003517/0.004904, allocations: 178.3 kB / 421.7 MB, free: 5.398 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000242/0.005146, allocations: 142.8 kB / 421.9 MB, free: 5.258 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005722/0.005719, allocations: 363.5 kB / 422.2 MB, free: 4.902 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006524/0.006371, allocations: 0.8561 MB / 423.1 MB, free: 4.043 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005416/0.006913, allocations: 480.1 kB / 423.5 MB, free: 3.539 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003425/0.007255, allocations: 0.4949 MB / 424 MB, free: 3.043 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.007481, allocations: 306.7 kB / 424.3 MB, free: 2.742 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.007583, allocations: 84 kB / 424.4 MB, free: 2.66 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.007741, allocations: 115.9 kB / 424.5 MB, free: 2.547 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002591/0.008, allocations: 470.3 kB / 425 MB, free: 2.086 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.008177, allocations: 338.5 kB / 425.3 MB, free: 1.754 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009705/0.009148, allocations: 1.245 MB / 426.6 MB, free: 0.5039 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.009151, allocations: 0 / 426.6 MB, free: 0.5039 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.009152, allocations: 0 / 426.6 MB, free: 0.5039 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.009164, allocations: 0 / 426.6 MB, free: 0.5039 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001389/0.01055, allocations: 1.789 MB / 428.4 MB, free: 14.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.01059, allocations: 8.031 kB / 428.4 MB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.01076, allocations: 179.5 kB / 428.5 MB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.0109, allocations: 215.5 kB / 428.8 MB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.0115, allocations: 0.7184 MB / 429.5 MB, free: 13.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.484e-05/0.01154, allocations: 82.53 kB / 429.6 MB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.527e-05/0.01162, allocations: 108.4 kB / 429.7 MB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.01272, allocations: 1.298 MB / 431 MB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.01274, allocations: 192 / 431 MB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.346e-05/0.01278, allocations: 40.38 kB / 431 MB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.059e-05/0.01282, allocations: 60.11 kB / 431.1 MB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.01391, allocations: 1.234 MB / 432.3 MB, free: 10.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002972/0.01688, allocations: 3.637 MB / 435.9 MB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.01806, allocations: 1.332 MB / 437.3 MB, free: 5.516 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003993/0.01846, allocations: 479.5 kB / 437.7 MB, free: 5.043 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.088e-05/0.01852, allocations: 28.64 kB / 437.8 MB, free: 5.016 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.01855, allocations: 43.2 kB / 437.8 MB, free: 4.965 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 1.553e-06/0.01855, allocations: 0 / 437.8 MB, free: 4.965 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.001317/0.01987, allocations: 1.567 MB / 439.4 MB, free: 3.391 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.0199, allocations: 89.7 kB / 439.5 MB, free: 3.285 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.02101, allocations: 1.382 MB / 440.8 MB, free: 1.895 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.02104, allocations: 37.7 kB / 440.9 MB, free: 1.852 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003955/0.02143, allocations: 0.8621 MB / 441.7 MB, free: 0.9805 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.02154, allocations: 249.9 kB / 442 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.02166, allocations: 154.6 kB / 442.1 MB, free: 0.5742 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.952e-05/0.02175, allocations: 342 kB / 442.5 MB, free: 240 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.185/0.2067, allocations: 470.3 kB / 442.9 MB, free: 63.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.2072, allocations: 0.7188 MB / 443.6 MB, free: 63.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007601/0.208, allocations: 1.236 MB / 444.9 MB, free: 63.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.208, allocations: 5.375 kB / 444.9 MB, free: 63.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001012/0.209, allocations: 1.396 MB / 446.3 MB, free: 62.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.209, allocations: 6.406 kB / 446.3 MB, free: 62.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.209, allocations: 9.781 kB / 446.3 MB, free: 62.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.209, allocations: 12.88 kB / 446.3 MB, free: 62.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.2093, allocations: 186.5 kB / 446.5 MB, free: 62.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.2093, allocations: 19.66 kB / 446.5 MB, free: 62.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/0.2095, allocations: 94.92 kB / 446.6 MB, free: 62.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/0.2095, allocations: 42.73 kB / 446.6 MB, free: 62.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0003281/0.2099, allocations: 406.2 kB / 447 MB, free: 62.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.045e-05/0.2099, allocations: 153.5 kB / 447.2 MB, free: 62.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008557/0.2108, allocations: 1.244 MB / 448.4 MB, free: 62.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.2108, allocations: 6 kB / 448.4 MB, free: 62.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2108, allocations: 2.906 kB / 448.4 MB, free: 62.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2108, allocations: 6.391 kB / 448.4 MB, free: 62.26 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.2123, allocations: 2.32 MB / 450.8 MB, free: 61.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2123, allocations: 0 / 450.8 MB, free: 61.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002354/0.2125, allocations: 116.6 kB / 450.9 MB, free: 61.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2125, allocations: 3.031 kB / 450.9 MB, free: 61.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.2125, allocations: 17.58 kB / 450.9 MB, free: 61.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2125, allocations: 7.062 kB / 450.9 MB, free: 61.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2125, allocations: 3.125 kB / 450.9 MB, free: 61.44 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.2136, allocations: 1.996 MB / 452.9 MB, free: 60.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.814e-05/0.2137, allocations: 141.7 kB / 453 MB, free: 60.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.202e-05/0.2138, allocations: 11.06 kB / 453.1 MB, free: 60.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.2139, allocations: 18.06 kB / 453.1 MB, free: 60.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.2139, allocations: 51.02 kB / 453.1 MB, free: 60.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.2139, allocations: 23.25 kB / 453.1 MB, free: 60.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005657/0.2145, allocations: 0.9287 MB / 454.1 MB, free: 60.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2145, allocations: 6.703 kB / 454.1 MB, free: 60.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003959/0.2149, allocations: 235.5 kB / 454.3 MB, free: 60.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.001264/0.2162, allocations: 2.561 MB / 456.9 MB, free: 59.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007334/0.2169, allocations: 1.059 MB / 457.9 MB, free: 58.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2169, allocations: 0 / 457.9 MB, free: 58.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003243/0.2172, allocations: 0.5024 MB / 458.4 MB, free: 58.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000415/0.2176, allocations: 94.78 kB / 458.5 MB, free: 58.63 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00848/0.2261, allocations: 12.41 MB / 470.9 MB, free: 53.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005231/0.2267, allocations: 0.7498 MB / 471.7 MB, free: 53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002265/0.2269, allocations: 130.2 kB / 471.8 MB, free: 52.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003297/0.2272, allocations: 0.6192 MB / 472.4 MB, free: 52.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.253e-06/0.2272, allocations: 1.344 kB / 472.4 MB, free: 52.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04176/0.269, allocations: 19.94 MB / 492.4 MB, free: 48.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.218/7.487, allocations: 11.19 kB / 492.4 MB, free: 48.01 MB / 410.7 MB " [Timeout remaining time 652] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4_fmu --startTime=1900 --stopTime=2000 --stepSize=0.04 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.586391746997833] Failed to read output from testmodel.py, exit status != 0: 7.586808894760907 7.594030804 7.582810691 Calling exit ...