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.001069/0.00107, allocations: 118.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001036/0.001036, allocations: 202 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 55.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2846, allocations: 50.55 MB / 409.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004203/0.2888, allocations: 3.103 MB / 412.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.291, allocations: 1.34 MB / 413.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.2912, allocations: 4 kB / 413.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005008/0.2918, allocations: 103.2 kB / 413.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.292, allocations: 122.9 kB / 413.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009892/0.293, allocations: 414.9 kB / 414.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007635/0.2938, allocations: 0.8192 MB / 415.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.294, allocations: 101.5 kB / 415.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005144/0.2945, allocations: 379 kB / 415.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001715/0.2963, allocations: 1.463 MB / 417.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001325/0.2964, allocations: 75.94 kB / 417.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003007/0.2967, allocations: 136 kB / 417.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002422/0.297, allocations: 231.8 kB / 417.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003044/0.2973, allocations: 350.1 kB / 417.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009908/0.2983, allocations: 0.9124 MB / 418.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.407e-06/0.2983, allocations: 3.984 kB / 418.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2983, allocations: 0 / 418.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.2983, allocations: 0 / 418.8 MB, free: 8.223 MB / 334.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.003645/0.302, allocations: 1.351 MB / 420.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.302, allocations: 12.03 kB / 420.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005235/0.3026, allocations: 99.97 kB / 420.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006964/0.3033, allocations: 435.5 kB / 420.6 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.269e-05/0.3033, allocations: 29.38 kB / 420.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.952e-05/0.3034, allocations: 36.38 kB / 420.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.3049, allocations: 0.6343 MB / 421.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.3049, allocations: 4 kB / 421.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.399e-05/0.305, allocations: 20 kB / 421.4 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.305, allocations: 8 kB / 421.4 MB, free: 5.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001852/0.3069, allocations: 0.6937 MB / 422.1 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00343/0.3103, allocations: 1.654 MB / 423.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.3116, allocations: 0.4891 MB / 424.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007562/0.3124, allocations: 297.6 kB / 424.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.552e-05/0.3125, allocations: 15.98 kB / 424.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00103/0.3135, allocations: 490.3 kB / 425 MB, free: 1.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.535e-06/0.3135, allocations: 0 / 425 MB, free: 1.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.008437/0.322, allocations: 2.801 MB / 427.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.322, allocations: 81.11 kB / 427.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009356/0.323, allocations: 0.9219 MB / 428.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.45e-05/0.3231, allocations: 49.69 kB / 428.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/0.3233, allocations: 304.3 kB / 429.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.3235, allocations: 165.8 kB / 429.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/0.3237, allocations: 122.2 kB / 429.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.3239, allocations: 382.7 kB / 429.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008611/0.3248, allocations: 321.1 kB / 430.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008799/0.3257, allocations: 418.9 kB / 430.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.3271, allocations: 0.5071 MB / 431 MB, free: 11.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3271, allocations: 3.938 kB / 431 MB, free: 11.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002564/0.3296, allocations: 0.991 MB / 432 MB, free: 10.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3297, allocations: 11.94 kB / 432 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.3297, allocations: 0 / 432 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.3307, allocations: 0.549 MB / 432.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005051/0.3313, allocations: 111.9 kB / 432.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005818/0.3371, allocations: 4.735 MB / 437.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.3384, allocations: 235.7 kB / 437.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.678e-05/0.3385, allocations: 27.98 kB / 437.7 MB, free: 4.449 MB / 350.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.0004077/0.3389, allocations: 256 kB / 437.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.3391, allocations: 71.09 kB / 438 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.3393, allocations: 106.2 kB / 438.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3393, allocations: 7.938 kB / 438.1 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3393, allocations: 192 / 438.1 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.3393, allocations: 11.98 kB / 438.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.3421, allocations: 1.42 MB / 439.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3421, allocations: 0 / 439.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004779/0.3426, allocations: 91.92 kB / 439.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008733/0.3435, allocations: 0.5099 MB / 440.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.254e-05/0.3436, allocations: 23.95 kB / 440.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005006/0.3486, allocations: 4.359 MB / 444.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.3486, allocations: 7.875 kB / 444.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003236/0.3518, allocations: 1.264 MB / 445.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002968/0.3521, allocations: 212.1 kB / 446 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.3523, allocations: 24 kB / 446 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/0.3538, allocations: 263.6 kB / 446.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001332/0.3552, allocations: 0.5694 MB / 446.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.21e-05/0.3552, allocations: 31.95 kB / 446.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006293/0.3559, allocations: 0.6786 MB / 447.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3559, allocations: 0 / 447.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007386/0.3566, allocations: 176 kB / 447.7 MB, free: 9.941 MB / 366.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.0008973/0.3575, allocations: 394.4 kB / 448.1 MB, free: 9.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002263/0.3598, allocations: 0.9664 MB / 449.1 MB, free: 8.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.3598, allocations: 4.062 kB / 449.1 MB, free: 8.676 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.3612, allocations: 0.6612 MB / 449.8 MB, free: 7.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000585/0.3618, allocations: 70.89 kB / 449.8 MB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003927/0.3657, allocations: 1.887 MB / 451.7 MB, free: 5.988 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004959/0.3662, allocations: 0.9336 MB / 452.6 MB, free: 5.031 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.3664, allocations: 47.25 kB / 452.7 MB, free: 4.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.3666, allocations: 43.42 kB / 452.7 MB, free: 4.945 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3666, allocations: 0 / 452.7 MB, free: 4.945 MB / 366.1 MB Notification: Performance of Templates: time 0.0239/0.3905, allocations: 15.87 MB / 468.6 MB, free: 5.098 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches