Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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/ModelicaByExample 0.6.0/package.mo", uses=false) Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/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(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006592/0.0006593, allocations: 91.77 kB / 16.02 MB, free: 80 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.0007128/0.0007129, allocations: 180.5 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.159/1.159, allocations: 205.4 MB / 223.1 MB, free: 5.793 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03566/0.03566, allocations: 8.099 MB / 279.5 MB, free: 13.36 MB / 238.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: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004434/0.0004435, allocations: 20.66 kB / 339.5 MB, free: 26.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06585/0.0663, allocations: 49.27 MB / 388.8 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.00164/0.06797, allocations: 1.603 MB / 390.4 MB, free: 7.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002408/0.06822, allocations: 143.5 kB / 390.6 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.868e-05/0.06828, allocations: 4 kB / 390.6 MB, free: 7.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.861e-05/0.06833, allocations: 23.84 kB / 390.6 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.783e-05/0.06842, allocations: 31.7 kB / 390.6 MB, free: 7.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001255/0.06855, allocations: 39.95 kB / 390.6 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001404/0.0687, allocations: 159.3 kB / 390.8 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.06887, allocations: 74.08 kB / 390.9 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.062e-05/0.06893, allocations: 47.8 kB / 390.9 MB, free: 7.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.306e-05/0.06902, allocations: 63.7 kB / 391 MB, free: 7.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.434e-05/0.06905, allocations: 15.94 kB / 391 MB, free: 7.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.052e-05/0.06908, allocations: 12 kB / 391 MB, free: 7.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.48e-05/0.06912, allocations: 31.84 kB / 391 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.309e-05/0.0692, allocations: 101.4 kB / 391.1 MB, free: 7.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.06934, allocations: 135.8 kB / 391.3 MB, free: 6.891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.06935, allocations: 0 / 391.3 MB, free: 6.891 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.06936, allocations: 0 / 391.3 MB, free: 6.891 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.06937, allocations: 0 / 391.3 MB, free: 6.891 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0004402/0.06981, allocations: 431 kB / 391.7 MB, free: 6.418 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.06985, allocations: 11.97 kB / 391.7 MB, free: 6.406 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.895e-05/0.06989, allocations: 16.75 kB / 391.7 MB, free: 6.391 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.07001, allocations: 176.2 kB / 391.9 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.07003, allocations: 12.38 kB / 391.9 MB, free: 6.168 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.46e-05/0.07007, allocations: 20.38 kB / 391.9 MB, free: 6.148 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/0.07031, allocations: 154.1 kB / 392.1 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.07033, allocations: 4.172 kB / 392.1 MB, free: 5.988 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.07036, allocations: 15.94 kB / 392.1 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.07037, allocations: 4 kB / 392.1 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.07054, allocations: 111.9 kB / 392.2 MB, free: 5.859 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008228/0.07137, allocations: 0.6831 MB / 392.9 MB, free: 5.109 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.07173, allocations: 231.5 kB / 393.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.0719, allocations: 84.83 kB / 393.2 MB, free: 4.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.07192, allocations: 4 kB / 393.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.07195, allocations: 42.56 kB / 393.2 MB, free: 4.715 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.07196, allocations: 0 / 393.2 MB, free: 4.715 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006652/0.07263, allocations: 489.4 kB / 393.7 MB, free: 4.191 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.07267, allocations: 55.41 kB / 393.8 MB, free: 4.125 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.616e-05/0.07275, allocations: 117.8 kB / 393.9 MB, free: 4 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.07277, allocations: 29.7 kB / 393.9 MB, free: 3.965 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.07284, allocations: 132.1 kB / 394.1 MB, free: 3.832 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.956e-05/0.07288, allocations: 63.11 kB / 394.1 MB, free: 3.77 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.951e-05/0.07292, allocations: 21.7 kB / 394.1 MB, free: 3.742 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.278e-05/0.07302, allocations: 322.8 kB / 394.5 MB, free: 3.418 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.077e-05/0.07309, allocations: 39.98 kB / 394.5 MB, free: 3.379 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.085e-05/0.07319, allocations: 94.16 kB / 394.6 MB, free: 3.27 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.07337, allocations: 133.1 kB / 394.7 MB, free: 3.121 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.07338, allocations: 0 / 394.7 MB, free: 3.121 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002279/0.07361, allocations: 188.9 kB / 394.9 MB, free: 2.934 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.07363, allocations: 4 kB / 394.9 MB, free: 2.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.07364, allocations: 4 kB / 394.9 MB, free: 2.926 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.859e-06/0.07365, allocations: 0 / 394.9 MB, free: 2.926 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.07381, allocations: 47.92 kB / 395 MB, free: 2.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.07382, allocations: 7.922 kB / 395 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.47e-05/0.07388, allocations: 11.94 kB / 395 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.0739, allocations: 11.94 kB / 395 MB, free: 2.848 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (25): * Single equations (assignments): 25 * 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 7.997e-05/0.07399, allocations: 129.9 kB / 395.1 MB, free: 2.711 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.455e-05/0.07403, allocations: 7.906 kB / 395.1 MB, free: 2.703 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.836e-05/0.07407, allocations: 20.84 kB / 395.1 MB, free: 2.684 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.07408, allocations: 0 / 395.1 MB, free: 2.684 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.07408, allocations: 0 / 395.1 MB, free: 2.684 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.07409, allocations: 11.91 kB / 395.1 MB, free: 2.672 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005251/0.07463, allocations: 498.3 kB / 395.6 MB, free: 2.129 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.07464, allocations: 3.984 kB / 395.6 MB, free: 2.125 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.07481, allocations: 35.92 kB / 395.7 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.07482, allocations: 4 kB / 395.7 MB, free: 2.086 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.07483, allocations: 0 / 395.7 MB, free: 2.086 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.07484, allocations: 0 / 395.7 MB, free: 2.086 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.07485, allocations: 3.938 kB / 395.7 MB, free: 2.082 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002664/0.07512, allocations: 271.4 kB / 395.9 MB, free: 1.801 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.274e-05/0.07517, allocations: 92.95 kB / 396 MB, free: 1.691 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.07519, allocations: 8.031 kB / 396 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.299e-05/0.07526, allocations: 0 / 396 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.774e-05/0.07528, allocations: 8 kB / 396.1 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.0753, allocations: 7.984 kB / 396.1 MB, free: 1.668 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.058e-05/0.07534, allocations: 91.66 kB / 396.2 MB, free: 1.578 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07535, allocations: 0 / 396.2 MB, free: 1.578 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002376/0.07559, allocations: 36 kB / 396.2 MB, free: 1.543 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * 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 (16): * Single equations (assignments): 16 * 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 8.578e-05/0.07568, allocations: 111.2 kB / 396.3 MB, free: 1.422 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001751/0.07586, allocations: 111.8 kB / 396.4 MB, free: 1.312 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.07587, allocations: 0 / 396.4 MB, free: 1.312 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.063e-05/0.07595, allocations: 55.92 kB / 396.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.07616, allocations: 15.73 kB / 396.5 MB, free: 1.246 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008051/0.07697, allocations: 0.693 MB / 397.2 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.07723, allocations: 0.7165 MB / 397.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.216e-05/0.07728, allocations: 15.44 kB / 397.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.07728, allocations: 0 / 397.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of Templates: time 0.002375/0.07967, allocations: 1.539 MB / 399.4 MB, free: 14.21 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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 OMCppModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantCalcHelperMain.o OMCppModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantCalcHelperMain.o] Error 1