Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009913/0.0009914, allocations: 94.77 kB / 16.95 MB, free: 5.66 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.001177/0.001178, allocations: 187.9 kB / 17.85 MB, free: 5.312 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.661/1.661, allocations: 223.2 MB / 241.8 MB, free: 148 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003172, allocations: 8 kB / 301.5 MB, free: 6.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1515, allocations: 50.42 MB / 351.9 MB, free: 4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002653/0.1542, allocations: 1.841 MB / 353.7 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.1556, allocations: 0.651 MB / 354.4 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1557, allocations: 0 / 354.4 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.1559, allocations: 27.78 kB / 354.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001498/0.1561, allocations: 51.61 kB / 354.4 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.1564, allocations: 79.84 kB / 354.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002749/0.1567, allocations: 231.5 kB / 354.7 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001704/0.1568, allocations: 52.2 kB / 354.8 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.157, allocations: 91.64 kB / 354.9 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.1572, allocations: 103.6 kB / 355 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.008e-05/0.1572, allocations: 12 kB / 355 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.1574, allocations: 59.89 kB / 355.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.289e-05/0.1575, allocations: 35.89 kB / 355.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.864e-05/0.1575, allocations: 65.58 kB / 355.2 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002382/0.1578, allocations: 191.8 kB / 355.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1578, allocations: 0 / 355.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1578, allocations: 0 / 355.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1578, allocations: 0 / 355.3 MB, free: 0.4922 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008041/0.1586, allocations: 498.9 kB / 355.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1587, allocations: 8.031 kB / 355.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.1587, allocations: 31.61 kB / 355.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.159, allocations: 238.6 kB / 356.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/0.1591, allocations: 16.42 kB / 356.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.181e-05/0.1591, allocations: 20 kB / 356.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004137/0.1595, allocations: 221.7 kB / 356.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.1595, allocations: 0 / 356.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.1596, allocations: 12 kB / 356.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.1596, allocations: 7.953 kB / 356.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003269/0.1599, allocations: 169 kB / 356.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.1611, allocations: 0.7759 MB / 357.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003489/0.1614, allocations: 130.5 kB / 357.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.1616, allocations: 76.77 kB / 357.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.1616, allocations: 4.312 kB / 357.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.1616, allocations: 38.5 kB / 357.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.372e-06/0.1616, allocations: 0 / 357.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.001949/0.1636, allocations: 1.019 MB / 358.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.1637, allocations: 55.41 kB / 358.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.1639, allocations: 206.6 kB / 358.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.1639, allocations: 33.7 kB / 358.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.164, allocations: 140.1 kB / 359 MB, free: 12.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.745e-05/0.1641, allocations: 67.09 kB / 359.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.386e-05/0.1641, allocations: 8 kB / 359.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1643, allocations: 330.8 kB / 359.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.1645, allocations: 75.95 kB / 359.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.1647, allocations: 120.1 kB / 359.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.1648, allocations: 86.08 kB / 359.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.1648, allocations: 0 / 359.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005056/0.1654, allocations: 296.7 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.1654, allocations: 4 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1654, allocations: 4 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002907/0.1657, allocations: 72.77 kB / 360 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.1659, allocations: 39.92 kB / 360.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005389/0.1664, allocations: 0.6187 MB / 360.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.1666, allocations: 31.92 kB / 360.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.1666, allocations: 4 kB / 360.7 MB, free: 10.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001806/0.1668, allocations: 141.8 kB / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.944e-05/0.1669, allocations: 23.83 kB / 360.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.739e-05/0.167, allocations: 21.88 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.167, allocations: 4 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.167, allocations: 0 / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.167, allocations: 3.984 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009502/0.168, allocations: 0.6003 MB / 361.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.168, allocations: 4 kB / 361.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.1681, allocations: 27.98 kB / 361.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001679/0.1683, allocations: 72.73 kB / 361.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.1683, allocations: 11.95 kB / 361.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004818/0.1688, allocations: 0.6149 MB / 362.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1688, allocations: 0 / 362.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006239/0.1695, allocations: 421.7 kB / 362.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.681e-05/0.1696, allocations: 108.9 kB / 362.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.1696, allocations: 4 kB / 362.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.1698, allocations: 27.97 kB / 362.8 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.41e-05/0.1699, allocations: 23.97 kB / 362.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.1699, allocations: 19.92 kB / 362.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001364/0.1701, allocations: 144.5 kB / 363 MB, free: 8.316 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1701, allocations: 3.938 kB / 363 MB, free: 8.312 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000373/0.1705, allocations: 71.95 kB / 363.1 MB, free: 8.242 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002027/0.1707, allocations: 123.9 kB / 363.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005277/0.1712, allocations: 210.7 kB / 363.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1712, allocations: 0 / 363.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.1715, allocations: 95.89 kB / 363.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.1719, allocations: 35.36 kB / 363.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.1734, allocations: 0.8573 MB / 364.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.1738, allocations: 0.7404 MB / 365.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.494e-05/0.1739, allocations: 15.44 kB / 365.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1739, allocations: 4 kB / 365.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of Templates: time 0.006477/0.1804, allocations: 3.405 MB / 368.5 MB, free: 2.695 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengagedCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengagedCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengagedCalcHelperMain.o] Error 1