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.0008841/0.0008841, allocations: 102.7 kB / 15.71 MB, free: 460 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.0009876/0.0009876, allocations: 177.6 kB / 16.58 MB, free: 6.863 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.09/2.09, allocations: 205.4 MB / 222.8 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04057/0.04057, allocations: 8.115 MB / 279.1 MB, free: 13.22 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.000529/0.000529, allocations: 12 kB / 338.9 MB, free: 27.03 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1124, allocations: 49.28 MB / 388.2 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002293/0.1148, allocations: 1.631 MB / 389.8 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009671/0.1157, allocations: 0.5856 MB / 390.4 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.53e-05/0.1158, allocations: 4 kB / 390.4 MB, free: 7.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.156e-05/0.1159, allocations: 15.84 kB / 390.4 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.116, allocations: 39.69 kB / 390.5 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.1162, allocations: 51.88 kB / 390.5 MB, free: 7.352 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002259/0.1165, allocations: 207.2 kB / 390.7 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.1167, allocations: 70.19 kB / 390.8 MB, free: 7.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.1168, allocations: 67.78 kB / 390.8 MB, free: 7.016 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.117, allocations: 83.61 kB / 390.9 MB, free: 6.934 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.324e-05/0.117, allocations: 12 kB / 390.9 MB, free: 6.922 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.749e-05/0.117, allocations: 12 kB / 391 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.697e-05/0.1171, allocations: 27.91 kB / 391 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.62e-05/0.1172, allocations: 57.64 kB / 391 MB, free: 6.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.1174, allocations: 171.7 kB / 391.2 MB, free: 6.652 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1174, allocations: 0 / 391.2 MB, free: 6.652 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1174, allocations: 4 kB / 391.2 MB, free: 6.648 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.1174, allocations: 0 / 391.2 MB, free: 6.648 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.0006656/0.1181, allocations: 468.9 kB / 391.7 MB, free: 6.133 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1181, allocations: 12.03 kB / 391.7 MB, free: 6.121 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.786e-05/0.1182, allocations: 19.72 kB / 391.7 MB, free: 6.102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.1184, allocations: 198.8 kB / 391.9 MB, free: 5.867 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.1184, allocations: 12.38 kB / 391.9 MB, free: 5.855 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.1185, allocations: 28 kB / 391.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003211/0.1188, allocations: 182.1 kB / 392.1 MB, free: 5.641 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1188, allocations: 0 / 392.1 MB, free: 5.641 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.164e-05/0.1188, allocations: 8 kB / 392.1 MB, free: 5.633 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.1188, allocations: 7.984 kB / 392.1 MB, free: 5.625 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.1191, allocations: 117.1 kB / 392.2 MB, free: 5.512 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.1203, allocations: 0.7279 MB / 393 MB, free: 4.723 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.1207, allocations: 251.5 kB / 393.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.1209, allocations: 112.8 kB / 393.3 MB, free: 4.336 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.1209, allocations: 4 kB / 393.3 MB, free: 4.332 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003107/0.1212, allocations: 187.2 kB / 393.5 MB, free: 4.125 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.763e-06/0.1212, allocations: 4 kB / 393.5 MB, free: 4.121 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001345/0.1226, allocations: 0.7862 MB / 394.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.64e-05/0.1227, allocations: 144.4 kB / 394.4 MB, free: 3.086 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.1228, allocations: 137.4 kB / 394.6 MB, free: 2.945 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.1228, allocations: 33.7 kB / 394.6 MB, free: 2.906 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.764e-05/0.123, allocations: 140.4 kB / 394.7 MB, free: 2.766 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.053e-05/0.123, allocations: 70.92 kB / 394.8 MB, free: 2.695 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.315e-05/0.123, allocations: 12 kB / 394.8 MB, free: 2.684 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1232, allocations: 330.8 kB / 395.1 MB, free: 2.352 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.954e-05/0.1233, allocations: 56.31 kB / 395.2 MB, free: 2.293 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.1235, allocations: 132.4 kB / 395.3 MB, free: 2.137 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.1237, allocations: 110.9 kB / 395.4 MB, free: 2.023 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1237, allocations: 4 kB / 395.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004103/0.1241, allocations: 292.3 kB / 395.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.139e-05/0.1241, allocations: 37.69 kB / 395.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.1242, allocations: 0 / 395.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.1242, allocations: 4 kB / 395.8 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.1244, allocations: 63.91 kB / 395.8 MB, free: 1.613 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1244, allocations: 4 kB / 395.8 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.678e-05/0.1245, allocations: 12 kB / 395.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.1245, allocations: 11.94 kB / 395.9 MB, free: 1.586 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,$PRE.pulseCounter.count,pulseCounter.count,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.pulseCounter.next_phi,pulseCounter.next_phi,$PRE.pulseCounter.prev_phi,pulseCounter.prev_phi) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002374/0.1248, allocations: 187.4 kB / 396 MB, free: 1.387 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.1248, allocations: 19.77 kB / 396.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.344e-05/0.1249, allocations: 20.83 kB / 396.1 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1249, allocations: 0 / 396.1 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.1249, allocations: 4 kB / 396.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.1249, allocations: 3.984 kB / 396.1 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000996/0.1259, allocations: 0.7045 MB / 396.8 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1259, allocations: 0 / 396.8 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002029/0.1261, allocations: 39.97 kB / 396.8 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1262, allocations: 4 kB / 396.8 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.1262, allocations: 8 kB / 396.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.1262, allocations: 64 / 396.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1262, allocations: 8 kB / 396.9 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.1268, allocations: 458.5 kB / 397.3 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.904e-05/0.1269, allocations: 96.89 kB / 397.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.309e-05/0.1269, allocations: 15.95 kB / 397.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.1271, allocations: 8 kB / 397.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.1271, allocations: 23.92 kB / 397.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.1272, allocations: 11.98 kB / 397.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.465e-05/0.1272, allocations: 95.27 kB / 397.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1272, allocations: 0 / 397.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003031/0.1276, allocations: 52 kB / 397.6 MB, free: 15.71 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 (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.0001447/0.1277, allocations: 113.5 kB / 397.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003608/0.1281, allocations: 248 kB / 398 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.1281, allocations: 4 kB / 398 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000207/0.1283, allocations: 195.3 kB / 398.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.1286, allocations: 15.94 kB / 398.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.1297, allocations: 0.7829 MB / 398.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.1301, allocations: 0.7322 MB / 399.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.1301, allocations: 15.44 kB / 399.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1301, allocations: 0 / 399.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of Templates: time 0.0039/0.134, allocations: 2.061 MB / 401.8 MB, free: 11.46 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++ 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 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