Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.00105/0.00105, allocations: 107 kB / 16.62 MB, free: 6.805 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.001131/0.001131, allocations: 193.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009653/0.0009654, allocations: 47.73 kB / 300.1 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09197/0.09295, allocations: 49.45 MB / 349.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003754/0.09675, allocations: 3.033 MB / 352.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.09848, allocations: 1.157 MB / 353.8 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.09863, allocations: 11.88 kB / 353.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003815/0.09904, allocations: 63.61 kB / 353.8 MB, free: 460 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.09924, allocations: 95.17 kB / 353.9 MB, free: 364 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008358/0.1001, allocations: 372.5 kB / 354.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006788/0.1008, allocations: 0.8074 MB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.101, allocations: 93.59 kB / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003961/0.1014, allocations: 359 kB / 355.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.1027, allocations: 1.355 MB / 356.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.885e-05/0.1028, allocations: 64 kB / 357 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.103, allocations: 123.9 kB / 357.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001938/0.1032, allocations: 228.2 kB / 357.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002705/0.1035, allocations: 358 kB / 357.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000851/0.1043, allocations: 0.8568 MB / 358.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1044, allocations: 3.938 kB / 358.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1044, allocations: 4 kB / 358.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1044, allocations: 4 kB / 358.5 MB, free: 11.75 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003476/0.1079, allocations: 1.312 MB / 359.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.1079, allocations: 12.03 kB / 359.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.1081, allocations: 83.98 kB / 359.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004994/0.1086, allocations: 415.5 kB / 360.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.333e-05/0.1086, allocations: 29.38 kB / 360.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.1088, allocations: 40.28 kB / 360.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001831/0.1106, allocations: 1.161 MB / 361.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.1106, allocations: 3.984 kB / 361.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.157e-05/0.1107, allocations: 16 kB / 361.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.1107, allocations: 12 kB / 361.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002566/0.1133, allocations: 1.744 MB / 363.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004052/0.1174, allocations: 2.486 MB / 365.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.119, allocations: 0.9069 MB / 366.7 MB, free: 3.336 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.1203, allocations: 0.7162 MB / 367.4 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.476e-05/0.1203, allocations: 7.984 kB / 367.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001573/0.1219, allocations: 0.8967 MB / 368.3 MB, free: 1.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.775e-06/0.1219, allocations: 0 / 368.3 MB, free: 1.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.1495/0.2715, allocations: 5.783 MB / 374.1 MB, free: 26.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.2715, allocations: 86.95 kB / 374.2 MB, free: 26.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.2726, allocations: 0.917 MB / 375.1 MB, free: 25.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.201e-05/0.2727, allocations: 48.11 kB / 375.2 MB, free: 25.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.2728, allocations: 290.2 kB / 375.5 MB, free: 25.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.2729, allocations: 163.7 kB / 375.6 MB, free: 25.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.2732, allocations: 124.2 kB / 375.7 MB, free: 25.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.193e-05/0.2733, allocations: 379.3 kB / 376.1 MB, free: 24.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.2745, allocations: 0.8463 MB / 377 MB, free: 24.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.2757, allocations: 0.9427 MB / 377.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001981/0.2777, allocations: 1.466 MB / 379.4 MB, free: 24.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2777, allocations: 1.344 kB / 379.4 MB, free: 24.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00361/0.2813, allocations: 2.483 MB / 381.9 MB, free: 23.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.2814, allocations: 6.234 kB / 381.9 MB, free: 23.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.2814, allocations: 2.188 kB / 381.9 MB, free: 23.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001828/0.2832, allocations: 1.906 MB / 383.8 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/0.2837, allocations: 115.7 kB / 383.9 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005961/0.2897, allocations: 6.704 MB / 390.6 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.291, allocations: 231.5 kB / 390.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-05/0.2911, allocations: 26.61 kB / 390.8 MB, free: 17.18 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003296/0.2915, allocations: 256.4 kB / 391.1 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.2916, allocations: 71.09 kB / 391.2 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001766/0.2918, allocations: 107 kB / 391.3 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.2918, allocations: 8.969 kB / 391.3 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.2918, allocations: 0 / 391.3 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.2918, allocations: 2.109 kB / 391.3 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003215/0.295, allocations: 3.1 MB / 394.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.2951, allocations: 0 / 394.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/0.2955, allocations: 83.92 kB / 394.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00139/0.2969, allocations: 1.872 MB / 396.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.474e-05/0.297, allocations: 19.97 kB / 396.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005463/0.3025, allocations: 6.324 MB / 402.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3025, allocations: 0 / 402.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003922/0.3064, allocations: 3.234 MB / 405.9 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002718/0.3067, allocations: 212.1 kB / 406.1 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.3069, allocations: 20 kB / 406.1 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/0.3084, allocations: 263.6 kB / 406.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001294/0.3097, allocations: 0.5695 MB / 407 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-05/0.3098, allocations: 23.97 kB / 407 MB, free: 1.059 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005396/0.3104, allocations: 0.6748 MB / 407.7 MB, free: 396 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3104, allocations: 0 / 407.7 MB, free: 396 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008003/0.3112, allocations: 184 kB / 407.8 MB, free: 212 kB / 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002565/0.3115, allocations: 166 kB / 408 MB, free: 44 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003155/0.3146, allocations: 1.936 MB / 409.9 MB, free: 14.08 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3147, allocations: 0 / 409.9 MB, free: 14.08 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001778/0.3164, allocations: 1.083 MB / 411 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006335/0.3171, allocations: 72.14 kB / 411.1 MB, free: 12.92 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004187/0.3213, allocations: 2.175 MB / 413.3 MB, free: 10.72 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000497/0.3218, allocations: 0.9143 MB / 414.2 MB, free: 9.781 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002357/0.322, allocations: 47.27 kB / 414.2 MB, free: 9.734 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.3222, allocations: 47.25 kB / 414.3 MB, free: 9.691 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3222, allocations: 0 / 414.3 MB, free: 9.691 MB / 318.1 MB Notification: Performance of Templates: time 0.03384/0.356, allocations: 23.46 MB / 437.7 MB, free: 2.273 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches