Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, 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.001161/0.001162, 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.788/1.788, allocations: 205.1 MB / 222.6 MB, free: 4.977 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04393/0.04393, allocations: 8.109 MB / 278.1 MB, free: 13.64 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.00128/0.00128, allocations: 67.03 kB / 337.2 MB, free: 27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09941/0.1007, allocations: 48.3 MB / 385.5 MB, free: 10.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003329/0.1041, allocations: 1.992 MB / 387.4 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004241/0.1045, allocations: 239.2 kB / 387.7 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.247e-05/0.1046, allocations: 0 / 387.7 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.563e-05/0.1047, allocations: 19.84 kB / 387.7 MB, free: 8.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.448e-05/0.1048, allocations: 35.7 kB / 387.7 MB, free: 8.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001993/0.105, allocations: 47.95 kB / 387.8 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001757/0.1052, allocations: 179.2 kB / 388 MB, free: 8.125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.1054, allocations: 82.61 kB / 388 MB, free: 8.043 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.674e-05/0.1055, allocations: 63.78 kB / 388.1 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.1056, allocations: 79.67 kB / 388.2 MB, free: 7.902 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.1056, allocations: 12 kB / 388.2 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.017e-05/0.1056, allocations: 20 kB / 388.2 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.759e-05/0.1057, allocations: 31.86 kB / 388.2 MB, free: 7.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.143e-05/0.1058, allocations: 91.59 kB / 388.3 MB, free: 7.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.1059, allocations: 159.8 kB / 388.5 MB, free: 7.594 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.106, allocations: 7.938 kB / 388.5 MB, free: 7.586 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.106, allocations: 0 / 388.5 MB, free: 7.586 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.207e-06/0.106, allocations: 3.938 kB / 388.5 MB, free: 7.582 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006615/0.1066, allocations: 463.4 kB / 388.9 MB, free: 7.074 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.1067, allocations: 8.031 kB / 389 MB, free: 7.066 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.703e-05/0.1067, allocations: 20.75 kB / 389 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.1069, allocations: 180.1 kB / 389.1 MB, free: 6.832 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.1069, allocations: 16.75 kB / 389.2 MB, free: 6.816 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.1069, allocations: 24.36 kB / 389.2 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.1073, allocations: 164.9 kB / 389.4 MB, free: 6.629 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1073, allocations: 192 / 389.4 MB, free: 6.629 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.1073, allocations: 15.94 kB / 389.4 MB, free: 6.613 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.1073, allocations: 4 kB / 389.4 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.1075, allocations: 107.7 kB / 389.5 MB, free: 6.504 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.1086, allocations: 0.7065 MB / 390.2 MB, free: 5.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003381/0.1089, allocations: 235.6 kB / 390.4 MB, free: 5.473 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.1091, allocations: 92.75 kB / 390.5 MB, free: 5.379 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.1091, allocations: 0 / 390.5 MB, free: 5.379 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/0.1093, allocations: 99.56 kB / 390.6 MB, free: 5.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.173e-06/0.1094, allocations: 4 kB / 390.6 MB, free: 5.266 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008578/0.1102, allocations: 0.4994 MB / 391.1 MB, free: 4.719 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.1103, allocations: 63.34 kB / 391.2 MB, free: 4.645 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.1104, allocations: 122.1 kB / 391.3 MB, free: 4.512 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.1104, allocations: 29.64 kB / 391.3 MB, free: 4.477 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.251e-05/0.1105, allocations: 143.9 kB / 391.5 MB, free: 4.332 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.676e-05/0.1106, allocations: 63.11 kB / 391.5 MB, free: 4.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.045e-05/0.1106, allocations: 45.7 kB / 391.6 MB, free: 4.219 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1108, allocations: 322.8 kB / 391.9 MB, free: 3.895 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.785e-05/0.1108, allocations: 43.98 kB / 391.9 MB, free: 3.852 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.111, allocations: 107.8 kB / 392 MB, free: 3.723 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.1112, allocations: 178.6 kB / 392.2 MB, free: 3.523 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1112, allocations: 0 / 392.2 MB, free: 3.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002874/0.1115, allocations: 205.2 kB / 392.4 MB, free: 3.316 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.1115, allocations: 4 kB / 392.4 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1115, allocations: 4 kB / 392.4 MB, free: 3.309 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1115, allocations: 4 kB / 392.4 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.1117, allocations: 51.97 kB / 392.5 MB, free: 3.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.1117, allocations: 8.156 kB / 392.5 MB, free: 3.246 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.402e-05/0.1118, allocations: 8 kB / 392.5 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.1118, allocations: 8 kB / 392.5 MB, free: 3.23 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001178/0.1119, allocations: 133.8 kB / 392.6 MB, free: 3.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.953e-05/0.112, allocations: 11.84 kB / 392.6 MB, free: 3.078 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.859e-05/0.112, allocations: 28.77 kB / 392.7 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.112, allocations: 0 / 392.7 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.112, allocations: 0 / 392.7 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1121, allocations: 4 kB / 392.7 MB, free: 3.043 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006291/0.1127, allocations: 0.5099 MB / 393.2 MB, free: 2.477 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.1127, allocations: 0 / 393.2 MB, free: 2.477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.1129, allocations: 39.98 kB / 393.2 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.1129, allocations: 4 kB / 393.2 MB, free: 2.434 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.1129, allocations: 3.984 kB / 393.2 MB, free: 2.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1129, allocations: 0 / 393.2 MB, free: 2.43 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1129, allocations: 0 / 393.2 MB, free: 2.43 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003595/0.1133, allocations: 309.7 kB / 393.5 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.207e-05/0.1134, allocations: 88.92 kB / 393.6 MB, free: 2.008 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.1134, allocations: 4 kB / 393.6 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.549e-05/0.1135, allocations: 4 kB / 393.6 MB, free: 2 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-05/0.1135, allocations: 7.984 kB / 393.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.1135, allocations: 11.94 kB / 393.6 MB, free: 1.98 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.821e-05/0.1136, allocations: 98.33 kB / 393.7 MB, free: 1.887 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1136, allocations: 4 kB / 393.7 MB, free: 1.883 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000302/0.1139, allocations: 44 kB / 393.8 MB, free: 1.84 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.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001297/0.114, allocations: 99.19 kB / 393.9 MB, free: 1.73 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002586/0.1143, allocations: 127.9 kB / 394 MB, free: 1.605 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.1143, allocations: 4 kB / 394 MB, free: 1.602 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.1145, allocations: 55.92 kB / 394.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.1147, allocations: 16.92 kB / 394.1 MB, free: 1.531 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009474/0.1156, allocations: 0.6422 MB / 394.7 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.116, allocations: 0.7204 MB / 395.4 MB, free: 116 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/0.116, allocations: 19.44 kB / 395.5 MB, free: 96 kB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.116, allocations: 0 / 395.5 MB, free: 96 kB / 286.1 MB Notification: Performance of Templates: time 0.003006/0.119, allocations: 1.702 MB / 397.2 MB, free: 14.39 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.PlantWithSampleHoldCalcHelperMain.o OMCppModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHoldCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHoldCalcHelperMain.o] Error 1