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.00147/0.00147, allocations: 107.9 kB / 17.64 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0019/0.0019, allocations: 206.5 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 55.88 kB / 306.9 MB, free: 0.6836 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1025, allocations: 50.53 MB / 357.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004678/0.1072, allocations: 3.119 MB / 360.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.1097, allocations: 1.34 MB / 361.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002717/0.1099, allocations: 4 kB / 361.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005421/0.1105, allocations: 103.2 kB / 362 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003284/0.1109, allocations: 126.9 kB / 362.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009753/0.1118, allocations: 414.8 kB / 362.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008795/0.1127, allocations: 0.8153 MB / 363.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.113, allocations: 105.5 kB / 363.5 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006437/0.1136, allocations: 379 kB / 363.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001492/0.1151, allocations: 1.459 MB / 365.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.1153, allocations: 68 kB / 365.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002858/0.1156, allocations: 132 kB / 365.5 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000229/0.1158, allocations: 235.8 kB / 365.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003561/0.1162, allocations: 358 kB / 366.1 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009187/0.1171, allocations: 0.8998 MB / 367 MB, free: 4.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.1172, allocations: 0 / 367 MB, free: 4.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1172, allocations: 3.938 kB / 367 MB, free: 4.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.985e-05/0.1172, allocations: 0 / 367 MB, free: 4.586 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.003885/0.1211, allocations: 1.34 MB / 368.3 MB, free: 3.195 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1211, allocations: 12.03 kB / 368.3 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005433/0.1217, allocations: 108 kB / 368.4 MB, free: 3.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005178/0.1222, allocations: 427.4 kB / 368.9 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.435e-05/0.1223, allocations: 29.38 kB / 368.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.698e-05/0.1224, allocations: 40.28 kB / 368.9 MB, free: 2.547 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.1239, allocations: 0.6382 MB / 369.6 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.1239, allocations: 7.984 kB / 369.6 MB, free: 1.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.746e-05/0.124, allocations: 19.94 kB / 369.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.124, allocations: 8 kB / 369.6 MB, free: 1.859 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002002/0.126, allocations: 0.6875 MB / 370.3 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1676/0.2936, allocations: 1.656 MB / 371.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.2953, allocations: 0.4916 MB / 372.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009371/0.2962, allocations: 296.1 kB / 372.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.74e-05/0.2963, allocations: 8.672 kB / 372.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.2977, allocations: 484.8 kB / 373.2 MB, free: 19.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 3.256e-06/0.2977, allocations: 3.562 kB / 373.2 MB, free: 19.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.009763/0.3075, allocations: 2.802 MB / 376 MB, free: 18.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.3076, allocations: 84.58 kB / 376.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.3086, allocations: 0.9152 MB / 377 MB, free: 17.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.085e-05/0.3087, allocations: 52.14 kB / 377.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.3089, allocations: 301.6 kB / 377.3 MB, free: 17.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.3091, allocations: 164.1 kB / 377.5 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002619/0.3094, allocations: 127.5 kB / 377.6 MB, free: 17.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3095, allocations: 392.7 kB / 378 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000898/0.3104, allocations: 321.3 kB / 378.3 MB, free: 16.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000934/0.3113, allocations: 415.5 kB / 378.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/0.3129, allocations: 0.5131 MB / 379.3 MB, free: 16.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.3129, allocations: 0 / 379.3 MB, free: 16.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002771/0.3157, allocations: 0.9998 MB / 380.2 MB, free: 16.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.3158, allocations: 6.172 kB / 380.3 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3158, allocations: 5.219 kB / 380.3 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.3169, allocations: 0.5437 MB / 380.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005745/0.3174, allocations: 113.2 kB / 380.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005599/0.3231, allocations: 4.727 MB / 385.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.3246, allocations: 226.8 kB / 385.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.161e-05/0.3247, allocations: 24.36 kB / 385.9 MB, free: 11.75 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.0003643/0.3251, allocations: 269.3 kB / 386.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.3252, allocations: 70.72 kB / 386.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000199/0.3254, allocations: 104.4 kB / 386.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3255, allocations: 6.781 kB / 386.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3255, allocations: 1.344 kB / 386.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3255, allocations: 2.766 kB / 386.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003097/0.3286, allocations: 1.427 MB / 387.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.3286, allocations: 1.75 kB / 387.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004792/0.3291, allocations: 85.23 kB / 387.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009301/0.33, allocations: 0.5087 MB / 388.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.407e-05/0.3301, allocations: 26.2 kB / 388.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004527/0.3346, allocations: 4.364 MB / 392.7 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3347, allocations: 4.719 kB / 392.7 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003253/0.3379, allocations: 1.269 MB / 394 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/0.3382, allocations: 206.9 kB / 394.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.3384, allocations: 20.5 kB / 394.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/0.3401, allocations: 272.7 kB / 394.5 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001325/0.3414, allocations: 0.5674 MB / 395.1 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.3416, allocations: 29.11 kB / 395.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008023/0.3424, allocations: 0.6656 MB / 395.8 MB, free: 5.234 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3424, allocations: 3.938 kB / 395.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009491/0.3433, allocations: 183.4 kB / 395.9 MB, free: 5.207 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.0008985/0.3442, allocations: 397.3 kB / 396.3 MB, free: 5.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.3467, allocations: 0.9881 MB / 397.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.3467, allocations: 1.406 kB / 397.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.3481, allocations: 0.6556 MB / 398 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006246/0.3487, allocations: 85.45 kB / 398.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004276/0.353, allocations: 1.896 MB / 400 MB, free: 2.773 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.3534, allocations: 0.9241 MB / 400.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002588/0.3537, allocations: 42.23 kB / 400.9 MB, free: 1.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.3538, allocations: 48.83 kB / 401 MB, free: 1.922 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3538, allocations: 0 / 401 MB, free: 1.922 MB / 302.1 MB Notification: Performance of Templates: time 0.02486/0.3787, allocations: 15.78 MB / 416.8 MB, free: 2.844 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