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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 107.3 kB / 18.35 MB, free: 4.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 192 kB / 19.29 MB, free: 3.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 51.92 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1084, allocations: 46.62 MB / 328.7 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005717/0.1141, allocations: 2.98 MB / 331.7 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002711/0.1168, allocations: 1.209 MB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001986/0.1171, allocations: 11.94 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004217/0.1175, allocations: 75.3 kB / 333 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002891/0.1178, allocations: 110.9 kB / 333.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.119, allocations: 415.2 kB / 333.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.12, allocations: 0.8075 MB / 334.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002485/0.1203, allocations: 97.55 kB / 334.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000585/0.1209, allocations: 359 kB / 334.8 MB, free: 13.69 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001982/0.1229, allocations: 1.342 MB / 336.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001565/0.123, allocations: 68 kB / 336.2 MB, free: 12.28 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002909/0.1233, allocations: 115.9 kB / 336.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002918/0.1236, allocations: 227.8 kB / 336.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000435/0.1241, allocations: 350.1 kB / 336.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.1252, allocations: 0.8683 MB / 337.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1253, allocations: 0 / 337.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1253, allocations: 0 / 337.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.1253, allocations: 3.984 kB / 337.7 MB, free: 10.72 MB / 286.1 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.004753/0.13, allocations: 1.332 MB / 339.1 MB, free: 9.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1301, allocations: 8.031 kB / 339.1 MB, free: 9.332 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.1303, allocations: 80 kB / 339.1 MB, free: 9.254 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000787/0.1311, allocations: 427.5 kB / 339.6 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.257e-05/0.1312, allocations: 29.38 kB / 339.6 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.1313, allocations: 36.38 kB / 339.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002625/0.134, allocations: 1.158 MB / 340.8 MB, free: 7.559 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.134, allocations: 0 / 340.8 MB, free: 7.559 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.622e-05/0.1341, allocations: 19.98 kB / 340.8 MB, free: 7.539 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.1341, allocations: 12 kB / 340.8 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003903/0.1381, allocations: 1.74 MB / 342.5 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005884/0.144, allocations: 2.482 MB / 345 MB, free: 3.227 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002366/0.1463, allocations: 0.903 MB / 345.9 MB, free: 2.305 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/0.148, allocations: 0.7084 MB / 346.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-05/0.1481, allocations: 19.97 kB / 346.7 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002075/0.1502, allocations: 0.9005 MB / 347.6 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.625e-06/0.1502, allocations: 4 kB / 347.6 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01539/0.1656, allocations: 5.773 MB / 353.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.1657, allocations: 89.05 kB / 353.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/0.1676, allocations: 0.918 MB / 354.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/0.1677, allocations: 45.7 kB / 354.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003238/0.168, allocations: 292.3 kB / 354.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002098/0.1683, allocations: 169.8 kB / 354.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003551/0.1686, allocations: 122.2 kB / 355 MB, free: 9.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002214/0.1689, allocations: 378.8 kB / 355.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001857/0.1707, allocations: 0.8447 MB / 356.2 MB, free: 7.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001969/0.1727, allocations: 0.9402 MB / 357.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003086/0.1758, allocations: 1.461 MB / 358.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1758, allocations: 0 / 358.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005568/0.1814, allocations: 2.49 MB / 361.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.1814, allocations: 7.281 kB / 361.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.1815, allocations: 12.03 kB / 361.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0021/0.1836, allocations: 1.892 MB / 363 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005338/0.1841, allocations: 119.8 kB / 363.1 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007463/0.1916, allocations: 6.707 MB / 369.8 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.193, allocations: 231.7 kB / 370 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.091e-05/0.1931, allocations: 20 kB / 370 MB, free: 9.551 MB / 318.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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003709/0.1935, allocations: 260 kB / 370.3 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.1936, allocations: 67.25 kB / 370.4 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002009/0.1938, allocations: 102.2 kB / 370.5 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.1938, allocations: 4 kB / 370.5 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1938, allocations: 4 kB / 370.5 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1938, allocations: 3.984 kB / 370.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003937/0.1978, allocations: 3.095 MB / 373.6 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1978, allocations: 4.062 kB / 373.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004977/0.1983, allocations: 79.88 kB / 373.7 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001818/0.2001, allocations: 1.869 MB / 375.5 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.249e-05/0.2002, allocations: 19.97 kB / 375.5 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1409/0.3411, allocations: 6.327 MB / 381.9 MB, free: 54.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3411, allocations: 6.188 kB / 381.9 MB, free: 54.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004876/0.346, allocations: 3.226 MB / 385.1 MB, free: 53.81 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003529/0.3464, allocations: 211.4 kB / 385.3 MB, free: 53.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.3465, allocations: 22.44 kB / 385.3 MB, free: 53.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/0.3482, allocations: 270.3 kB / 385.6 MB, free: 53.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001387/0.3496, allocations: 0.5689 MB / 386.2 MB, free: 53.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.963e-05/0.3497, allocations: 25.88 kB / 386.2 MB, free: 53.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006824/0.3504, allocations: 0.6749 MB / 386.9 MB, free: 53.28 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3504, allocations: 1.531 kB / 386.9 MB, free: 53.28 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007877/0.3512, allocations: 187.8 kB / 387 MB, free: 53.26 MB / 318.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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000263/0.3515, allocations: 158.5 kB / 387.2 MB, free: 53.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00286/0.3544, allocations: 1.922 MB / 389.1 MB, free: 52.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3544, allocations: 1.062 kB / 389.1 MB, free: 52.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.356, allocations: 1.081 MB / 390.2 MB, free: 52.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006224/0.3567, allocations: 71.2 kB / 390.3 MB, free: 52.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003881/0.3606, allocations: 1.967 MB / 392.2 MB, free: 51.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005034/0.3611, allocations: 0.9224 MB / 393.2 MB, free: 50.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002211/0.3613, allocations: 43.38 kB / 393.2 MB, free: 50.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.3615, allocations: 43.36 kB / 393.2 MB, free: 50.61 MB / 318.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3615, allocations: 0 / 393.2 MB, free: 50.61 MB / 318.1 MB Notification: Performance of Templates: time 0.02701/0.3885, allocations: 24.29 MB / 417.5 MB, free: 28.26 MB / 318.1 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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches