Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008363/0.0008368, allocations: 101.7 kB / 15.71 MB, free: 460 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.001013/0.001013, allocations: 178.4 kB / 16.58 MB, free: 6.125 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.565/1.565, allocations: 223.3 MB / 240.6 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.385/0.385, allocations: 28.85 MB / 320.5 MB, free: 6.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004883/0.0004883, allocations: 8 kB / 388.5 MB, free: 3.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4699/0.4704, allocations: 57.48 MB / 446 MB, free: 32.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003425/0.4739, allocations: 2.93 MB / 448.9 MB, free: 30.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.4755, allocations: 0.7653 MB / 449.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000346/0.4759, allocations: 10.56 kB / 449.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003303/0.4763, allocations: 126.8 kB / 449.8 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002498/0.4765, allocations: 95.08 kB / 449.9 MB, free: 29.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006537/0.4772, allocations: 273.6 kB / 450.2 MB, free: 29.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000695/0.4779, allocations: 0.7803 MB / 451 MB, free: 29.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006484/0.4785, allocations: 491.3 kB / 451.4 MB, free: 29.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002157/0.4788, allocations: 248.9 kB / 451.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002937/0.4791, allocations: 322.3 kB / 452 MB, free: 29.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.74e-05/0.4791, allocations: 23.34 kB / 452 MB, free: 29.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.4793, allocations: 45.03 kB / 452.1 MB, free: 29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002802/0.4796, allocations: 341.6 kB / 452.4 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.4797, allocations: 238.3 kB / 452.6 MB, free: 28.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006973/0.4804, allocations: 0.7906 MB / 453.4 MB, free: 28.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.866e-06/0.4805, allocations: 4 kB / 453.4 MB, free: 28.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.4805, allocations: 2.531 kB / 453.4 MB, free: 28.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.742e-05/0.4805, allocations: 0 / 453.4 MB, free: 28.48 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001775/0.4823, allocations: 1.54 MB / 455 MB, free: 27.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.4823, allocations: 10.5 kB / 455 MB, free: 27.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.4825, allocations: 205.3 kB / 455.2 MB, free: 27.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006893/0.4832, allocations: 0.6931 MB / 455.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.007e-05/0.4833, allocations: 76.09 kB / 455.9 MB, free: 26.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.4834, allocations: 104.5 kB / 456 MB, free: 26.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.485, allocations: 1.17 MB / 457.2 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.485, allocations: 7.875 kB / 457.2 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.359e-05/0.4851, allocations: 46.75 kB / 457.3 MB, free: 26.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.4851, allocations: 24.53 kB / 457.3 MB, free: 26.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.4864, allocations: 1.099 MB / 458.4 MB, free: 25.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004742/0.4912, allocations: 3.712 MB / 462.1 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00195/0.4932, allocations: 1.354 MB / 463.5 MB, free: 23.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006648/0.4938, allocations: 488.6 kB / 463.9 MB, free: 23.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.059e-05/0.4939, allocations: 32.3 kB / 464 MB, free: 23.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008339/0.4948, allocations: 0.5395 MB / 464.5 MB, free: 23.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 3.276e-06/0.4948, allocations: 0 / 464.5 MB, free: 23.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002443/0.4972, allocations: 1.569 MB / 466.1 MB, free: 22.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.4973, allocations: 63.91 kB / 466.1 MB, free: 22.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002033/0.4994, allocations: 1.282 MB / 467.4 MB, free: 22.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.4994, allocations: 36.52 kB / 467.5 MB, free: 22.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006902/0.5001, allocations: 0.7649 MB / 468.2 MB, free: 21.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.5003, allocations: 246.8 kB / 468.5 MB, free: 21.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/0.5004, allocations: 14.72 kB / 468.5 MB, free: 21.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.933e-05/0.5005, allocations: 344.5 kB / 468.8 MB, free: 21.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006342/0.5011, allocations: 439.3 kB / 469.2 MB, free: 21.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007789/0.5019, allocations: 0.5445 MB / 469.8 MB, free: 20.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007369/0.5026, allocations: 485.1 kB / 470.3 MB, free: 20.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.5027, allocations: 1.125 kB / 470.3 MB, free: 20.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001897/0.5046, allocations: 1.219 MB / 471.5 MB, free: 20.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.5046, allocations: 6.094 kB / 471.5 MB, free: 20.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.5046, allocations: 4.547 kB / 471.5 MB, free: 20.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.5046, allocations: 6.688 kB / 471.5 MB, free: 20.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005173/0.5052, allocations: 137.3 kB / 471.6 MB, free: 20.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.936e-05/0.5052, allocations: 11.67 kB / 471.6 MB, free: 20.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.5055, allocations: 60.64 kB / 471.7 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.533e-05/0.5056, allocations: 25.41 kB / 471.7 MB, free: 20.2 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_dPop,min_dPop,$PRE.min_QL,min_QL,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 (89): * Single equations (assignments): 89 * 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.0007535/0.5063, allocations: 387.2 kB / 472.1 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.5065, allocations: 144.2 kB / 472.2 MB, free: 19.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002069/0.5086, allocations: 1.233 MB / 473.5 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.5086, allocations: 9.016 kB / 473.5 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.5086, allocations: 0 / 473.5 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.5086, allocations: 7.594 kB / 473.5 MB, free: 19.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003771/0.5124, allocations: 2.413 MB / 475.9 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.5124, allocations: 1.266 kB / 475.9 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005036/0.5129, allocations: 122.2 kB / 476 MB, free: 18.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-06/0.513, allocations: 3.281 kB / 476 MB, free: 18.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.56e-05/0.513, allocations: 19.45 kB / 476.1 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.513, allocations: 2.5 kB / 476.1 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.513, allocations: 1.281 kB / 476.1 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.5157, allocations: 1.92 MB / 478 MB, free: 17.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003031/0.5161, allocations: 251.7 kB / 478.2 MB, free: 17.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.738e-05/0.5162, allocations: 20.8 kB / 478.2 MB, free: 17.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.5164, allocations: 12.66 kB / 478.3 MB, free: 17.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.5165, allocations: 40.03 kB / 478.3 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.42e-05/0.5165, allocations: 18.16 kB / 478.3 MB, free: 17.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001266/0.5178, allocations: 0.8878 MB / 479.2 MB, free: 16.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.032e-06/0.5178, allocations: 0 / 479.2 MB, free: 16.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000684/0.5185, allocations: 218.8 kB / 479.4 MB, free: 16.55 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002029/0.5187, allocations: 117.1 kB / 479.5 MB, free: 16.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.52, allocations: 1.013 MB / 480.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.52, allocations: 0 / 480.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005625/0.5206, allocations: 0.5239 MB / 481.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006258/0.5212, allocations: 99.27 kB / 481.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004177/0.5254, allocations: 3.343 MB / 484.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009476/0.5264, allocations: 1.311 MB / 485.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.5266, allocations: 58.53 kB / 485.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5266, allocations: 0 / 485.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of Templates: time 0.0164/0.543, allocations: 11.11 MB / 497 MB, free: 15.8 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppSystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6CalcHelperMain.o OMCppSystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppSystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6CalcHelperMain.o] Error 1