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.0006847/0.000685, allocations: 92.16 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.000726/0.0007261, allocations: 175.8 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.183/1.183, allocations: 205.4 MB / 223.1 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03627/0.03627, allocations: 8.11 MB / 279.5 MB, free: 13.12 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.0004575/0.0004576, allocations: 19.12 kB / 339.5 MB, free: 26.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06763/0.0681, allocations: 49.28 MB / 388.8 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.001883/0.07003, allocations: 1.661 MB / 390.5 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004303/0.07048, allocations: 227.3 kB / 390.7 MB, free: 7.469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.19e-05/0.07057, allocations: 0 / 390.7 MB, free: 7.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.293e-05/0.07062, allocations: 19.86 kB / 390.7 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.822e-05/0.07073, allocations: 35.73 kB / 390.7 MB, free: 7.414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.07093, allocations: 43.89 kB / 390.8 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001711/0.07111, allocations: 183.2 kB / 391 MB, free: 7.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.0713, allocations: 78.61 kB / 391 MB, free: 7.117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.806e-05/0.07138, allocations: 63.78 kB / 391.1 MB, free: 7.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.375e-05/0.07148, allocations: 63.7 kB / 391.2 MB, free: 6.992 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.07151, allocations: 12 kB / 391.2 MB, free: 6.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.37e-05/0.07154, allocations: 11.94 kB / 391.2 MB, free: 6.969 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.375e-05/0.07158, allocations: 35.84 kB / 391.2 MB, free: 6.934 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.299e-05/0.07168, allocations: 109.3 kB / 391.3 MB, free: 6.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.07183, allocations: 151.8 kB / 391.5 MB, free: 6.672 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.07184, allocations: 0 / 391.5 MB, free: 6.672 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.07185, allocations: 0 / 391.5 MB, free: 6.672 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.07186, allocations: 0 / 391.5 MB, free: 6.672 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.0005337/0.0724, allocations: 431.4 kB / 391.9 MB, free: 6.195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.07244, allocations: 12.03 kB / 391.9 MB, free: 6.184 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.072e-05/0.0725, allocations: 20.75 kB / 391.9 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.07263, allocations: 188.2 kB / 392.1 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.07265, allocations: 12.75 kB / 392.1 MB, free: 5.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.881e-05/0.0727, allocations: 24.28 kB / 392.2 MB, free: 5.906 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.07298, allocations: 172.9 kB / 392.3 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.073, allocations: 4.188 kB / 392.3 MB, free: 5.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.07302, allocations: 7.938 kB / 392.3 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.07304, allocations: 8 kB / 392.3 MB, free: 5.715 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.07321, allocations: 107.7 kB / 392.4 MB, free: 5.609 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000972/0.07419, allocations: 0.7065 MB / 393.2 MB, free: 4.832 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003034/0.07451, allocations: 223.6 kB / 393.4 MB, free: 4.586 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.07469, allocations: 100.8 kB / 393.5 MB, free: 4.484 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.07471, allocations: 3.938 kB / 393.5 MB, free: 4.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001701/0.07489, allocations: 91.66 kB / 393.6 MB, free: 4.379 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.483e-06/0.0749, allocations: 0 / 393.6 MB, free: 4.379 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007983/0.0757, allocations: 0.5117 MB / 394.1 MB, free: 3.816 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.07575, allocations: 55.41 kB / 394.1 MB, free: 3.75 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.07585, allocations: 122.1 kB / 394.3 MB, free: 3.617 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.07588, allocations: 33.7 kB / 394.3 MB, free: 3.578 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.07596, allocations: 143.9 kB / 394.4 MB, free: 3.434 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.105e-05/0.07601, allocations: 59.11 kB / 394.5 MB, free: 3.375 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/0.07605, allocations: 25.7 kB / 394.5 MB, free: 3.344 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.514e-05/0.07615, allocations: 322.8 kB / 394.8 MB, free: 3.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.393e-05/0.07623, allocations: 43.98 kB / 394.9 MB, free: 2.977 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.07635, allocations: 115.8 kB / 395 MB, free: 2.84 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.07655, allocations: 158.8 kB / 395.1 MB, free: 2.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.07656, allocations: 0 / 395.1 MB, free: 2.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002706/0.07683, allocations: 205.2 kB / 395.3 MB, free: 2.453 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.07685, allocations: 4.219 kB / 395.3 MB, free: 2.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.07687, allocations: 8 kB / 395.3 MB, free: 2.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.07689, allocations: 4 kB / 395.3 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.07706, allocations: 55.91 kB / 395.4 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.07707, allocations: 0 / 395.4 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.257e-05/0.07714, allocations: 11.94 kB / 395.4 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.07716, allocations: 8 kB / 395.4 MB, free: 2.363 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 9.952e-05/0.07726, allocations: 129.8 kB / 395.5 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.909e-05/0.07729, allocations: 15.75 kB / 395.6 MB, free: 2.211 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.373e-05/0.07734, allocations: 24.84 kB / 395.6 MB, free: 2.184 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.07735, allocations: 3.984 kB / 395.6 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.07736, allocations: 0 / 395.6 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.07737, allocations: 4 kB / 395.6 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000558/0.07793, allocations: 0.5022 MB / 396.1 MB, free: 1.617 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.07794, allocations: 4 kB / 396.1 MB, free: 1.613 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001752/0.07813, allocations: 39.92 kB / 396.1 MB, free: 1.574 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.07814, allocations: 0 / 396.1 MB, free: 1.574 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.07816, allocations: 11.98 kB / 396.2 MB, free: 1.562 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.07817, allocations: 0 / 396.2 MB, free: 1.562 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.07817, allocations: 4 kB / 396.2 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003114/0.07849, allocations: 301.6 kB / 396.5 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.803e-05/0.07854, allocations: 89.05 kB / 396.5 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.07856, allocations: 4 kB / 396.5 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.834e-05/0.07864, allocations: 4 kB / 396.5 MB, free: 1.137 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.07867, allocations: 15.98 kB / 396.6 MB, free: 1.121 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.07869, allocations: 7.938 kB / 396.6 MB, free: 1.113 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.306e-05/0.07875, allocations: 91.27 kB / 396.7 MB, free: 1.023 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07875, allocations: 3.938 kB / 396.7 MB, free: 1.02 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002549/0.07901, allocations: 40 kB / 396.7 MB, free: 0.9805 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 9.147e-05/0.07911, allocations: 99.25 kB / 396.8 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002064/0.07932, allocations: 140 kB / 396.9 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.07933, allocations: 0 / 396.9 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.562e-05/0.07942, allocations: 63.83 kB / 397 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.07965, allocations: 12.09 kB / 397 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009012/0.08056, allocations: 0.7261 MB / 397.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002505/0.08082, allocations: 0.7165 MB / 398.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.803e-05/0.08087, allocations: 19.44 kB / 398.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.08087, allocations: 0 / 398.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of Templates: time 0.002636/0.08351, allocations: 1.71 MB / 400.2 MB, free: 13.43 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