Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001797/0.001797, allocations: 179.2 kB / 17.36 MB, free: 4.449 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 205.6 MB / 223.7 MB, free: 8.953 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007708/0.0007712, allocations: 82.44 kB / 272.1 MB, free: 8.152 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002533/0.0002534, allocations: 8 kB / 329 MB, free: 15.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2441, allocations: 47.57 MB / 376.6 MB, free: 45.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003442/0.2476, allocations: 2.538 MB / 379.1 MB, free: 43.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002668/0.2503, allocations: 1.333 MB / 380.5 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004042/0.2507, allocations: 3.438 kB / 380.5 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004498/0.2512, allocations: 58.84 kB / 380.5 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003795/0.2516, allocations: 105.3 kB / 380.6 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.2526, allocations: 367.7 kB / 381 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009847/0.2536, allocations: 0.7589 MB / 381.7 MB, free: 41.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002356/0.2539, allocations: 87.11 kB / 381.8 MB, free: 41.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007436/0.2546, allocations: 318.8 kB / 382.1 MB, free: 41.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.2564, allocations: 1.33 MB / 383.5 MB, free: 40.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002793/0.2567, allocations: 34.78 kB / 383.5 MB, free: 40.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003494/0.2571, allocations: 76.34 kB / 383.6 MB, free: 40.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002708/0.2574, allocations: 206.5 kB / 383.8 MB, free: 40.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004429/0.2578, allocations: 335.8 kB / 384.1 MB, free: 40.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009616/0.2588, allocations: 0.8129 MB / 384.9 MB, free: 39.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2588, allocations: 1.188 kB / 384.9 MB, free: 39.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2588, allocations: 0 / 384.9 MB, free: 39.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.303e-05/0.2589, allocations: 4 kB / 384.9 MB, free: 39.76 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003618/0.2625, allocations: 1.305 MB / 386.2 MB, free: 38.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.2625, allocations: 12.02 kB / 386.2 MB, free: 38.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002364/0.2628, allocations: 76 kB / 386.3 MB, free: 38.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004997/0.2633, allocations: 419.5 kB / 386.7 MB, free: 38.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.2633, allocations: 29.38 kB / 386.8 MB, free: 38.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.164e-05/0.2634, allocations: 40.28 kB / 386.8 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.265, allocations: 1.177 MB / 388 MB, free: 36.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.265, allocations: 0 / 388 MB, free: 36.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.464e-05/0.2651, allocations: 16 kB / 388 MB, free: 36.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2651, allocations: 15.94 kB / 388 MB, free: 36.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.2672, allocations: 1.772 MB / 389.8 MB, free: 35.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003513/0.2707, allocations: 2.562 MB / 392.3 MB, free: 32.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.272, allocations: 0.9382 MB / 393.3 MB, free: 31.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008666/0.2729, allocations: 0.7318 MB / 394 MB, free: 30.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.41e-05/0.273, allocations: 4 kB / 394 MB, free: 30.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.2742, allocations: 0.9123 MB / 394.9 MB, free: 29.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 2.424e-06/0.2742, allocations: 0 / 394.9 MB, free: 29.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.009008/0.2832, allocations: 6.042 MB / 401 MB, free: 23.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.2833, allocations: 85.11 kB / 401 MB, free: 23.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.2845, allocations: 0.9141 MB / 402 MB, free: 22.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.34e-05/0.2846, allocations: 49.62 kB / 402 MB, free: 22.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.2848, allocations: 300.3 kB / 402.3 MB, free: 22.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.285, allocations: 161.9 kB / 402.5 MB, free: 22.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.436e-05/0.285, allocations: 12 kB / 402.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2851, allocations: 382.8 kB / 402.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009548/0.2861, allocations: 0.8603 MB / 403.7 MB, free: 20.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009874/0.2871, allocations: 0.9558 MB / 404.7 MB, free: 19.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.2887, allocations: 1.486 MB / 406.2 MB, free: 18.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.2887, allocations: 4 kB / 406.2 MB, free: 18.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002853/0.2916, allocations: 2.492 MB / 408.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.2916, allocations: 8 kB / 408.7 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.2916, allocations: 8.031 kB / 408.7 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001514/0.2931, allocations: 1.892 MB / 410.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004666/0.2936, allocations: 123.8 kB / 410.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005768/0.2994, allocations: 6.451 MB / 417.1 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.3007, allocations: 299.7 kB / 417.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.772e-05/0.3008, allocations: 24 kB / 417.4 MB, free: 6.797 MB / 298.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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004257/0.3012, allocations: 255.9 kB / 417.7 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.673e-05/0.3013, allocations: 75.17 kB / 417.8 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001434/0.3015, allocations: 98.17 kB / 417.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3015, allocations: 8 kB / 417.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.3015, allocations: 0 / 417.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3015, allocations: 0 / 417.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.3046, allocations: 3.138 MB / 421 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3047, allocations: 4 kB / 421 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004259/0.3051, allocations: 95.94 kB / 421.1 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001357/0.3065, allocations: 1.865 MB / 423 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/0.3065, allocations: 23.97 kB / 423 MB, free: 1.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006326/0.3129, allocations: 6.149 MB / 429.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3129, allocations: 0 / 429.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004982/0.3179, allocations: 3.282 MB / 432.4 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/0.3183, allocations: 204.2 kB / 432.6 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.3184, allocations: 23.94 kB / 432.6 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/0.32, allocations: 351.6 kB / 433 MB, free: 6.805 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001408/0.3214, allocations: 0.5498 MB / 433.5 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-05/0.3215, allocations: 35.95 kB / 433.6 MB, free: 6.219 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007328/0.3223, allocations: 0.6708 MB / 434.2 MB, free: 5.551 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3223, allocations: 0 / 434.2 MB, free: 5.551 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008095/0.3231, allocations: 180 kB / 434.4 MB, free: 5.375 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003106/0.3234, allocations: 169.3 kB / 434.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003079/0.3265, allocations: 1.949 MB / 436.5 MB, free: 3.223 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.3265, allocations: 3.938 kB / 436.5 MB, free: 3.219 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.3282, allocations: 1.091 MB / 437.6 MB, free: 2.102 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006644/0.3289, allocations: 67.84 kB / 437.7 MB, free: 2.039 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004269/0.3331, allocations: 2.367 MB / 440.1 MB, free: 15.63 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005062/0.3337, allocations: 0.9219 MB / 441 MB, free: 14.69 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002366/0.3339, allocations: 39.28 kB / 441 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.334, allocations: 35.41 kB / 441.1 MB, free: 14.61 MB / 330.7 MB Notification: Performance of SimCode: time 6.52e-07/0.334, allocations: 0 / 441.1 MB, free: 14.61 MB / 330.7 MB Notification: Performance of Templates: time 0.03112/0.3652, allocations: 21.72 MB / 462.8 MB, free: 8.875 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches