Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008167/0.0008167, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008741/0.0008742, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.7 MB / 247.5 MB, free: 9.668 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000241/0.0002411, allocations: 8 kB / 308.4 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09881/0.09907, allocations: 51.52 MB / 359.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003706/0.1028, allocations: 2.777 MB / 362.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002573/0.1054, allocations: 1.317 MB / 364 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003531/0.1058, allocations: 7.938 kB / 364 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004935/0.1063, allocations: 75.53 kB / 364.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003638/0.1067, allocations: 115.2 kB / 364.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009228/0.1076, allocations: 374.4 kB / 364.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000837/0.1085, allocations: 0.7762 MB / 365.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001867/0.1087, allocations: 89.41 kB / 365.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.1092, allocations: 338.9 kB / 365.8 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001425/0.1106, allocations: 1.452 MB / 367.2 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.233e-05/0.1107, allocations: 36 kB / 367.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.111, allocations: 99.97 kB / 367.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.1112, allocations: 208.1 kB / 367.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002981/0.1115, allocations: 347.8 kB / 367.9 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005802/0.1121, allocations: 0.6355 MB / 368.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1121, allocations: 7.938 kB / 368.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1121, allocations: 0 / 368.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.1121, allocations: 0 / 368.5 MB, free: 4.434 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003528/0.1157, allocations: 1.329 MB / 369.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.1157, allocations: 8.031 kB / 369.9 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000467/0.1162, allocations: 104 kB / 370 MB, free: 2.945 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005075/0.1167, allocations: 431.4 kB / 370.4 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/0.1168, allocations: 29.38 kB / 370.4 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.636e-05/0.1169, allocations: 40.36 kB / 370.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.1183, allocations: 0.6577 MB / 371.1 MB, free: 1.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.1183, allocations: 0 / 371.1 MB, free: 1.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.507e-05/0.1184, allocations: 16 kB / 371.1 MB, free: 1.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.1184, allocations: 12 kB / 371.1 MB, free: 1.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/0.1203, allocations: 0.725 MB / 371.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1824/0.3028, allocations: 1.735 MB / 373.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.3043, allocations: 0.5144 MB / 374.1 MB, free: 18.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009132/0.3053, allocations: 315.9 kB / 374.4 MB, free: 18.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.574e-05/0.3053, allocations: 13.89 kB / 374.4 MB, free: 18.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001415/0.3068, allocations: 0.49 MB / 374.9 MB, free: 18.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 3.887e-06/0.3068, allocations: 0 / 374.9 MB, free: 18.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.009817/0.3166, allocations: 3.058 MB / 378 MB, free: 17.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.3167, allocations: 85.83 kB / 378.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.3178, allocations: 0.9178 MB / 379 MB, free: 16.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.3179, allocations: 47.72 kB / 379 MB, free: 16.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.3182, allocations: 304 kB / 379.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.3183, allocations: 164.9 kB / 379.5 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.3184, allocations: 57.36 kB / 379.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3186, allocations: 384.3 kB / 379.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009392/0.3195, allocations: 337.5 kB / 380.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.3205, allocations: 437.8 kB / 380.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.322, allocations: 0.5367 MB / 381.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.3221, allocations: 4 kB / 381.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002848/0.3249, allocations: 1.032 MB / 382.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.3249, allocations: 5.875 kB / 382.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.325, allocations: 2.281 kB / 382.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.3261, allocations: 0.5435 MB / 382.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005406/0.3266, allocations: 124.1 kB / 382.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005549/0.3322, allocations: 4.487 MB / 387.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.3338, allocations: 304.5 kB / 387.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.782e-05/0.3339, allocations: 27.69 kB / 387.7 MB, free: 10.99 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,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * 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.0004066/0.3343, allocations: 252.5 kB / 388 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.3345, allocations: 78.78 kB / 388.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002224/0.3347, allocations: 109.4 kB / 388.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.3347, allocations: 5.312 kB / 388.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.3347, allocations: 0.7031 kB / 388.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3348, allocations: 3.031 kB / 388.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003259/0.338, allocations: 1.451 MB / 389.6 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.338, allocations: 0.9688 kB / 389.6 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004844/0.3385, allocations: 98.8 kB / 389.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009664/0.3395, allocations: 0.511 MB / 390.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.549e-05/0.3396, allocations: 26.91 kB / 390.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00462/0.3442, allocations: 4.19 MB / 394.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3443, allocations: 4.5 kB / 394.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003445/0.3477, allocations: 1.309 MB / 395.8 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003512/0.3481, allocations: 217.2 kB / 396 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.3482, allocations: 27.06 kB / 396 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/0.35, allocations: 348.9 kB / 396.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001261/0.3513, allocations: 0.5479 MB / 396.9 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.952e-05/0.3514, allocations: 35.27 kB / 396.9 MB, free: 4.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007235/0.3522, allocations: 0.6701 MB / 397.6 MB, free: 4.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3522, allocations: 7.938 kB / 397.6 MB, free: 4.656 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009264/0.3531, allocations: 179.2 kB / 397.8 MB, free: 4.637 MB / 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 (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.001003/0.3541, allocations: 382.8 kB / 398.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002407/0.3565, allocations: 0.9974 MB / 399.1 MB, free: 3.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.3565, allocations: 3.844 kB / 399.1 MB, free: 3.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.3577, allocations: 0.6429 MB / 399.8 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007657/0.3585, allocations: 83.8 kB / 399.9 MB, free: 3.359 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004187/0.3627, allocations: 2.334 MB / 402.2 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.3631, allocations: 0.9253 MB / 403.1 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.3634, allocations: 44.19 kB / 403.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3634, allocations: 0 / 403.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of Templates: time 0.02028/0.3837, allocations: 14.03 MB / 417.2 MB, free: 3.004 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches