Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001879/0.001879, allocations: 100.4 kB / 16.52 MB, free: 6.66 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.002063/0.002064, allocations: 199.7 kB / 17.44 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.816/2.816, allocations: 205.1 MB / 223.3 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3783/0.3783, allocations: 43.52 MB / 314.2 MB, free: 0.7539 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002339/0.002339, allocations: 70.42 kB / 382.7 MB, free: 56.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2281, allocations: 57.79 MB / 440.5 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.004952/0.2332, allocations: 1.5 MB / 442 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.2344, allocations: 456.3 kB / 442.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.212e-05/0.2345, allocations: 0 / 442.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.373e-05/0.2345, allocations: 0 / 442.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.2347, allocations: 7.938 kB / 442.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.235, allocations: 7.984 kB / 442.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.2351, allocations: 39.8 kB / 442.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.2353, allocations: 4 kB / 442.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001672/0.2355, allocations: 23.97 kB / 442.5 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.2356, allocations: 15.92 kB / 442.5 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.543e-05/0.2357, allocations: 0 / 442.5 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.014e-05/0.2357, allocations: 4 kB / 442.5 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.99e-05/0.2357, allocations: 3.938 kB / 442.5 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.428e-05/0.2358, allocations: 15.92 kB / 442.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.2359, allocations: 24.19 kB / 442.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.2359, allocations: 0 / 442.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2359, allocations: 0 / 442.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.2359, allocations: 4 kB / 442.6 MB, free: 5.414 MB / 318.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.0007695/0.2367, allocations: 351.4 kB / 442.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/0.2368, allocations: 8.031 kB / 442.9 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.281e-05/0.2368, allocations: 4.938 kB / 442.9 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002109/0.2371, allocations: 172.2 kB / 443.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.2371, allocations: 4.375 kB / 443.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.2371, allocations: 384 / 443.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.2373, allocations: 63.64 kB / 443.1 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.2374, allocations: 4 kB / 443.2 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.2374, allocations: 4 kB / 443.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.2374, allocations: 0 / 443.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.2375, allocations: 19.98 kB / 443.2 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006262/0.2382, allocations: 260.9 kB / 443.4 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.2383, allocations: 34.45 kB / 443.5 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.907e-05/0.2384, allocations: 28.91 kB / 443.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.2384, allocations: 0 / 443.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/0.2384, allocations: 30.56 kB / 443.5 MB, free: 4.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.2385, allocations: 0 / 443.5 MB, free: 4.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003455/0.2388, allocations: 61.67 kB / 443.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.971e-05/0.2389, allocations: 81.05 kB / 443.7 MB, free: 4.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.2391, allocations: 117.9 kB / 443.8 MB, free: 3.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.2391, allocations: 33.64 kB / 443.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.095e-05/0.2392, allocations: 84.14 kB / 443.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/0.2392, allocations: 3.984 kB / 443.9 MB, free: 3.863 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.06e-05/0.2393, allocations: 17.72 kB / 443.9 MB, free: 3.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.2395, allocations: 314.8 kB / 444.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.252e-05/0.2395, allocations: 11.98 kB / 444.2 MB, free: 3.512 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.884e-05/0.2396, allocations: 29.7 kB / 444.3 MB, free: 3.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.984e-05/0.2397, allocations: 28.78 kB / 444.3 MB, free: 3.445 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2397, allocations: 0 / 444.3 MB, free: 3.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001371/0.2398, allocations: 65.61 kB / 444.4 MB, free: 3.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.2399, allocations: 4 kB / 444.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.2399, allocations: 0 / 444.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.2399, allocations: 4 kB / 444.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.647e-05/0.24, allocations: 3.984 kB / 444.4 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.24, allocations: 8.031 kB / 444.4 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.672e-05/0.2401, allocations: 7.984 kB / 444.4 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.2401, allocations: 4 kB / 444.4 MB, free: 3.344 MB / 318.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 (hysteresis.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001314/0.2403, allocations: 117.7 kB / 444.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.2403, allocations: 0 / 444.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.315e-05/0.2403, allocations: 15.53 kB / 444.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.2403, allocations: 0 / 444.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.2403, allocations: 0 / 444.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.2404, allocations: 4 kB / 444.5 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.2406, allocations: 169.6 kB / 444.7 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.2406, allocations: 0 / 444.7 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.905e-05/0.2406, allocations: 3.984 kB / 444.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.2407, allocations: 4 kB / 444.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.2407, allocations: 0 / 444.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2407, allocations: 0 / 444.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2407, allocations: 0 / 444.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002186/0.2409, allocations: 163.3 kB / 444.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.469e-05/0.241, allocations: 77.11 kB / 444.9 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.241, allocations: 4 kB / 444.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.216e-05/0.2411, allocations: 7.984 kB / 444.9 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.809e-05/0.2412, allocations: 7.938 kB / 444.9 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.2412, allocations: 3.984 kB / 445 MB, free: 2.684 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.586e-05/0.2413, allocations: 91.22 kB / 445 MB, free: 2.594 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2413, allocations: 0 / 445 MB, free: 2.594 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002113/0.2415, allocations: 4 kB / 445 MB, free: 2.59 MB / 318.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 (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.0001778/0.2417, allocations: 103.2 kB / 445.1 MB, free: 2.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002038/0.2419, allocations: 31.97 kB / 445.2 MB, free: 2.445 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.2419, allocations: 4 kB / 445.2 MB, free: 2.441 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.821e-05/0.2419, allocations: 15.94 kB / 445.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.2422, allocations: 3.938 kB / 445.2 MB, free: 2.422 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004944/0.2427, allocations: 162 kB / 445.4 MB, free: 2.234 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.2431, allocations: 0.6809 MB / 446 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.158e-05/0.2432, allocations: 7.438 kB / 446 MB, free: 1.52 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.2432, allocations: 0 / 446 MB, free: 1.52 MB / 318.1 MB Notification: Performance of Templates: time 0.002801/0.246, allocations: 0.6358 MB / 446.7 MB, free: 0.8867 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.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 OMCppModelicaTest_3.2.3_ModelicaTest.Blocks.HysteresisCalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Blocks.HysteresisCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Blocks.HysteresisCalcHelperMain.o] Error 1