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.001434/0.001434, allocations: 111 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001703/0.001703, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 8.965 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 63.91 kB / 306.9 MB, free: 0.7734 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1073, allocations: 50.54 MB / 357.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004686/0.112, allocations: 3.139 MB / 360.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.1144, allocations: 1.34 MB / 361.9 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003567/0.1148, allocations: 4 kB / 361.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005406/0.1154, allocations: 79.52 kB / 362 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003923/0.1158, allocations: 119 kB / 362.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000998/0.1168, allocations: 374.8 kB / 362.5 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008999/0.1177, allocations: 0.7762 MB / 363.3 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002201/0.1179, allocations: 81.44 kB / 363.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006399/0.1186, allocations: 339 kB / 363.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001703/0.1203, allocations: 1.46 MB / 365.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.1205, allocations: 40 kB / 365.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003686/0.1209, allocations: 104 kB / 365.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002875/0.1212, allocations: 204.2 kB / 365.5 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004163/0.1216, allocations: 326 kB / 365.8 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007337/0.1224, allocations: 0.6512 MB / 366.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1224, allocations: 0 / 366.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1224, allocations: 0 / 366.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.85e-05/0.1224, allocations: 0 / 366.4 MB, free: 5.195 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.004013/0.1265, allocations: 1.344 MB / 367.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.1265, allocations: 15.97 kB / 367.8 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005887/0.1271, allocations: 104 kB / 367.9 MB, free: 3.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006354/0.1278, allocations: 439.4 kB / 368.3 MB, free: 3.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.076e-05/0.1278, allocations: 33.38 kB / 368.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.128, allocations: 40.28 kB / 368.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.1296, allocations: 0.6421 MB / 369 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.1296, allocations: 0 / 369 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-05/0.1297, allocations: 16 kB / 369.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1297, allocations: 8 kB / 369.1 MB, free: 2.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.1317, allocations: 0.6976 MB / 369.8 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003662/0.1354, allocations: 1.662 MB / 371.4 MB, free: 24 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.175/0.3104, allocations: 494.5 kB / 371.9 MB, free: 20.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008478/0.3113, allocations: 295.7 kB / 372.2 MB, free: 20.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-05/0.3114, allocations: 5.094 kB / 372.2 MB, free: 20.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001323/0.3127, allocations: 489 kB / 372.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.384e-06/0.3127, allocations: 0 / 372.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.008908/0.3216, allocations: 2.802 MB / 375.5 MB, free: 18.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.3217, allocations: 83.62 kB / 375.6 MB, free: 18.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009765/0.3227, allocations: 0.9165 MB / 376.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.334e-05/0.3228, allocations: 49.41 kB / 376.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.323, allocations: 301.1 kB / 376.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.3231, allocations: 175.2 kB / 377 MB, free: 17.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002345/0.3234, allocations: 123 kB / 377.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3235, allocations: 386.4 kB / 377.5 MB, free: 17.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000855/0.3243, allocations: 321.3 kB / 377.8 MB, free: 17.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008773/0.3252, allocations: 419.3 kB / 378.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.3266, allocations: 0.5065 MB / 378.7 MB, free: 16.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3266, allocations: 0 / 378.7 MB, free: 16.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002684/0.3293, allocations: 0.9906 MB / 379.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.3293, allocations: 12.3 kB / 379.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.3293, allocations: 2.906 kB / 379.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.3304, allocations: 0.549 MB / 380.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005075/0.3309, allocations: 115.9 kB / 380.4 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00519/0.3361, allocations: 4.401 MB / 384.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.3376, allocations: 223.4 kB / 385 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.478e-05/0.3376, allocations: 25.22 kB / 385 MB, free: 12.59 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000439/0.3381, allocations: 261.5 kB / 385.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.3382, allocations: 75.81 kB / 385.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001778/0.3384, allocations: 104.6 kB / 385.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.3384, allocations: 5.625 kB / 385.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.3385, allocations: 5.031 kB / 385.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.3385, allocations: 3.734 kB / 385.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.3414, allocations: 1.413 MB / 386.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3414, allocations: 1.094 kB / 386.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004738/0.3419, allocations: 77.98 kB / 387 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009737/0.3429, allocations: 0.5154 MB / 387.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.869e-05/0.3429, allocations: 23.06 kB / 387.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004531/0.3475, allocations: 4.119 MB / 391.6 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3475, allocations: 4.75 kB / 391.6 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003314/0.3508, allocations: 1.27 MB / 392.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002926/0.3511, allocations: 204.4 kB / 393.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.3513, allocations: 26.17 kB / 393.1 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.3528, allocations: 270.9 kB / 393.4 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001392/0.3542, allocations: 0.5566 MB / 393.9 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.328e-05/0.3543, allocations: 24.72 kB / 394 MB, free: 6.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006869/0.355, allocations: 0.6693 MB / 394.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.355, allocations: 1.031 kB / 394.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008813/0.3559, allocations: 182.2 kB / 394.8 MB, free: 6.43 MB / 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008757/0.3568, allocations: 395.4 kB / 395.2 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002199/0.359, allocations: 0.9733 MB / 396.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.359, allocations: 0 / 396.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.3602, allocations: 0.6232 MB / 396.8 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006394/0.3608, allocations: 76.58 kB / 396.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.3649, allocations: 2.141 MB / 399 MB, free: 3.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.3653, allocations: 0.9286 MB / 399.9 MB, free: 2.984 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.3655, allocations: 39.61 kB / 400 MB, free: 2.969 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3655, allocations: 0 / 400 MB, free: 2.969 MB / 302.1 MB Notification: Performance of Templates: time 0.01763/0.3831, allocations: 14.13 MB / 414.1 MB, free: 5.801 MB / 318.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