Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009896/0.0009893, allocations: 87.53 kB / 17.63 MB, free: 5.719 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.001051/0.001051, allocations: 182.4 kB / 18.52 MB, free: 5.168 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.435/1.435, allocations: 223.3 MB / 242.5 MB, free: 348 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2587/0.2587, allocations: 44.22 MB / 337.9 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003098, allocations: 9.25 kB / 410.3 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1466, allocations: 61.92 MB / 472.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002196/0.1488, allocations: 1.147 MB / 473.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008169/0.1497, allocations: 387.5 kB / 473.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.9e-05/0.1497, allocations: 0 / 473.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.335e-05/0.1498, allocations: 3.938 kB / 473.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.481e-05/0.1498, allocations: 7.984 kB / 473.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001957/0.15, allocations: 15.92 kB / 473.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.315e-05/0.1501, allocations: 27.92 kB / 473.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.1503, allocations: 4 kB / 473.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.1504, allocations: 27.91 kB / 473.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.399e-05/0.1505, allocations: 11.92 kB / 473.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.1505, allocations: 0 / 473.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.636e-05/0.1505, allocations: 4 kB / 473.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.62e-05/0.1506, allocations: 4 kB / 473.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.1506, allocations: 29.64 kB / 473.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.559e-05/0.1507, allocations: 27.95 kB / 473.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1507, allocations: 3.938 kB / 473.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.1507, allocations: 0 / 473.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.1508, allocations: 0 / 473.9 MB, free: 12.03 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006243/0.1514, allocations: 347.5 kB / 474.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.678e-05/0.1515, allocations: 8.031 kB / 474.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.703e-05/0.1515, allocations: 4 kB / 474.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.1517, allocations: 174.9 kB / 474.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.1517, allocations: 0 / 474.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.1518, allocations: 4 kB / 474.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002186/0.152, allocations: 63.34 kB / 474.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.152, allocations: 0 / 474.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.152, allocations: 0 / 474.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.152, allocations: 0 / 474.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.1521, allocations: 31.92 kB / 474.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00053/0.1527, allocations: 264.9 kB / 474.7 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.687e-05/0.1528, allocations: 30.58 kB / 474.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.967e-05/0.1529, allocations: 24.91 kB / 474.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.1529, allocations: 0 / 474.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.1529, allocations: 30.56 kB / 474.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 3.807e-06/0.153, allocations: 0 / 474.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002825/0.1532, allocations: 77.64 kB / 474.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/0.1533, allocations: 81.11 kB / 475 MB, free: 10.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.1535, allocations: 113.8 kB / 475.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.1535, allocations: 25.7 kB / 475.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/0.1536, allocations: 84.14 kB / 475.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.1536, allocations: 11.89 kB / 475.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-06/0.1536, allocations: 0 / 475.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1538, allocations: 314.8 kB / 475.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.956e-05/0.1538, allocations: 16.02 kB / 475.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.385e-05/0.1539, allocations: 25.72 kB / 475.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.21e-05/0.154, allocations: 19.92 kB / 475.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.154, allocations: 0 / 475.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000127/0.1541, allocations: 65.62 kB / 475.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.1541, allocations: 16.02 kB / 475.7 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1541, allocations: 0 / 475.7 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.1542, allocations: 0 / 475.7 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.127e-05/0.1542, allocations: 11.94 kB / 475.7 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1543, allocations: 0 / 475.7 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.612e-05/0.1543, allocations: 11.98 kB / 475.7 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/0.1543, allocations: 0 / 475.7 MB, free: 9.977 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001104/0.1545, allocations: 114.4 kB / 475.8 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.1545, allocations: 7.953 kB / 475.8 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.691e-05/0.1545, allocations: 11.48 kB / 475.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.1545, allocations: 0 / 475.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1545, allocations: 0 / 475.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1545, allocations: 0 / 475.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.1547, allocations: 161.7 kB / 476 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1547, allocations: 3.938 kB / 476 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.935e-05/0.1548, allocations: 7.984 kB / 476 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.1548, allocations: 3.953 kB / 476 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.1548, allocations: 4 kB / 476 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1548, allocations: 0 / 476 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1548, allocations: 4 kB / 476 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001775/0.155, allocations: 159.4 kB / 476.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.164e-05/0.155, allocations: 77.11 kB / 476.2 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.1551, allocations: 7.984 kB / 476.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.959e-05/0.1552, allocations: 11.98 kB / 476.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.819e-05/0.1552, allocations: 7.984 kB / 476.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.1553, allocations: 0 / 476.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.316e-05/0.1553, allocations: 91.27 kB / 476.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1553, allocations: 0 / 476.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002228/0.1556, allocations: 4 kB / 476.3 MB, free: 9.219 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001102/0.1557, allocations: 107.1 kB / 476.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.1558, allocations: 27.98 kB / 476.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1558, allocations: 4 kB / 476.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.608e-05/0.1559, allocations: 15.98 kB / 476.5 MB, free: 9.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.1561, allocations: 0 / 476.5 MB, free: 9.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000315/0.1564, allocations: 166.3 kB / 476.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.1567, allocations: 0.6809 MB / 477.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.167e-05/0.1568, allocations: 11.44 kB / 477.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1568, allocations: 0 / 477.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of Templates: time 0.002093/0.1589, allocations: 0.6183 MB / 478 MB, free: 7.523 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.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 OMCppModelicaTest_4.0.0_ModelicaTest.Blocks.HysteresisCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Blocks.HysteresisCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Blocks.HysteresisCalcHelperMain.o] Error 1