Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001342/0.001342, allocations: 183.9 kB / 18.04 MB, free: 3.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.627/1.627, allocations: 205.4 MB / 224.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007699/0.0007699, allocations: 91.91 kB / 272.5 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003175/0.0003176, allocations: 8 kB / 329.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1934, allocations: 47.58 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08685/0.2803, allocations: 80.83 MB / 457.8 MB, free: 15.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.2806, allocations: 75.95 kB / 457.9 MB, free: 15.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04065/0.3212, allocations: 13.73 MB / 471.7 MB, free: 1.875 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3213, allocations: 0 / 471.7 MB, free: 1.875 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.734e-05/0.3213, allocations: 12 kB / 471.7 MB, free: 1.863 MB / 346.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.002885/0.3242, allocations: 1.165 MB / 472.8 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3243, allocations: 12.03 kB / 472.8 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.3245, allocations: 72.09 kB / 472.9 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007818/0.3253, allocations: 0.5191 MB / 473.4 MB, free: 0 / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.883e-05/0.3254, allocations: 29.42 kB / 473.5 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.3255, allocations: 40.28 kB / 473.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/0.3276, allocations: 0.9586 MB / 474.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.3276, allocations: 4.172 kB / 474.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.581e-05/0.3277, allocations: 19.94 kB / 474.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.3277, allocations: 8 kB / 474.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002588/0.3303, allocations: 1.205 MB / 475.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005113/0.3354, allocations: 2.417 MB / 478.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.3371, allocations: 0.7545 MB / 478.9 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.3383, allocations: 0.5834 MB / 479.4 MB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.661e-05/0.3384, allocations: 11.92 kB / 479.5 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001612/0.34, allocations: 0.8305 MB / 480.3 MB, free: 9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 3.366e-06/0.34, allocations: 0 / 480.3 MB, free: 9 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.01218/0.3522, allocations: 5.134 MB / 485.4 MB, free: 3.707 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.3523, allocations: 81.11 kB / 485.5 MB, free: 3.609 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007534/0.3531, allocations: 0.6018 MB / 486.1 MB, free: 3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.3532, allocations: 49.69 kB / 486.2 MB, free: 2.945 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.3534, allocations: 284.4 kB / 486.4 MB, free: 2.664 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.3536, allocations: 185.7 kB / 486.6 MB, free: 2.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-05/0.3537, allocations: 12 kB / 486.6 MB, free: 2.469 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.3539, allocations: 382.8 kB / 487 MB, free: 2.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.3552, allocations: 0.5869 MB / 487.6 MB, free: 1.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.3564, allocations: 0.6863 MB / 488.3 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/0.3586, allocations: 1.072 MB / 489.3 MB, free: 15.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.3586, allocations: 0 / 489.3 MB, free: 15.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003921/0.3626, allocations: 1.853 MB / 491.2 MB, free: 13.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3626, allocations: 7.938 kB / 491.2 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.339e-05/0.3626, allocations: 8 kB / 491.2 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005361/0.368, allocations: 4.188 MB / 495.4 MB, free: 9.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005121/0.3685, allocations: 119.8 kB / 495.5 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007639/0.3762, allocations: 5.403 MB / 0.4892 GB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.3778, allocations: 303.6 kB / 0.4895 GB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001851/0.378, allocations: 104 kB / 0.4896 GB, free: 3.375 MB / 378.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): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005296/0.3785, allocations: 252 kB / 0.4898 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.3787, allocations: 67.16 kB / 0.4899 GB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003363/0.3821, allocations: 1.579 MB / 0.4914 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.3821, allocations: 8 kB / 0.4914 GB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.3821, allocations: 0 / 0.4914 GB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.3821, allocations: 3.984 kB / 0.4914 GB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1697/0.5519, allocations: 2.615 MB / 0.494 GB, free: 111.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.5519, allocations: 1.281 kB / 0.494 GB, free: 111.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005907/0.5525, allocations: 94 kB / 0.4941 GB, free: 111.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005313/0.5579, allocations: 4.207 MB / 0.4982 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001428/0.558, allocations: 37.16 kB / 0.4982 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00602/0.5641, allocations: 5.118 MB / 0.5032 GB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.5641, allocations: 0 / 0.5032 GB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004613/0.5687, allocations: 2.454 MB / 0.5056 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005532/0.5693, allocations: 312.2 kB / 0.5059 GB, free: 107.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.5695, allocations: 22.34 kB / 0.5059 GB, free: 107.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/0.5709, allocations: 309.1 kB / 0.5062 GB, free: 107.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00125/0.5722, allocations: 0.6582 MB / 0.5069 GB, free: 107.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.5723, allocations: 90.8 kB / 0.507 GB, free: 107.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005306/0.5729, allocations: 0.5161 MB / 0.5075 GB, free: 107.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5729, allocations: 4 kB / 0.5075 GB, free: 107.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008691/0.5738, allocations: 235.9 kB / 0.5077 GB, free: 107.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 32 * 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.0003557/0.5741, allocations: 154 kB / 0.5078 GB, free: 107.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002729/0.5769, allocations: 1.52 MB / 0.5093 GB, free: 106.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5769, allocations: 7.594 kB / 0.5093 GB, free: 106.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001675/0.5786, allocations: 0.9224 MB / 0.5102 GB, free: 106 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007656/0.5794, allocations: 75.84 kB / 0.5103 GB, free: 105.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003989/0.5834, allocations: 2.218 MB / 0.5125 GB, free: 104.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003509/0.5837, allocations: 0.922 MB / 0.5134 GB, free: 103.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002403/0.584, allocations: 39.28 kB / 0.5134 GB, free: 103.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.5841, allocations: 35.42 kB / 0.5134 GB, free: 103.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.653e-06/0.5841, allocations: 4 kB / 0.5134 GB, free: 103.5 MB / 378.7 MB Notification: Performance of Templates: time 0.02578/0.6099, allocations: 20.73 MB / 0.5337 GB, free: 82.69 MB / 378.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/jenkins1/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