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.001223/0.001223, allocations: 118.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001423, allocations: 206 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 59.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2984, allocations: 50.55 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005192/0.3037, allocations: 3.099 MB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.306, allocations: 1.328 MB / 414.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.3062, allocations: 8 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004755/0.3067, allocations: 103.1 kB / 414.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.307, allocations: 126.9 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008791/0.3079, allocations: 422.6 kB / 415 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007993/0.3087, allocations: 0.8153 MB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.3089, allocations: 101.5 kB / 415.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004935/0.3094, allocations: 379 kB / 416.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001613/0.311, allocations: 1.471 MB / 417.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.3111, allocations: 71.94 kB / 417.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000249/0.3114, allocations: 136 kB / 417.9 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.3116, allocations: 231.8 kB / 418.2 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003045/0.3119, allocations: 350.1 kB / 418.5 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008785/0.3128, allocations: 0.9122 MB / 419.4 MB, free: 8.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.3128, allocations: 4 kB / 419.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3128, allocations: 0 / 419.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.3129, allocations: 4 kB / 419.4 MB, free: 8.043 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.003643/0.3165, allocations: 1.347 MB / 420.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.3166, allocations: 8.031 kB / 420.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004777/0.317, allocations: 104 kB / 420.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006501/0.3177, allocations: 435.5 kB / 421.3 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.3177, allocations: 29.38 kB / 421.3 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.002e-05/0.3178, allocations: 36.38 kB / 421.4 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.3193, allocations: 0.642 MB / 422 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.3193, allocations: 3.984 kB / 422 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-05/0.3194, allocations: 16 kB / 422 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.3194, allocations: 8 kB / 422.1 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.3213, allocations: 0.6898 MB / 422.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003561/0.3249, allocations: 1.658 MB / 424.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.3262, allocations: 496.9 kB / 424.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008173/0.327, allocations: 301.5 kB / 425.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.3e-05/0.3271, allocations: 8 kB / 425.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/0.3283, allocations: 490.6 kB / 425.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 1.954e-06/0.3283, allocations: 0 / 425.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.009981/0.3383, allocations: 2.8 MB / 428.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.3384, allocations: 89.11 kB / 428.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.3398, allocations: 0.918 MB / 429.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.34, allocations: 45.69 kB / 429.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003359/0.3403, allocations: 300.3 kB / 429.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002294/0.3406, allocations: 173.8 kB / 430 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003508/0.3409, allocations: 118.2 kB / 430.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.3411, allocations: 386.6 kB / 430.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.3424, allocations: 321.1 kB / 430.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.3437, allocations: 422.9 kB / 431.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002019/0.3457, allocations: 0.5069 MB / 431.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3457, allocations: 7.938 kB / 431.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00388/0.3496, allocations: 0.9949 MB / 432.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.3497, allocations: 7.938 kB / 432.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.3497, allocations: 4 kB / 432.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/0.3512, allocations: 0.5412 MB / 433.3 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007573/0.352, allocations: 111.9 kB / 433.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009624/0.3617, allocations: 4.747 MB / 438.1 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002754/0.3645, allocations: 231.6 kB / 438.3 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00018/0.3647, allocations: 20.25 kB / 438.4 MB, free: 4.273 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.0007919/0.3655, allocations: 259.9 kB / 438.6 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003356/0.3658, allocations: 79.08 kB / 438.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003683/0.3662, allocations: 102.2 kB / 438.8 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.3663, allocations: 8 kB / 438.8 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3663, allocations: 4 kB / 438.8 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.3663, allocations: 3.984 kB / 438.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006081/0.3724, allocations: 1.42 MB / 440.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.3724, allocations: 0 / 440.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009647/0.3734, allocations: 87.94 kB / 440.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00183/0.3753, allocations: 0.5099 MB / 440.8 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.3754, allocations: 19.97 kB / 440.8 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009982/0.3854, allocations: 4.359 MB / 445.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.3854, allocations: 3.938 kB / 445.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006834/0.3923, allocations: 1.272 MB / 446.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006806/0.393, allocations: 208.1 kB / 446.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.3933, allocations: 20 kB / 446.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003056/0.3963, allocations: 271.6 kB / 447 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002651/0.399, allocations: 0.5694 MB / 447.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/0.3992, allocations: 31.97 kB / 447.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001369/0.4006, allocations: 0.667 MB / 448.2 MB, free: 9.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4006, allocations: 0 / 448.2 MB, free: 9.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001499/0.4021, allocations: 180 kB / 448.4 MB, free: 9.77 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.001792/0.4039, allocations: 393.4 kB / 448.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00453/0.4085, allocations: 0.9677 MB / 449.8 MB, free: 8.512 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/0.4085, allocations: 4 kB / 449.8 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002476/0.411, allocations: 0.625 MB / 450.4 MB, free: 7.859 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.4122, allocations: 81.08 kB / 450.5 MB, free: 7.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00798/0.4203, allocations: 1.935 MB / 452.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008882/0.4212, allocations: 0.9259 MB / 453.3 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003621/0.4216, allocations: 51.41 kB / 453.4 MB, free: 4.801 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4216, allocations: 0 / 453.4 MB, free: 4.801 MB / 366.1 MB Notification: Performance of Templates: time 0.0366/0.4582, allocations: 14.24 MB / 467.6 MB, free: 6.555 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/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