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.001505/0.001505, allocations: 96.14 kB / 15.87 MB, free: 16 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.00195/0.00195, allocations: 191.3 kB / 16.79 MB, free: 6.812 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.702/1.702, allocations: 205.1 MB / 222.6 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04047/0.04047, allocations: 8.109 MB / 278.1 MB, free: 13.41 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.001329/0.001329, allocations: 67.03 kB / 337.2 MB, free: 26.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1039, allocations: 48.29 MB / 385.5 MB, free: 10.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003553/0.1075, allocations: 2.035 MB / 387.5 MB, free: 8.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.1086, allocations: 0.6165 MB / 388.1 MB, free: 7.934 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.178e-05/0.1087, allocations: 4 kB / 388.1 MB, free: 7.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.387e-05/0.1087, allocations: 19.84 kB / 388.1 MB, free: 7.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.1089, allocations: 39.67 kB / 388.2 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002131/0.1091, allocations: 47.97 kB / 388.2 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002247/0.1093, allocations: 211.1 kB / 388.4 MB, free: 7.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.1096, allocations: 86.72 kB / 388.5 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.1097, allocations: 79.77 kB / 388.6 MB, free: 7.457 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.1098, allocations: 83.62 kB / 388.7 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.1099, allocations: 16 kB / 388.7 MB, free: 7.359 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.433e-05/0.1099, allocations: 16 kB / 388.7 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.003e-05/0.11, allocations: 43.83 kB / 388.7 MB, free: 7.301 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.1101, allocations: 95.59 kB / 388.8 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002119/0.1103, allocations: 175.8 kB / 389 MB, free: 7.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1103, allocations: 3.938 kB / 389 MB, free: 7.031 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.247e-06/0.1103, allocations: 0 / 389 MB, free: 7.031 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.1104, allocations: 7.938 kB / 389 MB, free: 7.023 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.0008083/0.1112, allocations: 0.5008 MB / 389.5 MB, free: 6.465 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.1112, allocations: 8.031 kB / 389.5 MB, free: 6.457 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.964e-05/0.1113, allocations: 20.75 kB / 389.5 MB, free: 6.438 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001724/0.1115, allocations: 184.1 kB / 389.7 MB, free: 6.219 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.1115, allocations: 20.75 kB / 389.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.816e-05/0.1115, allocations: 20.36 kB / 389.8 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.1119, allocations: 194.2 kB / 390 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.1119, allocations: 3.984 kB / 390 MB, free: 5.977 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.281e-05/0.1119, allocations: 8 kB / 390 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.112, allocations: 8 kB / 390 MB, free: 5.961 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002192/0.1122, allocations: 113.1 kB / 390.1 MB, free: 5.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.1133, allocations: 0.724 MB / 390.8 MB, free: 5.066 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003724/0.1137, allocations: 239.6 kB / 391 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/0.1139, allocations: 116.8 kB / 391.2 MB, free: 4.688 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.357e-05/0.114, allocations: 0 / 391.2 MB, free: 4.688 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.1142, allocations: 182.7 kB / 391.3 MB, free: 4.484 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/0.1142, allocations: 0 / 391.3 MB, free: 4.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001338/0.1156, allocations: 0.7948 MB / 392.1 MB, free: 3.609 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.002e-05/0.1157, allocations: 136.5 kB / 392.3 MB, free: 3.445 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.1158, allocations: 141 kB / 392.4 MB, free: 3.301 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.1158, allocations: 33.7 kB / 392.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.091e-05/0.1159, allocations: 132.5 kB / 392.6 MB, free: 3.129 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.637e-05/0.116, allocations: 82.81 kB / 392.6 MB, free: 3.047 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.461e-05/0.1161, allocations: 53.7 kB / 392.7 MB, free: 2.988 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1162, allocations: 330.8 kB / 393 MB, free: 2.656 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.1164, allocations: 60.31 kB / 393.1 MB, free: 2.598 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.1165, allocations: 132.4 kB / 393.2 MB, free: 2.441 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/0.1169, allocations: 272.4 kB / 393.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.1169, allocations: 0 / 393.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003924/0.1173, allocations: 292.1 kB / 393.8 MB, free: 1.84 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.767e-05/0.1173, allocations: 37.69 kB / 393.8 MB, free: 1.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.1173, allocations: 7.922 kB / 393.8 MB, free: 1.789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.1173, allocations: 4 kB / 393.8 MB, free: 1.785 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.1176, allocations: 59.92 kB / 393.9 MB, free: 1.727 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.1176, allocations: 11.92 kB / 393.9 MB, free: 1.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.286e-05/0.1177, allocations: 12.19 kB / 393.9 MB, free: 1.703 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.1177, allocations: 12 kB / 393.9 MB, free: 1.691 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.0002091/0.1179, allocations: 187.3 kB / 394.1 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.118, allocations: 15.81 kB / 394.1 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.639e-05/0.118, allocations: 16.78 kB / 394.1 MB, free: 1.453 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.118, allocations: 4 kB / 394.1 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.118, allocations: 0 / 394.1 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1181, allocations: 3.984 kB / 394.1 MB, free: 1.445 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009103/0.119, allocations: 0.7005 MB / 394.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.119, allocations: 0 / 394.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.1192, allocations: 43.91 kB / 394.9 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1192, allocations: 7.984 kB / 394.9 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.1192, allocations: 8 kB / 394.9 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.1192, allocations: 8.062 kB / 394.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1192, allocations: 4 kB / 394.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005786/0.1198, allocations: 462.6 kB / 395.3 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.238e-05/0.1199, allocations: 92.95 kB / 395.4 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.1199, allocations: 12 kB / 395.4 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.1201, allocations: 12.05 kB / 395.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.707e-05/0.1201, allocations: 15.94 kB / 395.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.1202, allocations: 7.984 kB / 395.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.943e-05/0.1203, allocations: 103.2 kB / 395.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1203, allocations: 0 / 395.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.1206, allocations: 52 kB / 395.6 MB, free: 15.82 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 0.0001222/0.1207, allocations: 114.1 kB / 395.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003549/0.1211, allocations: 247.9 kB / 396 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1211, allocations: 0 / 396 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.1213, allocations: 199.3 kB / 396.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.1215, allocations: 15.94 kB / 396.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.1226, allocations: 0.7033 MB / 396.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.123, allocations: 0.7283 MB / 397.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.796e-05/0.123, allocations: 19.44 kB / 397.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.123, allocations: 0 / 397.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of Templates: time 0.003669/0.1267, allocations: 2.103 MB / 399.7 MB, free: 11.61 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