Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009387/0.000939, allocations: 100.4 kB / 15.71 MB, free: 452 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.001499/0.001499, allocations: 173.8 kB / 16.58 MB, free: 6.422 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.003/2.003, allocations: 205.4 MB / 222.7 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03885/0.03885, allocations: 8.113 MB / 279.1 MB, free: 13.2 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.0007681/0.0007681, allocations: 12 kB / 338.9 MB, free: 27.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1449, allocations: 49.28 MB / 388.2 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002553/0.1475, allocations: 1.56 MB / 389.7 MB, free: 8.117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004507/0.148, allocations: 143.5 kB / 389.9 MB, free: 7.977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.447e-05/0.1481, allocations: 4 kB / 389.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.653e-05/0.1482, allocations: 15.86 kB / 389.9 MB, free: 7.957 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.1483, allocations: 35.73 kB / 389.9 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.1486, allocations: 31.97 kB / 390 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002491/0.1488, allocations: 163.2 kB / 390.1 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000271/0.1491, allocations: 69.84 kB / 390.2 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.168e-05/0.1492, allocations: 51.84 kB / 390.2 MB, free: 7.609 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.1493, allocations: 59.72 kB / 390.3 MB, free: 7.551 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.1494, allocations: 8 kB / 390.3 MB, free: 7.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.741e-05/0.1494, allocations: 8 kB / 390.3 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.971e-05/0.1495, allocations: 31.89 kB / 390.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.396e-05/0.1495, allocations: 53.64 kB / 390.4 MB, free: 7.445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002099/0.1497, allocations: 143.8 kB / 390.5 MB, free: 7.305 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.1498, allocations: 3.938 kB / 390.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1498, allocations: 0 / 390.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.1498, allocations: 0 / 390.6 MB, free: 7.301 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.000791/0.1506, allocations: 430.8 kB / 391 MB, free: 6.832 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.112e-05/0.1507, allocations: 8.031 kB / 391 MB, free: 6.824 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.532e-05/0.1507, allocations: 15.81 kB / 391 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.151, allocations: 178.9 kB / 391.2 MB, free: 6.594 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.151, allocations: 19.95 kB / 391.2 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.1511, allocations: 16 kB / 391.2 MB, free: 6.559 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003347/0.1514, allocations: 157.6 kB / 391.4 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.1514, allocations: 0 / 391.4 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.1515, allocations: 8 kB / 391.4 MB, free: 6.391 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.1515, allocations: 4 kB / 391.4 MB, free: 6.387 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.1517, allocations: 103.9 kB / 391.5 MB, free: 6.285 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.153, allocations: 0.687 MB / 392.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00046/0.1534, allocations: 223.6 kB / 392.4 MB, free: 5.285 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.1537, allocations: 100.8 kB / 392.5 MB, free: 5.184 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.1537, allocations: 0 / 392.5 MB, free: 5.184 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.1537, allocations: 30.56 kB / 392.5 MB, free: 5.145 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 5.53e-06/0.1537, allocations: 3.984 kB / 392.5 MB, free: 5.141 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009066/0.1546, allocations: 493.4 kB / 393 MB, free: 4.613 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.1547, allocations: 55.41 kB / 393 MB, free: 4.547 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.1548, allocations: 125.7 kB / 393.2 MB, free: 4.414 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.1549, allocations: 25.7 kB / 393.2 MB, free: 4.383 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.155, allocations: 132.1 kB / 393.3 MB, free: 4.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.16e-05/0.1551, allocations: 55.2 kB / 393.4 MB, free: 4.195 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.035e-06/0.1551, allocations: 4 kB / 393.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1553, allocations: 322.8 kB / 393.7 MB, free: 3.867 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.1554, allocations: 39.98 kB / 393.7 MB, free: 3.828 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.1555, allocations: 90.38 kB / 393.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.169e-05/0.1556, allocations: 52 kB / 393.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.1556, allocations: 0 / 393.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003787/0.156, allocations: 185.3 kB / 394.1 MB, free: 3.484 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.156, allocations: 8 kB / 394.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.156, allocations: 0 / 394.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.1561, allocations: 4 kB / 394.1 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.1562, allocations: 47.92 kB / 394.1 MB, free: 3.426 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.1563, allocations: 4 kB / 394.1 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.827e-05/0.1563, allocations: 7.953 kB / 394.1 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.1563, allocations: 8 kB / 394.1 MB, free: 3.406 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001509/0.1565, allocations: 138.4 kB / 394.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.1565, allocations: 7.906 kB / 394.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.105e-05/0.1566, allocations: 16.78 kB / 394.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1566, allocations: 4 kB / 394.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1566, allocations: 0 / 394.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1566, allocations: 0 / 394.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006711/0.1573, allocations: 498.3 kB / 394.8 MB, free: 2.691 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1573, allocations: 0 / 394.8 MB, free: 2.691 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.1575, allocations: 35.97 kB / 394.8 MB, free: 2.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1575, allocations: 4 kB / 394.8 MB, free: 2.652 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.1575, allocations: 11.95 kB / 394.8 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1576, allocations: 3.938 kB / 394.8 MB, free: 2.637 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1576, allocations: 0 / 394.8 MB, free: 2.637 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004039/0.158, allocations: 286.6 kB / 395.1 MB, free: 2.344 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-05/0.158, allocations: 85.02 kB / 395.2 MB, free: 2.242 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.1581, allocations: 3.953 kB / 395.2 MB, free: 2.238 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.466e-05/0.1581, allocations: 4 kB / 395.2 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.024e-05/0.1582, allocations: 8.031 kB / 395.2 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-06/0.1582, allocations: 4 kB / 395.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.184e-05/0.1583, allocations: 95.27 kB / 395.3 MB, free: 2.129 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1583, allocations: 0 / 395.3 MB, free: 2.129 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.1585, allocations: 36 kB / 395.3 MB, free: 2.094 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.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.000124/0.1587, allocations: 103.2 kB / 395.4 MB, free: 1.98 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002243/0.1589, allocations: 115.9 kB / 395.6 MB, free: 1.867 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1589, allocations: 0 / 395.6 MB, free: 1.867 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.144e-05/0.159, allocations: 47.92 kB / 395.6 MB, free: 1.82 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.1592, allocations: 12 kB / 395.6 MB, free: 1.809 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.1607, allocations: 0.6811 MB / 396.3 MB, free: 1.094 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005622/0.1612, allocations: 0.7165 MB / 397 MB, free: 360 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.756e-05/0.1613, allocations: 15.44 kB / 397 MB, free: 344 kB / 286.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1613, allocations: 7.938 kB / 397 MB, free: 336 kB / 286.1 MB Notification: Performance of Templates: time 0.003694/0.165, allocations: 1.52 MB / 398.6 MB, free: 14.8 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.PlantCalcHelperMain.o OMCppModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantCalcHelperMain.o] Error 1