Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.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.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 92 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.001617/0.001617, allocations: 178.7 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.642/1.642, allocations: 223.3 MB / 241.9 MB, free: 364 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004046/0.0004046, allocations: 8 kB / 301.4 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1761/0.1765, allocations: 50.42 MB / 351.9 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004851/0.1815, allocations: 2.539 MB / 354.4 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00334/0.1849, allocations: 1.119 MB / 355.5 MB, free: 356 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003526/0.1853, allocations: 4 kB / 355.5 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005537/0.1859, allocations: 63.56 kB / 355.6 MB, free: 288 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002885/0.1862, allocations: 103.2 kB / 355.7 MB, free: 184 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.1873, allocations: 330.9 kB / 356 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009048/0.1883, allocations: 0.6748 MB / 356.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002521/0.1885, allocations: 81.47 kB / 356.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005545/0.1891, allocations: 319 kB / 357.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001948/0.1911, allocations: 1.431 MB / 358.5 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.1912, allocations: 36 kB / 358.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002785/0.1915, allocations: 79.94 kB / 358.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002821/0.1918, allocations: 195.4 kB / 358.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.192, allocations: 125.3 kB / 358.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008308/0.1928, allocations: 0.6081 MB / 359.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.085e-05/0.1928, allocations: 0 / 359.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1929, allocations: 8 kB / 359.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.1929, allocations: 0 / 359.6 MB, free: 12.3 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003548/0.1964, allocations: 1.297 MB / 360.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.338e-05/0.1965, allocations: 12.03 kB / 360.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002407/0.1968, allocations: 79.02 kB / 360.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007488/0.1975, allocations: 406.8 kB / 361.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.313e-05/0.1976, allocations: 29 kB / 361.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.1977, allocations: 35.91 kB / 361.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002087/0.1998, allocations: 1.169 MB / 362.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/0.1999, allocations: 3.984 kB / 362.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.934e-05/0.2, allocations: 19.98 kB / 362.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.2, allocations: 11.95 kB / 362.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002889/0.2029, allocations: 1.775 MB / 364.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005088/0.208, allocations: 2.545 MB / 366.9 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001836/0.2099, allocations: 0.9382 MB / 367.9 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001191/0.2111, allocations: 0.7319 MB / 368.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.056e-05/0.2112, allocations: 4 kB / 368.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001704/0.2129, allocations: 0.9123 MB / 369.5 MB, free: 2.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.995e-06/0.2129, allocations: 3.938 kB / 369.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.2863/0.4993, allocations: 6.026 MB / 375.5 MB, free: 25.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.4994, allocations: 86.67 kB / 375.6 MB, free: 24.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/0.5011, allocations: 0.9147 MB / 376.5 MB, free: 24.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001388/0.5013, allocations: 47.81 kB / 376.6 MB, free: 24.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/0.5016, allocations: 298.6 kB / 376.9 MB, free: 24.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.5018, allocations: 166.7 kB / 377 MB, free: 24.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.76e-05/0.5019, allocations: 10.55 kB / 377.1 MB, free: 24.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.502, allocations: 384.3 kB / 377.4 MB, free: 24.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.5036, allocations: 0.8626 MB / 378.3 MB, free: 24.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001837/0.5054, allocations: 0.9538 MB / 379.2 MB, free: 23.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.5071, allocations: 0.7818 MB / 380 MB, free: 23.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.5071, allocations: 3.938 kB / 380 MB, free: 23.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004806/0.5119, allocations: 2.487 MB / 382.5 MB, free: 23.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.5119, allocations: 7.25 kB / 382.5 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.512, allocations: 2.219 kB / 382.5 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002485/0.5144, allocations: 1.894 MB / 384.4 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005454/0.515, allocations: 124 kB / 384.5 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007495/0.5225, allocations: 6.45 MB / 391 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.5241, allocations: 303.4 kB / 391.3 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.5243, allocations: 26.86 kB / 391.3 MB, free: 17.3 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005457/0.5248, allocations: 247.9 kB / 391.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.525, allocations: 72.14 kB / 391.6 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002301/0.5252, allocations: 110.4 kB / 391.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.5253, allocations: 9.031 kB / 391.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.5253, allocations: 0 / 391.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.5253, allocations: 4.469 kB / 391.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003877/0.5292, allocations: 3.139 MB / 394.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.5292, allocations: 2.375 kB / 394.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000432/0.5296, allocations: 94.39 kB / 395 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.5312, allocations: 1.861 MB / 396.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.554e-05/0.5313, allocations: 27.95 kB / 396.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005607/0.5369, allocations: 6.155 MB / 403 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.5369, allocations: 3.953 kB / 403 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004028/0.541, allocations: 3.265 MB / 406.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003631/0.5414, allocations: 215.8 kB / 406.5 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.5415, allocations: 27.98 kB / 406.5 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.5429, allocations: 351.6 kB / 406.9 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001282/0.5442, allocations: 0.6389 MB / 407.5 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.303e-05/0.5443, allocations: 35.95 kB / 407.5 MB, free: 1.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006799/0.545, allocations: 0.667 MB / 408.2 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.545, allocations: 0 / 408.2 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009035/0.5459, allocations: 188 kB / 408.4 MB, free: 356 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003247/0.5462, allocations: 159.9 kB / 408.6 MB, free: 196 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003248/0.5495, allocations: 1.945 MB / 410.5 MB, free: 14.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5495, allocations: 0 / 410.5 MB, free: 14.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.5513, allocations: 1.062 MB / 411.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007272/0.552, allocations: 72.58 kB / 411.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005022/0.557, allocations: 2.339 MB / 414 MB, free: 10.7 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006541/0.5577, allocations: 0.9199 MB / 414.9 MB, free: 9.758 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.5579, allocations: 31.42 kB / 414.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of SimCode: time 1.272e-06/0.5579, allocations: 0 / 414.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of Templates: time 0.02148/0.5794, allocations: 13.62 MB / 428.5 MB, free: 12.11 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.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.Translational.Examples.FrictionCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Mechanics.Translational.Examples.FrictionCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Mechanics.Translational.Examples.FrictionCalcHelperMain.o] Error 1