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.001104/0.001104, allocations: 109 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001084, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 60.97 kB / 306.3 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.09311, allocations: 50.55 MB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004865/0.098, allocations: 3.146 MB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002393/0.1004, allocations: 1.336 MB / 361.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003953/0.1008, allocations: 4 kB / 361.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005865/0.1015, allocations: 83.47 kB / 361.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003952/0.1019, allocations: 111.2 kB / 361.5 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009859/0.1029, allocations: 378.3 kB / 361.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007586/0.1037, allocations: 0.7723 MB / 362.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.1039, allocations: 97.39 kB / 362.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005034/0.1044, allocations: 339 kB / 363 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001542/0.106, allocations: 1.46 MB / 364.5 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.1061, allocations: 36 kB / 364.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002938/0.1064, allocations: 99.97 kB / 364.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002616/0.1067, allocations: 212.2 kB / 364.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003213/0.107, allocations: 326 kB / 365.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008419/0.1078, allocations: 0.8607 MB / 366 MB, free: 5.023 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.1079, allocations: 0 / 366 MB, free: 5.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1079, allocations: 3.938 kB / 366 MB, free: 5.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.1079, allocations: 0 / 366 MB, free: 5.02 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.003682/0.1116, allocations: 1.344 MB / 367.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.1116, allocations: 12.03 kB / 367.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004989/0.1121, allocations: 99.97 kB / 367.5 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005746/0.1127, allocations: 435.4 kB / 367.9 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.1128, allocations: 29.38 kB / 367.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.611e-05/0.1129, allocations: 44.27 kB / 368 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.1144, allocations: 0.6343 MB / 368.6 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.1145, allocations: 0 / 368.6 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.683e-05/0.1146, allocations: 19.94 kB / 368.6 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1146, allocations: 8 kB / 368.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001964/0.1165, allocations: 0.6976 MB / 369.3 MB, free: 1.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1507/0.2673, allocations: 1.653 MB / 371 MB, free: 19.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.269, allocations: 498.3 kB / 371.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008237/0.2698, allocations: 300.6 kB / 371.8 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.031e-05/0.2699, allocations: 11.45 kB / 371.8 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.2711, allocations: 485.1 kB / 372.2 MB, free: 19.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.614e-06/0.2711, allocations: 1.266 kB / 372.3 MB, free: 19.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.008838/0.28, allocations: 2.806 MB / 375.1 MB, free: 18.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.28, allocations: 82.98 kB / 375.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009038/0.2809, allocations: 0.9138 MB / 376.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.251e-05/0.281, allocations: 48.36 kB / 376.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.2812, allocations: 304.6 kB / 376.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.2813, allocations: 167.5 kB / 376.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/0.2816, allocations: 121.1 kB / 376.7 MB, free: 17.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.213e-05/0.2817, allocations: 385 kB / 377.1 MB, free: 17.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008491/0.2825, allocations: 325.3 kB / 377.4 MB, free: 16.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009065/0.2834, allocations: 411.3 kB / 377.8 MB, free: 16.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.2848, allocations: 0.5141 MB / 378.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2848, allocations: 4.922 kB / 378.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002773/0.2876, allocations: 0.9955 MB / 379.3 MB, free: 16.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.2876, allocations: 3.562 kB / 379.3 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.2877, allocations: 4.391 kB / 379.3 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.2887, allocations: 0.5546 MB / 379.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004859/0.2892, allocations: 108 kB / 380 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00504/0.2943, allocations: 4.397 MB / 384.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.2957, allocations: 232.8 kB / 384.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.315e-05/0.2957, allocations: 22.73 kB / 384.6 MB, free: 12.11 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.0003673/0.2961, allocations: 266.2 kB / 384.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.2963, allocations: 70.25 kB / 384.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.2964, allocations: 108.5 kB / 385 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2964, allocations: 5.656 kB / 385 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.2965, allocations: 1.75 kB / 385 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.2965, allocations: 6.625 kB / 385.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.2994, allocations: 1.398 MB / 386.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.2994, allocations: 1.812 kB / 386.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.2999, allocations: 85.94 kB / 386.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009374/0.3008, allocations: 0.5203 MB / 387.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.576e-05/0.3009, allocations: 22.25 kB / 387.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004365/0.3053, allocations: 4.131 MB / 391.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.3053, allocations: 4.812 kB / 391.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003195/0.3085, allocations: 1.255 MB / 392.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002914/0.3088, allocations: 208.1 kB / 392.7 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.3089, allocations: 25 kB / 392.7 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/0.3104, allocations: 271.8 kB / 393 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001349/0.3118, allocations: 0.5526 MB / 393.5 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.32e-05/0.3119, allocations: 29.69 kB / 393.5 MB, free: 6.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006371/0.3125, allocations: 0.6703 MB / 394.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3125, allocations: 0 / 394.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008146/0.3133, allocations: 185.4 kB / 394.4 MB, free: 5.934 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.0008374/0.3142, allocations: 392.4 kB / 394.8 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00216/0.3164, allocations: 0.9625 MB / 395.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.3164, allocations: 1.375 kB / 395.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/0.3176, allocations: 0.6639 MB / 396.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.3182, allocations: 74.11 kB / 396.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003743/0.322, allocations: 2.107 MB / 398.6 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.3223, allocations: 0.9218 MB / 399.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002357/0.3226, allocations: 48.8 kB / 399.6 MB, free: 2.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.3227, allocations: 40.34 kB / 399.6 MB, free: 2.461 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3227, allocations: 0 / 399.6 MB, free: 2.461 MB / 302.1 MB Notification: Performance of Templates: time 0.02264/0.3453, allocations: 14.05 MB / 413.6 MB, free: 5.527 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