Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00085/0.0008501, allocations: 92.75 kB / 16.95 MB, free: 5.953 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.001054/0.001054, allocations: 177.9 kB / 17.84 MB, free: 5.617 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.632/1.632, allocations: 223.2 MB / 241.8 MB, free: 316 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.0003323, allocations: 7.984 kB / 301.4 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1438, allocations: 50.42 MB / 351.9 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003831/0.1477, allocations: 2.381 MB / 354.2 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002416/0.1502, allocations: 0.8535 MB / 355.1 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004163/0.1506, allocations: 4 kB / 355.1 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003346/0.151, allocations: 39.64 kB / 355.1 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004194/0.1514, allocations: 103.3 kB / 355.2 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007317/0.1522, allocations: 155.7 kB / 355.4 MB, free: 484 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007762/0.1529, allocations: 0.5033 MB / 355.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.1532, allocations: 78.05 kB / 356 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003463/0.1535, allocations: 215.3 kB / 356.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003228/0.1539, allocations: 243.1 kB / 356.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.612e-05/0.1539, allocations: 27.94 kB / 356.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.1541, allocations: 67.95 kB / 356.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.1543, allocations: 87.7 kB / 356.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.565e-05/0.1544, allocations: 89.52 kB / 356.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004586/0.1548, allocations: 375.2 kB / 357.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1549, allocations: 4 kB / 357.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1549, allocations: 4 kB / 357.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.1549, allocations: 0 / 357.1 MB, free: 14.79 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001309/0.1562, allocations: 0.6863 MB / 357.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1563, allocations: 8.031 kB / 357.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.327e-05/0.1564, allocations: 47.48 kB / 357.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/0.1567, allocations: 289.5 kB / 358.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.004e-05/0.1568, allocations: 29 kB / 358.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.809e-05/0.1569, allocations: 35.89 kB / 358.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008854/0.1578, allocations: 446.3 kB / 358.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.1578, allocations: 7.938 kB / 358.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.568e-05/0.1579, allocations: 19.98 kB / 358.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1579, allocations: 8 kB / 358.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009475/0.1588, allocations: 475.6 kB / 359.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.1612, allocations: 1.289 MB / 360.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008279/0.162, allocations: 376.1 kB / 360.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005088/0.1626, allocations: 245.5 kB / 361 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.397e-05/0.1626, allocations: 12.31 kB / 361 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.1627, allocations: 46.88 kB / 361 MB, free: 10.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 3.426e-06/0.1627, allocations: 0 / 361 MB, free: 10.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005552/0.1682, allocations: 2.372 MB / 363.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.1683, allocations: 59.84 kB / 363.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.1687, allocations: 250.5 kB / 363.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.471e-05/0.1687, allocations: 41.69 kB / 363.8 MB, free: 7.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.1689, allocations: 168.7 kB / 363.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.1691, allocations: 161.7 kB / 364.1 MB, free: 7.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.1691, allocations: 12 kB / 364.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002324/0.1694, allocations: 350.8 kB / 364.4 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004863/0.1699, allocations: 241 kB / 364.7 MB, free: 6.824 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005184/0.1704, allocations: 311.2 kB / 365 MB, free: 6.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004379/0.1708, allocations: 198.1 kB / 365.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1709, allocations: 0 / 365.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001569/0.1724, allocations: 0.7666 MB / 365.9 MB, free: 5.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.1725, allocations: 4 kB / 365.9 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.1725, allocations: 0 / 365.9 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.1737, allocations: 0.5567 MB / 366.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.174, allocations: 75.91 kB / 366.6 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003216/0.1772, allocations: 3.459 MB / 370 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005285/0.1777, allocations: 104 kB / 370.1 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.436e-05/0.1778, allocations: 19.98 kB / 370.1 MB, free: 1.012 MB / 302.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: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002793/0.1781, allocations: 165.6 kB / 370.3 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-05/0.1782, allocations: 35.62 kB / 370.3 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/0.1797, allocations: 0.7365 MB / 371.1 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.1798, allocations: 4 kB / 371.1 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1798, allocations: 0 / 371.1 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.1798, allocations: 0 / 371.1 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3143/0.4941, allocations: 1.274 MB / 372.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.4941, allocations: 1.609 kB / 372.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003114/0.4944, allocations: 58.94 kB / 372.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.4957, allocations: 0.533 MB / 373 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.699e-05/0.4958, allocations: 18.98 kB / 373 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002797/0.4986, allocations: 3.422 MB / 376.4 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4986, allocations: 0 / 376.4 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.5009, allocations: 1.048 MB / 377.4 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002999/0.5012, allocations: 161.9 kB / 377.6 MB, free: 21.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.23e-05/0.5013, allocations: 15.78 kB / 377.6 MB, free: 21.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005241/0.5019, allocations: 103.6 kB / 377.7 MB, free: 21.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003522/0.5022, allocations: 107.9 kB / 377.8 MB, free: 21.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-05/0.5023, allocations: 22.06 kB / 377.8 MB, free: 21.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002477/0.5026, allocations: 176.1 kB / 378 MB, free: 21.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5026, allocations: 1.375 kB / 378 MB, free: 21.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005934/0.5032, allocations: 126.4 kB / 378.1 MB, free: 21.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002733/0.5034, allocations: 143 kB / 378.3 MB, free: 21.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.5052, allocations: 0.8102 MB / 379.1 MB, free: 20.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.5053, allocations: 3.969 kB / 379.1 MB, free: 20.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009213/0.5062, allocations: 0.548 MB / 379.6 MB, free: 20.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.5067, allocations: 59.09 kB / 379.7 MB, free: 20.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.509, allocations: 1.199 MB / 380.9 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.5095, allocations: 0.7974 MB / 381.7 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.5096, allocations: 32.05 kB / 381.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.5096, allocations: 0 / 381.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of Templates: time 0.01687/0.5265, allocations: 8.837 MB / 390.6 MB, free: 15.85 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShiftCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShiftCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShiftCalcHelperMain.o] Error 1