Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 196.6 kB / 17.43 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008904/0.0008904, allocations: 95.62 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002221/0.0002221, allocations: 4 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1972, allocations: 51.41 MB / 412 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002402/0.1997, allocations: 2.656 MB / 414.7 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.2012, allocations: 1.541 MB / 416.2 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.2014, allocations: 4 kB / 416.2 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002782/0.2017, allocations: 91.45 kB / 416.3 MB, free: 21.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.2019, allocations: 106.1 kB / 416.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005787/0.2025, allocations: 367.4 kB / 416.8 MB, free: 21.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004302/0.2029, allocations: 0.7685 MB / 417.6 MB, free: 20.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.203, allocations: 85.41 kB / 417.6 MB, free: 20.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003461/0.2034, allocations: 331 kB / 418 MB, free: 19.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009437/0.2043, allocations: 1.456 MB / 419.4 MB, free: 18.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.357e-05/0.2044, allocations: 32 kB / 419.5 MB, free: 18.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.2046, allocations: 91.98 kB / 419.5 MB, free: 18.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001666/0.2048, allocations: 208.2 kB / 419.7 MB, free: 18.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.205, allocations: 347.8 kB / 420.1 MB, free: 17.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005174/0.2056, allocations: 0.8422 MB / 420.9 MB, free: 16.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2056, allocations: 0 / 420.9 MB, free: 16.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2056, allocations: 0 / 420.9 MB, free: 16.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.2056, allocations: 0 / 420.9 MB, free: 16.91 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002879/0.2085, allocations: 1.325 MB / 422.3 MB, free: 15.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.2085, allocations: 8.031 kB / 422.3 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003756/0.2089, allocations: 104 kB / 422.4 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.2093, allocations: 427.4 kB / 422.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.839e-05/0.2093, allocations: 33.38 kB / 422.8 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-05/0.2094, allocations: 40.28 kB / 422.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.2106, allocations: 0.6538 MB / 423.5 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.2106, allocations: 8 kB / 423.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.09e-05/0.2107, allocations: 16 kB / 423.5 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.2107, allocations: 11.94 kB / 423.5 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.2124, allocations: 0.7186 MB / 424.3 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002808/0.2152, allocations: 1.729 MB / 426 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.2163, allocations: 0.5086 MB / 426.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006867/0.217, allocations: 313.6 kB / 426.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.2171, allocations: 7.984 kB / 426.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000965/0.2181, allocations: 494.4 kB / 427.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 1.663e-06/0.2181, allocations: 4 kB / 427.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.007668/0.2257, allocations: 3.036 MB / 430.3 MB, free: 7.117 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.2258, allocations: 85.11 kB / 430.4 MB, free: 7.016 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006335/0.2264, allocations: 0.9063 MB / 431.3 MB, free: 6.102 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.848e-05/0.2265, allocations: 53.62 kB / 431.4 MB, free: 6.043 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.2266, allocations: 296.3 kB / 431.7 MB, free: 5.746 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.2268, allocations: 161.9 kB / 431.8 MB, free: 5.586 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.391e-05/0.2268, allocations: 19.98 kB / 431.8 MB, free: 5.566 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.149e-05/0.2269, allocations: 386.7 kB / 432.2 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007647/0.2277, allocations: 329.1 kB / 432.5 MB, free: 4.855 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007638/0.2284, allocations: 427 kB / 433 MB, free: 4.414 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.2296, allocations: 0.5414 MB / 433.5 MB, free: 3.844 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2296, allocations: 3.938 kB / 433.5 MB, free: 3.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002336/0.232, allocations: 1.026 MB / 434.5 MB, free: 2.797 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.232, allocations: 4 kB / 434.5 MB, free: 2.793 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.232, allocations: 7.984 kB / 434.5 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008546/0.2329, allocations: 0.5256 MB / 435.1 MB, free: 2.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004633/0.2334, allocations: 119.8 kB / 435.2 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005082/0.2385, allocations: 4.476 MB / 439.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/0.24, allocations: 299.8 kB / 440 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.476e-05/0.2401, allocations: 23.98 kB / 440 MB, free: 13.04 MB / 314.7 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004074/0.2405, allocations: 264 kB / 440.2 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.2407, allocations: 75.09 kB / 440.3 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.2408, allocations: 106.2 kB / 440.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2409, allocations: 7.938 kB / 440.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.2409, allocations: 0 / 440.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.2409, allocations: 3.984 kB / 440.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002852/0.2437, allocations: 1.438 MB / 441.9 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.2438, allocations: 4.062 kB / 441.9 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004793/0.2443, allocations: 103.9 kB / 442 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008771/0.2451, allocations: 0.4982 MB / 442.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.854e-05/0.2452, allocations: 19.97 kB / 442.5 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004992/0.2502, allocations: 4.17 MB / 446.7 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2502, allocations: 0 / 446.7 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003523/0.2538, allocations: 1.299 MB / 448 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000353/0.2542, allocations: 220.1 kB / 448.2 MB, free: 4.402 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.2543, allocations: 23.98 kB / 448.2 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001746/0.256, allocations: 347.6 kB / 448.5 MB, free: 4.039 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00135/0.2574, allocations: 0.5459 MB / 449.1 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.231e-05/0.2575, allocations: 27.97 kB / 449.1 MB, free: 3.465 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008594/0.2584, allocations: 0.6709 MB / 449.8 MB, free: 2.797 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.663e-06/0.2584, allocations: 0 / 449.8 MB, free: 2.797 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007308/0.2591, allocations: 183.9 kB / 450 MB, free: 2.617 MB / 314.7 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,5), (1,5), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008744/0.26, allocations: 450.9 kB / 450.4 MB, free: 2.277 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002203/0.2622, allocations: 0.9881 MB / 451.4 MB, free: 1.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.2622, allocations: 384 / 451.4 MB, free: 1.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001348/0.2636, allocations: 0.6689 MB / 452.1 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007608/0.2644, allocations: 83.2 kB / 452.1 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/0.2685, allocations: 2.271 MB / 454.4 MB, free: 14.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005107/0.269, allocations: 0.926 MB / 455.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000265/0.2693, allocations: 39.28 kB / 455.4 MB, free: 13.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.2694, allocations: 39.36 kB / 455.4 MB, free: 13.16 MB / 330.7 MB Notification: Performance of SimCode: time 7.22e-07/0.2694, allocations: 3.938 kB / 455.4 MB, free: 13.15 MB / 330.7 MB Notification: Performance of Templates: time 0.02141/0.2909, allocations: 13.78 MB / 469.2 MB, free: 15.41 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches