Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008106/0.0008107, allocations: 92.94 kB / 16.95 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008302/0.0008302, allocations: 179.8 kB / 17.84 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.577/1.577, allocations: 223.3 MB / 241.9 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002813, allocations: 4 kB / 301.4 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1445, allocations: 50.43 MB / 351.9 MB, free: 4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002833/0.1473, allocations: 2.298 MB / 354.2 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001751/0.1491, allocations: 1.038 MB / 355.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.1493, allocations: 4 kB / 355.2 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.1495, allocations: 59.59 kB / 355.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004705/0.15, allocations: 159.2 kB / 355.4 MB, free: 432 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.1504, allocations: 187.8 kB / 355.6 MB, free: 244 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005387/0.1509, allocations: 0.5611 MB / 356.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.1511, allocations: 98 kB / 356.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003175/0.1514, allocations: 255.1 kB / 356.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003499/0.1518, allocations: 303 kB / 356.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.131e-05/0.1519, allocations: 31.94 kB / 356.8 MB, free: 15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.1521, allocations: 103.9 kB / 356.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.1522, allocations: 115.6 kB / 357.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.1523, allocations: 93.52 kB / 357.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000437/0.1528, allocations: 467.1 kB / 357.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1528, allocations: 0 / 357.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1528, allocations: 0 / 357.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.1528, allocations: 3.938 kB / 357.6 MB, free: 14.23 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00134/0.1542, allocations: 0.7291 MB / 358.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1542, allocations: 8.031 kB / 358.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003079/0.1545, allocations: 75.38 kB / 358.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.155, allocations: 349.3 kB / 358.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.1551, allocations: 88.41 kB / 358.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.17e-05/0.1552, allocations: 47.98 kB / 358.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009816/0.1562, allocations: 0.5565 MB / 359.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.1563, allocations: 7.906 kB / 359.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.631e-05/0.1563, allocations: 16 kB / 359.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.1563, allocations: 15.95 kB / 359.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.1575, allocations: 0.648 MB / 360.1 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.1598, allocations: 1.314 MB / 361.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.1609, allocations: 0.5532 MB / 362 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005841/0.1615, allocations: 326.4 kB / 362.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.042e-05/0.1616, allocations: 12.55 kB / 362.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.1616, allocations: 39.25 kB / 362.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.164e-06/0.1616, allocations: 0 / 362.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.006365/0.168, allocations: 2.958 MB / 365.3 MB, free: 6.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.1681, allocations: 81.67 kB / 365.4 MB, free: 6.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004234/0.1685, allocations: 334.9 kB / 365.7 MB, free: 5.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.417e-05/0.1686, allocations: 41.7 kB / 365.8 MB, free: 5.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.1687, allocations: 161.6 kB / 365.9 MB, free: 5.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.1689, allocations: 228.8 kB / 366.2 MB, free: 5.312 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.1689, allocations: 12 kB / 366.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1691, allocations: 350.8 kB / 366.5 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005691/0.1697, allocations: 297.1 kB / 366.8 MB, free: 4.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006209/0.1703, allocations: 358.5 kB / 367.2 MB, free: 4.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000537/0.1708, allocations: 267.2 kB / 367.4 MB, free: 4.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.1709, allocations: 3.984 kB / 367.4 MB, free: 4.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00174/0.1726, allocations: 0.9123 MB / 368.3 MB, free: 3.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.1726, allocations: 4 kB / 368.3 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.1727, allocations: 7.891 kB / 368.3 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.1737, allocations: 479.5 kB / 368.8 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003545/0.1741, allocations: 87.89 kB / 368.9 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.1754, allocations: 1.083 MB / 370 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004438/0.1758, allocations: 79.97 kB / 370.1 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.087e-05/0.1759, allocations: 27.98 kB / 370.1 MB, free: 1.332 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002512/0.1761, allocations: 181.7 kB / 370.3 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.92e-05/0.1762, allocations: 47.44 kB / 370.3 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001851/0.1764, allocations: 63.77 kB / 370.4 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.1764, allocations: 8 kB / 370.4 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.1765, allocations: 0 / 370.4 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.1765, allocations: 3.984 kB / 370.4 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2789/0.4554, allocations: 1.778 MB / 372.2 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.4554, allocations: 0.5 kB / 372.2 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003964/0.4558, allocations: 83.77 kB / 372.2 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.457, allocations: 445.1 kB / 372.7 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.368e-05/0.4571, allocations: 21.25 kB / 372.7 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.4583, allocations: 1.037 MB / 373.7 MB, free: 24.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.4583, allocations: 1.344 kB / 373.7 MB, free: 24.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002793/0.4611, allocations: 1.316 MB / 375.1 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003032/0.4615, allocations: 183.6 kB / 375.2 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.4616, allocations: 23.56 kB / 375.3 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004265/0.462, allocations: 70.09 kB / 375.3 MB, free: 24.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.4623, allocations: 98.09 kB / 375.4 MB, free: 24.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.217e-05/0.4623, allocations: 27.09 kB / 375.4 MB, free: 24.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003274/0.4627, allocations: 241.3 kB / 375.7 MB, free: 24.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4627, allocations: 0 / 375.7 MB, free: 24.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000559/0.4632, allocations: 143.7 kB / 375.8 MB, free: 24.2 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002615/0.4635, allocations: 151.3 kB / 376 MB, free: 24.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.4652, allocations: 0.7158 MB / 376.7 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4652, allocations: 3.719 kB / 376.7 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008843/0.4661, allocations: 390.3 kB / 377.1 MB, free: 23.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000578/0.4667, allocations: 58.69 kB / 377.1 MB, free: 23.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002907/0.4696, allocations: 1.395 MB / 378.5 MB, free: 23.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.47, allocations: 0.8225 MB / 379.3 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.4702, allocations: 45.84 kB / 379.4 MB, free: 22.31 MB / 302.1 MB Notification: Performance of SimCode: time 1.673e-06/0.4702, allocations: 1.688 kB / 379.4 MB, free: 22.31 MB / 302.1 MB Notification: Performance of Templates: time 0.01454/0.4847, allocations: 7.153 MB / 386.5 MB, free: 20.1 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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 OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2CalcHelperMain.o OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2CalcHelperMain.o] Error 1