Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001552/0.001552, allocations: 118.8 kB / 17.83 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001764/0.001764, allocations: 201.2 kB / 18.78 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.537/1.537, allocations: 230.4 MB / 250 MB, free: 9.059 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002797/0.002797, allocations: 71.81 kB / 367.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2928, allocations: 53.31 MB / 420.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00468/0.2975, allocations: 3.126 MB / 423.8 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.2999, allocations: 1.34 MB / 425.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.3, allocations: 4 kB / 425.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004774/0.3005, allocations: 103.1 kB / 425.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002365/0.3008, allocations: 126.9 kB / 425.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000884/0.3016, allocations: 414 kB / 425.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008291/0.3025, allocations: 0.8192 MB / 426.6 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.3027, allocations: 73.55 kB / 426.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005302/0.3032, allocations: 379 kB / 427 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001624/0.3048, allocations: 1.475 MB / 428.5 MB, free: 496 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.3049, allocations: 68 kB / 428.5 MB, free: 428 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002686/0.3052, allocations: 132 kB / 428.7 MB, free: 296 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.3055, allocations: 235.7 kB / 428.9 MB, free: 60 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003482/0.3058, allocations: 354.2 kB / 429.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.3068, allocations: 0.9104 MB / 430.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3068, allocations: 0 / 430.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3068, allocations: 3.938 kB / 430.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.3068, allocations: 0 / 430.2 MB, free: 14.79 MB / 350.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.003548/0.3104, allocations: 1.378 MB / 431.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3104, allocations: 8.031 kB / 431.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004985/0.3109, allocations: 108.4 kB / 431.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000637/0.3115, allocations: 448 kB / 432.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.061e-05/0.3116, allocations: 29.38 kB / 432.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.803e-05/0.3117, allocations: 40.36 kB / 432.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.3132, allocations: 0.6343 MB / 432.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.3132, allocations: 3.953 kB / 432.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.86e-05/0.3133, allocations: 19.94 kB / 432.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.3133, allocations: 8 kB / 432.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.3153, allocations: 0.6976 MB / 433.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003662/0.3189, allocations: 1.659 MB / 435.2 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.3203, allocations: 476.8 kB / 435.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000831/0.3211, allocations: 289.8 kB / 435.9 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.85e-05/0.3212, allocations: 4 kB / 435.9 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.3224, allocations: 0.4904 MB / 436.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.993e-06/0.3224, allocations: 0 / 436.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008895/0.3313, allocations: 2.805 MB / 439.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.3314, allocations: 81.11 kB / 439.3 MB, free: 5.238 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.3324, allocations: 0.9181 MB / 440.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.436e-05/0.3325, allocations: 49.69 kB / 440.3 MB, free: 4.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000262/0.3328, allocations: 312.7 kB / 440.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.3329, allocations: 170.7 kB / 440.8 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.3332, allocations: 118.3 kB / 440.9 MB, free: 3.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.3334, allocations: 390.6 kB / 441.2 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009011/0.3343, allocations: 321.1 kB / 441.6 MB, free: 2.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009552/0.3352, allocations: 418.9 kB / 442 MB, free: 2.512 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.3366, allocations: 0.5114 MB / 442.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3366, allocations: 0 / 442.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002828/0.3394, allocations: 0.9835 MB / 443.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.3395, allocations: 7.938 kB / 443.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.3395, allocations: 8.031 kB / 443.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/0.3406, allocations: 0.5451 MB / 444 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.3412, allocations: 111.9 kB / 444.1 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006446/0.3476, allocations: 4.751 MB / 448.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.349, allocations: 227.8 kB / 449.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.107e-05/0.3491, allocations: 23.98 kB / 449.1 MB, free: 11 MB / 366.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.0004124/0.3495, allocations: 256 kB / 449.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.3496, allocations: 79.47 kB / 449.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/0.3498, allocations: 102.2 kB / 449.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.3498, allocations: 8 kB / 449.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3498, allocations: 0 / 449.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.3498, allocations: 3.984 kB / 449.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/0.3529, allocations: 1.412 MB / 451 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3529, allocations: 0 / 451 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004874/0.3534, allocations: 87.94 kB / 451.1 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.3544, allocations: 0.5101 MB / 451.6 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.015e-05/0.3545, allocations: 23.95 kB / 451.6 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005745/0.3602, allocations: 4.364 MB / 456 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.3602, allocations: 11.86 kB / 456 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003431/0.3636, allocations: 1.257 MB / 457.2 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003583/0.364, allocations: 216.5 kB / 457.4 MB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.3641, allocations: 20 kB / 457.5 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.3656, allocations: 271.6 kB / 457.7 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001429/0.3671, allocations: 0.5655 MB / 458.3 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.613e-05/0.3672, allocations: 27.95 kB / 458.3 MB, free: 1.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007411/0.3679, allocations: 0.667 MB / 459 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3679, allocations: 4 kB / 459 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008112/0.3687, allocations: 184 kB / 459.2 MB, free: 0.5 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.001549/0.3703, allocations: 405.2 kB / 459.6 MB, free: 236 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.3726, allocations: 0.9127 MB / 460.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3726, allocations: 4.375 kB / 460.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.3741, allocations: 0.6573 MB / 461.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006203/0.3747, allocations: 70.97 kB / 461.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004187/0.3789, allocations: 1.905 MB / 463.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005971/0.3795, allocations: 0.9375 MB / 464.1 MB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002243/0.3797, allocations: 47.25 kB / 464.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.3799, allocations: 39.42 kB / 464.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3799, allocations: 0 / 464.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of Templates: time 0.02726/0.4071, allocations: 15.95 MB / 480.1 MB, free: 11.62 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches