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.0009269/0.000927, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002636, allocations: 4 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09883/0.09911, allocations: 51.53 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003458/0.1026, allocations: 2.653 MB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002235/0.1049, allocations: 1.27 MB / 362.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002908/0.1052, allocations: 7.938 kB / 362.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004541/0.1057, allocations: 79.53 kB / 362.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003107/0.106, allocations: 107.1 kB / 362.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008793/0.1069, allocations: 346.1 kB / 363.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007853/0.1077, allocations: 0.6981 MB / 363.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.1079, allocations: 81.42 kB / 363.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005765/0.1085, allocations: 335 kB / 364.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001619/0.1101, allocations: 1.564 MB / 365.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.1103, allocations: 32 kB / 365.8 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002751/0.1106, allocations: 99.91 kB / 365.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000241/0.1108, allocations: 195.4 kB / 366.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.111, allocations: 133.3 kB / 366.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006534/0.1117, allocations: 0.6355 MB / 366.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1117, allocations: 0 / 366.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1117, allocations: 4 kB / 366.8 MB, free: 5.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.841e-05/0.1117, allocations: 0 / 366.8 MB, free: 5.406 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.003272/0.115, allocations: 1.339 MB / 368.2 MB, free: 4.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.115, allocations: 8.031 kB / 368.2 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004904/0.1155, allocations: 99.05 kB / 368.3 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005394/0.1161, allocations: 406.8 kB / 368.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.615e-05/0.1161, allocations: 29 kB / 368.7 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.854e-05/0.1163, allocations: 39.91 kB / 368.8 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.1177, allocations: 0.6536 MB / 369.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.1177, allocations: 0 / 369.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.066e-05/0.1178, allocations: 16 kB / 369.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.1178, allocations: 8 kB / 369.4 MB, free: 2.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.1196, allocations: 0.7289 MB / 370.2 MB, free: 1.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003373/0.123, allocations: 1.729 MB / 371.9 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1763/0.2993, allocations: 0.5165 MB / 372.4 MB, free: 19.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008621/0.3002, allocations: 307.7 kB / 372.7 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.798e-05/0.3003, allocations: 12.45 kB / 372.7 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001182/0.3015, allocations: 0.4917 MB / 373.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 3.126e-06/0.3015, allocations: 0 / 373.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.008319/0.3098, allocations: 3.052 MB / 376.3 MB, free: 18.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.3099, allocations: 83.25 kB / 376.3 MB, free: 18.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009886/0.3109, allocations: 0.9156 MB / 377.3 MB, free: 17.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.91e-05/0.311, allocations: 48.77 kB / 377.3 MB, free: 17.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.3111, allocations: 296.6 kB / 377.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.3113, allocations: 174.1 kB / 377.8 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.179e-05/0.3113, allocations: 10.36 kB / 377.8 MB, free: 17.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.317e-05/0.3114, allocations: 391.4 kB / 378.2 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008238/0.3123, allocations: 335.7 kB / 378.5 MB, free: 16.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008487/0.3131, allocations: 432.2 kB / 378.9 MB, free: 16.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006973/0.3138, allocations: 256.3 kB / 379.2 MB, free: 16.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3139, allocations: 5.281 kB / 379.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002496/0.3164, allocations: 1.034 MB / 380.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3164, allocations: 7.516 kB / 380.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.3164, allocations: 5.297 kB / 380.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.3175, allocations: 0.5443 MB / 380.8 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005397/0.318, allocations: 120.8 kB / 380.9 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005025/0.3231, allocations: 4.478 MB / 385.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.3244, allocations: 296 kB / 385.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.699e-05/0.3245, allocations: 23.47 kB / 385.7 MB, free: 12.21 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,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003398/0.3248, allocations: 260.9 kB / 385.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.325, allocations: 82.89 kB / 386 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002039/0.3252, allocations: 104.9 kB / 386.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.3252, allocations: 5.406 kB / 386.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3252, allocations: 4.844 kB / 386.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.3252, allocations: 3.891 kB / 386.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002896/0.3281, allocations: 1.436 MB / 387.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.3281, allocations: 1.531 kB / 387.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/0.3286, allocations: 97.77 kB / 387.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009158/0.3295, allocations: 0.5077 MB / 388.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.735e-05/0.3296, allocations: 26.59 kB / 388.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00439/0.334, allocations: 4.194 MB / 392.4 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.334, allocations: 5 kB / 392.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00315/0.3372, allocations: 1.309 MB / 393.7 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/0.3375, allocations: 209.6 kB / 393.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.3376, allocations: 28.38 kB / 393.9 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001525/0.3392, allocations: 346.7 kB / 394.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00138/0.3405, allocations: 0.6485 MB / 394.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.3407, allocations: 25 kB / 394.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000788/0.3415, allocations: 0.6728 MB / 395.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3415, allocations: 0 / 395.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001038/0.3425, allocations: 182.6 kB / 395.8 MB, free: 5.918 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009911/0.3435, allocations: 397.9 kB / 396.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002138/0.3457, allocations: 0.9924 MB / 397.2 MB, free: 5.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.3457, allocations: 1.688 kB / 397.2 MB, free: 5.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.347, allocations: 0.6714 MB / 397.8 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006069/0.3476, allocations: 81.81 kB / 397.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.3514, allocations: 2.218 MB / 400.1 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.3518, allocations: 0.9228 MB / 401.1 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002513/0.3521, allocations: 46.94 kB / 401.1 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.3522, allocations: 43.09 kB / 401.1 MB, free: 2.379 MB / 302.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3522, allocations: 0 / 401.1 MB, free: 2.379 MB / 302.1 MB Notification: Performance of Templates: time 0.02068/0.3729, allocations: 13.45 MB / 414.6 MB, free: 5.125 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/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_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches