Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01011/0.01011, allocations: 100.2 kB / 15.87 MB, free: 5.867 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.001864/0.001864, allocations: 186.3 kB / 16.78 MB, free: 5.809 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.769/1.769, allocations: 222.9 MB / 240.4 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.5323/0.5323, allocations: 28.8 MB / 319.4 MB, free: 5.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 59.91 kB / 386.6 MB, free: 4.062 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.623/0.6243, allocations: 56.41 MB / 443 MB, free: 39.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.006762/0.6311, allocations: 3.254 MB / 446.2 MB, free: 37.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003067/0.6342, allocations: 0.5314 MB / 446.8 MB, free: 37.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004351/0.6347, allocations: 8.188 kB / 446.8 MB, free: 37.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004295/0.6352, allocations: 110.7 kB / 446.9 MB, free: 37.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003466/0.6355, allocations: 94.66 kB / 447 MB, free: 37.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006932/0.6362, allocations: 233.1 kB / 447.2 MB, free: 37.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007514/0.637, allocations: 0.7024 MB / 447.9 MB, free: 37.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007952/0.6378, allocations: 465 kB / 448.4 MB, free: 37.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.6381, allocations: 281.6 kB / 448.6 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003994/0.6385, allocations: 399.6 kB / 449 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.6386, allocations: 52.97 kB / 449.1 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.6388, allocations: 82.91 kB / 449.2 MB, free: 37.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003992/0.6392, allocations: 413.7 kB / 449.6 MB, free: 37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004292/0.6397, allocations: 0.5606 MB / 450.1 MB, free: 36.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007102/0.6404, allocations: 0.7247 MB / 450.8 MB, free: 36.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.6404, allocations: 0 / 450.8 MB, free: 36.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.6404, allocations: 0 / 450.8 MB, free: 36.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.162e-05/0.6405, allocations: 0 / 450.8 MB, free: 36.35 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002321/0.6428, allocations: 1.709 MB / 452.6 MB, free: 35.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.948e-05/0.6429, allocations: 15.86 kB / 452.6 MB, free: 35.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002423/0.6431, allocations: 195.1 kB / 452.8 MB, free: 35.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005655/0.6437, allocations: 0.5644 MB / 453.3 MB, free: 34.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.031e-05/0.6438, allocations: 74.5 kB / 453.4 MB, free: 34.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.6439, allocations: 96.56 kB / 453.5 MB, free: 34.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.6457, allocations: 1.076 MB / 454.6 MB, free: 34.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.345e-05/0.6457, allocations: 192 / 454.6 MB, free: 34.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.129e-05/0.6458, allocations: 46.56 kB / 454.6 MB, free: 34.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-05/0.6459, allocations: 59.53 kB / 454.7 MB, free: 34.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001822/0.6477, allocations: 1.213 MB / 455.9 MB, free: 33.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/0.6519, allocations: 2.874 MB / 458.8 MB, free: 32.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.6534, allocations: 0.9963 MB / 459.8 MB, free: 32.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006845/0.6541, allocations: 0.4955 MB / 460.3 MB, free: 32.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001217/0.6542, allocations: 32.17 kB / 460.3 MB, free: 32.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.6543, allocations: 37.91 kB / 460.3 MB, free: 32.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 1.993e-06/0.6543, allocations: 0 / 460.3 MB, free: 32.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.002398/0.6567, allocations: 1.588 MB / 461.9 MB, free: 31.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.6568, allocations: 58.56 kB / 462 MB, free: 31.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/0.6583, allocations: 1.26 MB / 463.2 MB, free: 31.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.6584, allocations: 40.33 kB / 463.3 MB, free: 31.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005827/0.659, allocations: 0.7822 MB / 464 MB, free: 30.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.6591, allocations: 225.1 kB / 464.3 MB, free: 30.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.6593, allocations: 128.7 kB / 464.4 MB, free: 30.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.6595, allocations: 340.2 kB / 464.7 MB, free: 30.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007308/0.6602, allocations: 472.6 kB / 465.2 MB, free: 30.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008119/0.661, allocations: 0.6584 MB / 465.8 MB, free: 29.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00474/0.6658, allocations: 2.122 MB / 468 MB, free: 29.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.6658, allocations: 1.281 kB / 468 MB, free: 29.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002772/0.6686, allocations: 1.333 MB / 469.3 MB, free: 28.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.025e-05/0.6686, allocations: 14.22 kB / 469.3 MB, free: 28.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/0.6687, allocations: 9.109 kB / 469.3 MB, free: 28.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.776e-05/0.6687, allocations: 9.062 kB / 469.3 MB, free: 28.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006772/0.6694, allocations: 183.8 kB / 469.5 MB, free: 28.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-05/0.6695, allocations: 13.97 kB / 469.5 MB, free: 28.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003914/0.6699, allocations: 88.7 kB / 469.6 MB, free: 28.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.67, allocations: 36.38 kB / 469.6 MB, free: 28.55 MB / 366.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0009616/0.671, allocations: 391 kB / 470 MB, free: 28.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002449/0.6712, allocations: 140.4 kB / 470.2 MB, free: 28.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00268/0.6739, allocations: 1.256 MB / 471.4 MB, free: 27.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/0.6739, allocations: 10.38 kB / 471.4 MB, free: 27.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.674, allocations: 0 / 471.4 MB, free: 27.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.674, allocations: 3.375 kB / 471.4 MB, free: 27.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004779/0.6788, allocations: 2.374 MB / 473.8 MB, free: 27.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.6788, allocations: 0 / 473.8 MB, free: 27.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006034/0.6794, allocations: 124.9 kB / 473.9 MB, free: 27.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.775e-05/0.6794, allocations: 7.125 kB / 473.9 MB, free: 27.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.929e-05/0.6795, allocations: 13.81 kB / 474 MB, free: 27.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.155e-05/0.6795, allocations: 4.719 kB / 474 MB, free: 27.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.6795, allocations: 1.5 kB / 474 MB, free: 27.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003779/0.6833, allocations: 1.939 MB / 475.9 MB, free: 26.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003133/0.6836, allocations: 201 kB / 476.1 MB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001681/0.6838, allocations: 10.66 kB / 476.1 MB, free: 26.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003122/0.6841, allocations: 25.64 kB / 476.1 MB, free: 26.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.6843, allocations: 42.38 kB / 476.2 MB, free: 26.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.475e-05/0.6844, allocations: 28.44 kB / 476.2 MB, free: 26.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001943/0.6864, allocations: 0.8679 MB / 477.1 MB, free: 25.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6864, allocations: 1.125 kB / 477.1 MB, free: 25.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00137/0.6878, allocations: 212.5 kB / 477.3 MB, free: 25.82 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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.0003484/0.6881, allocations: 117.7 kB / 477.4 MB, free: 25.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002546/0.6907, allocations: 1.089 MB / 478.5 MB, free: 25.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.6907, allocations: 0 / 478.5 MB, free: 25.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.6918, allocations: 0.549 MB / 479 MB, free: 25.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007412/0.6926, allocations: 67.94 kB / 479.1 MB, free: 25.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007772/0.7004, allocations: 3.419 MB / 482.5 MB, free: 23.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001821/0.7022, allocations: 1.306 MB / 483.8 MB, free: 22.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.7026, allocations: 64.81 kB / 483.9 MB, free: 22.64 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.7026, allocations: 0 / 483.9 MB, free: 22.64 MB / 366.1 MB Notification: Performance of Templates: time 0.0395/0.7421, allocations: 10.76 MB / 494.6 MB, free: 18.1 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppSystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5CalcHelperMain.o OMCppSystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppSystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5CalcHelperMain.o] Error 1