Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.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.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006825/0.0006825, allocations: 98.88 kB / 16.02 MB, free: 76 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.0007187/0.0007188, allocations: 185.1 kB / 16.92 MB, free: 6.684 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.143/1.143, allocations: 205.4 MB / 223.1 MB, free: 5.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03509/0.03509, allocations: 8.095 MB / 279.5 MB, free: 13.35 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.0004586/0.0004587, allocations: 15.12 kB / 339.5 MB, free: 26.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0654/0.06587, allocations: 49.28 MB / 388.8 MB, free: 9.375 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.001744/0.06765, allocations: 1.688 MB / 390.5 MB, free: 7.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007903/0.06845, allocations: 0.601 MB / 391.1 MB, free: 7.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.952e-05/0.06851, allocations: 7.938 kB / 391.1 MB, free: 7.055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.839e-05/0.06856, allocations: 15.86 kB / 391.1 MB, free: 7.039 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.06868, allocations: 43.67 kB / 391.2 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.06885, allocations: 55.95 kB / 391.2 MB, free: 6.941 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.06904, allocations: 211.1 kB / 391.4 MB, free: 6.734 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.06921, allocations: 74.75 kB / 391.5 MB, free: 6.664 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.06932, allocations: 67.78 kB / 391.6 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.06943, allocations: 87.61 kB / 391.7 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.06946, allocations: 12 kB / 391.7 MB, free: 6.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.317e-05/0.06949, allocations: 12 kB / 391.7 MB, free: 6.488 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.713e-05/0.06953, allocations: 27.86 kB / 391.7 MB, free: 6.461 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.969e-05/0.06963, allocations: 121.3 kB / 391.8 MB, free: 6.336 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.06979, allocations: 179.8 kB / 392 MB, free: 6.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.0698, allocations: 0 / 392 MB, free: 6.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.06981, allocations: 0 / 392 MB, free: 6.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.06982, allocations: 3.938 kB / 392 MB, free: 6.156 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005195/0.07034, allocations: 476.9 kB / 392.5 MB, free: 5.633 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.07038, allocations: 12.03 kB / 392.5 MB, free: 5.621 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.292e-05/0.07043, allocations: 24.66 kB / 392.5 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.07055, allocations: 180.2 kB / 392.7 MB, free: 5.383 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.07057, allocations: 16.75 kB / 392.7 MB, free: 5.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.002e-05/0.07062, allocations: 24.28 kB / 392.7 MB, free: 5.344 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.07089, allocations: 186.2 kB / 392.9 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.07091, allocations: 0 / 392.9 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.07094, allocations: 15.98 kB / 392.9 MB, free: 5.137 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.07095, allocations: 4 kB / 392.9 MB, free: 5.133 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.07114, allocations: 113.1 kB / 393 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000943/0.07209, allocations: 0.7318 MB / 393.8 MB, free: 4.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/0.07242, allocations: 239.6 kB / 394 MB, free: 3.969 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.07262, allocations: 116.7 kB / 394.1 MB, free: 3.855 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.07264, allocations: 0 / 394.1 MB, free: 3.855 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.07287, allocations: 178.7 kB / 394.3 MB, free: 3.656 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.322e-06/0.07288, allocations: 3.938 kB / 394.3 MB, free: 3.652 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.00104/0.07393, allocations: 0.7948 MB / 395.1 MB, free: 2.777 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.074, allocations: 136.5 kB / 395.2 MB, free: 2.613 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.905e-05/0.0741, allocations: 133.7 kB / 395.4 MB, free: 2.473 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.07413, allocations: 37.7 kB / 395.4 MB, free: 2.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.943e-05/0.07419, allocations: 132.5 kB / 395.5 MB, free: 2.297 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.068e-05/0.07426, allocations: 82.89 kB / 395.6 MB, free: 2.215 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.776e-05/0.0743, allocations: 33.7 kB / 395.6 MB, free: 2.176 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.406e-05/0.0744, allocations: 326.8 kB / 395.9 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.07451, allocations: 60.3 kB / 396 MB, free: 1.785 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.07465, allocations: 136.4 kB / 396.1 MB, free: 1.625 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.07493, allocations: 268.4 kB / 396.4 MB, free: 1.324 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.07494, allocations: 3.938 kB / 396.4 MB, free: 1.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003454/0.07529, allocations: 288.2 kB / 396.7 MB, free: 1.027 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.07533, allocations: 33.95 kB / 396.7 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.505e-06/0.07534, allocations: 11.94 kB / 396.7 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.07536, allocations: 7.984 kB / 396.7 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.07555, allocations: 55.91 kB / 396.8 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.07557, allocations: 4 kB / 396.8 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.238e-05/0.07566, allocations: 23.83 kB / 396.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.07569, allocations: 15.94 kB / 396.8 MB, free: 0.8711 MB / 286.1 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(flow=false fixed = true ) "Sensed speed" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.pulseCounter.w,pulseCounter.w,pulseCounter.count,$PRE.pulseCounter.count,pulseCounter.prev_phi,$PRE.pulseCounter.prev_phi,pulseCounter.next_phi,$PRE.pulseCounter.next_phi,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * 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.0001498/0.07585, allocations: 179.3 kB / 397 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.07588, allocations: 19.91 kB / 397 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.684e-05/0.07593, allocations: 20.78 kB / 397.1 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.07594, allocations: 4 kB / 397.1 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.07595, allocations: 0 / 397.1 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.07596, allocations: 0 / 397.1 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007904/0.07675, allocations: 0.7083 MB / 397.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.07677, allocations: 0 / 397.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.07694, allocations: 39.92 kB / 397.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.07696, allocations: 4 kB / 397.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.07698, allocations: 15.98 kB / 397.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.07699, allocations: 0 / 397.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.07699, allocations: 4 kB / 397.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004744/0.07747, allocations: 466.7 kB / 398.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.154e-05/0.07753, allocations: 85.02 kB / 398.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.07757, allocations: 12 kB / 398.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.07768, allocations: 12.03 kB / 398.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.07773, allocations: 15.97 kB / 398.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.07775, allocations: 16 kB / 398.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.984e-05/0.07781, allocations: 99.2 kB / 398.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07782, allocations: 0 / 398.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002766/0.0781, allocations: 52 kB / 398.6 MB, free: 15 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count) * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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 9.21e-05/0.07819, allocations: 117.6 kB / 398.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002992/0.0785, allocations: 252.2 kB / 398.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.07851, allocations: 4.125 kB / 398.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.07869, allocations: 195.2 kB / 399.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.07893, allocations: 16 kB / 399.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009062/0.07985, allocations: 0.7908 MB / 399.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002487/0.08011, allocations: 0.7283 MB / 400.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.051e-05/0.08016, allocations: 19.44 kB / 400.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.08016, allocations: 4 kB / 400.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of Templates: time 0.00303/0.0832, allocations: 2.08 MB / 402.8 MB, free: 10.71 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.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.PlantWithPulseCounterCalcHelperMain.o OMCppModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounterCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounterCalcHelperMain.o] Error 1