Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,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.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,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.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 97.36 kB / 16.96 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.001855/0.001855, allocations: 179.5 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.574/1.574, allocations: 223.2 MB / 241.9 MB, free: 324 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002805/0.0002806, allocations: 4 kB / 301.4 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1472, allocations: 50.42 MB / 351.9 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003049/0.1503, allocations: 1.799 MB / 353.7 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.1516, allocations: 0.6587 MB / 354.3 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.1518, allocations: 7.938 kB / 354.3 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002077/0.152, allocations: 19.84 kB / 354.4 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002551/0.1523, allocations: 67.53 kB / 354.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.1526, allocations: 71.91 kB / 354.5 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003045/0.1529, allocations: 251.4 kB / 354.7 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.1531, allocations: 40.56 kB / 354.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.1533, allocations: 103.6 kB / 354.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.1535, allocations: 107.5 kB / 355 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.169e-05/0.1535, allocations: 8 kB / 355 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.1537, allocations: 63.94 kB / 355.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.479e-05/0.1538, allocations: 43.83 kB / 355.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.911e-05/0.1538, allocations: 61.58 kB / 355.2 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.1541, allocations: 187.8 kB / 355.3 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.1541, allocations: 0 / 355.3 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1541, allocations: 0 / 355.3 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1541, allocations: 4 kB / 355.3 MB, free: 0.5234 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001006/0.1551, allocations: 0.5392 MB / 355.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1552, allocations: 8.031 kB / 355.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.729e-05/0.1553, allocations: 27.67 kB / 355.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.1556, allocations: 230.7 kB / 356.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.174e-05/0.1556, allocations: 16 kB / 356.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.652e-05/0.1557, allocations: 20 kB / 356.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.1562, allocations: 243.1 kB / 356.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.1562, allocations: 0 / 356.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.1562, allocations: 12 kB / 356.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1563, allocations: 4 kB / 356.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000486/0.1567, allocations: 211.8 kB / 356.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.1578, allocations: 0.6836 MB / 357.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005608/0.1584, allocations: 210.5 kB / 357.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.1587, allocations: 104.8 kB / 357.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.1587, allocations: 4 kB / 357.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000399/0.1591, allocations: 175.5 kB / 357.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.814e-06/0.1591, allocations: 0 / 357.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002602/0.1617, allocations: 1.206 MB / 359 MB, free: 12.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.1618, allocations: 55.41 kB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/0.162, allocations: 191.8 kB / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.1621, allocations: 37.64 kB / 359.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.1622, allocations: 132.3 kB / 359.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.501e-05/0.1623, allocations: 94.73 kB / 359.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.709e-05/0.1623, allocations: 4 kB / 359.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.1625, allocations: 342.8 kB / 359.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.1628, allocations: 108.3 kB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003064/0.1631, allocations: 156.2 kB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.1634, allocations: 135.1 kB / 360.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1634, allocations: 0 / 360.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008527/0.1643, allocations: 414.2 kB / 360.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.55e-05/0.1643, allocations: 29.7 kB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.1644, allocations: 8.047 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000255/0.1646, allocations: 64.83 kB / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/0.1649, allocations: 55.91 kB / 360.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005753/0.1654, allocations: 0.6264 MB / 361.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.1657, allocations: 40 kB / 361.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.1658, allocations: 12 kB / 361.5 MB, free: 9.977 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: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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.0001605/0.1659, allocations: 142 kB / 361.6 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.604e-05/0.166, allocations: 23.81 kB / 361.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.883e-05/0.1661, allocations: 29.81 kB / 361.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1661, allocations: 0 / 361.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.1661, allocations: 7.953 kB / 361.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.1661, allocations: 7.984 kB / 361.7 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.1672, allocations: 0.6868 MB / 362.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.1672, allocations: 0 / 362.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002007/0.1675, allocations: 43.97 kB / 362.4 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001728/0.1676, allocations: 80.78 kB / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.1677, allocations: 0 / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000485/0.1682, allocations: 0.615 MB / 363.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1682, allocations: 3.984 kB / 363.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000945/0.1691, allocations: 0.5271 MB / 363.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.1692, allocations: 112.8 kB / 363.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.127e-05/0.1693, allocations: 8 kB / 363.8 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.1695, allocations: 39.97 kB / 363.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.1696, allocations: 31.94 kB / 363.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.1697, allocations: 15.98 kB / 363.8 MB, free: 7.477 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001202/0.1698, allocations: 139.2 kB / 364 MB, free: 7.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1698, allocations: 0 / 364 MB, free: 7.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003619/0.1702, allocations: 72 kB / 364 MB, free: 7.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002216/0.1704, allocations: 121.9 kB / 364.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007981/0.1712, allocations: 335.2 kB / 364.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1712, allocations: 0 / 364.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003463/0.1716, allocations: 151.9 kB / 364.6 MB, free: 6.652 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000408/0.172, allocations: 39.36 kB / 364.7 MB, free: 6.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.1734, allocations: 0.8333 MB / 365.5 MB, free: 5.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.1738, allocations: 0.7442 MB / 366.3 MB, free: 4.988 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.774e-05/0.1739, allocations: 19.44 kB / 366.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1739, allocations: 0 / 366.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of Templates: time 0.006727/0.1807, allocations: 3.759 MB / 370 MB, free: 1.219 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutchCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchCalcHelperMain.o] Error 1