Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.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.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008503/0.0008505, allocations: 102.1 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.0009336/0.0009337, allocations: 191 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: 9.824 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002439, allocations: 11.98 kB / 307.1 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09635, allocations: 51.53 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00336/0.09975, allocations: 2.714 MB / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.1017, allocations: 1.069 MB / 362.4 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002629/0.102, allocations: 11.94 kB / 362.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003008/0.1023, allocations: 63.56 kB / 362.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005047/0.1028, allocations: 155 kB / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003933/0.1032, allocations: 155.7 kB / 362.8 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006705/0.1039, allocations: 0.581 MB / 363.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.1041, allocations: 102.2 kB / 363.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004872/0.1046, allocations: 271 kB / 363.7 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004464/0.1051, allocations: 290.9 kB / 364 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.214e-05/0.1052, allocations: 24 kB / 364 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.1054, allocations: 79.97 kB / 364.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.1056, allocations: 103.6 kB / 364.2 MB, free: 7.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.1057, allocations: 105.5 kB / 364.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004698/0.1062, allocations: 467 kB / 364.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1062, allocations: 0 / 364.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1062, allocations: 0 / 364.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.1062, allocations: 0 / 364.8 MB, free: 7.25 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001318/0.1075, allocations: 0.7678 MB / 365.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.1076, allocations: 8.031 kB / 365.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.1078, allocations: 71.42 kB / 365.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004268/0.1082, allocations: 330.1 kB / 365.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.633e-05/0.1083, allocations: 36.94 kB / 366 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.127e-05/0.1084, allocations: 43.91 kB / 366 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/0.1093, allocations: 478.2 kB / 366.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.1093, allocations: 4 kB / 366.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.629e-05/0.1094, allocations: 16 kB / 366.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.1094, allocations: 11.94 kB / 366.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009627/0.1104, allocations: 475.7 kB / 367 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.1125, allocations: 1.176 MB / 368.2 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000891/0.1134, allocations: 429.4 kB / 368.6 MB, free: 3.281 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005172/0.1139, allocations: 270.4 kB / 368.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.973e-05/0.114, allocations: 12.55 kB / 368.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.114, allocations: 39.12 kB / 368.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.054e-06/0.114, allocations: 0 / 368.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.005455/0.1195, allocations: 2.434 MB / 371.3 MB, free: 404 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.1195, allocations: 63.92 kB / 371.4 MB, free: 328 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.12, allocations: 296.6 kB / 371.7 MB, free: 28 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.1668/0.2868, allocations: 42.41 kB / 371.7 MB, free: 19.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.287, allocations: 182.8 kB / 371.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002098/0.2872, allocations: 218.8 kB / 372.1 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.2873, allocations: 12.16 kB / 372.1 MB, free: 19.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.822e-05/0.2874, allocations: 351.2 kB / 372.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005413/0.2879, allocations: 235.6 kB / 372.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005062/0.2884, allocations: 280.7 kB / 373 MB, free: 18.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004388/0.2889, allocations: 190.5 kB / 373.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2889, allocations: 0 / 373.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0017/0.2906, allocations: 0.7379 MB / 373.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.2906, allocations: 9.641 kB / 373.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.2907, allocations: 0.5938 kB / 373.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009655/0.2916, allocations: 374.9 kB / 374.3 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/0.292, allocations: 89.03 kB / 374.4 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.2932, allocations: 1.4 MB / 375.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005548/0.2938, allocations: 105.3 kB / 375.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.127e-05/0.2938, allocations: 23 kB / 375.9 MB, free: 17.72 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002149/0.2941, allocations: 170.8 kB / 376.1 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.192e-05/0.2942, allocations: 44.41 kB / 376.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.2943, allocations: 60.34 kB / 376.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.2943, allocations: 7.516 kB / 376.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.2943, allocations: 3.938 kB / 376.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.2944, allocations: 7.625 kB / 376.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002682/0.2971, allocations: 1.478 MB / 377.7 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.2971, allocations: 5.922 kB / 377.7 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000395/0.2975, allocations: 90.73 kB / 377.7 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007738/0.2983, allocations: 342.7 kB / 378.1 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.554e-05/0.2983, allocations: 24.36 kB / 378.1 MB, free: 16.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.2994, allocations: 1.364 MB / 379.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2994, allocations: 1.062 kB / 379.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001974/0.3014, allocations: 1.074 MB / 380.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.3016, allocations: 171 kB / 380.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.3018, allocations: 25.42 kB / 380.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004582/0.3022, allocations: 83.97 kB / 380.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.3025, allocations: 113.8 kB / 380.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-05/0.3025, allocations: 27.83 kB / 381 MB, free: 14.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002384/0.3028, allocations: 219 kB / 381.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3028, allocations: 1.5 kB / 381.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006597/0.3035, allocations: 125.9 kB / 381.3 MB, free: 14.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008694/0.3043, allocations: 393.7 kB / 381.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.3058, allocations: 0.5851 MB / 382.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3058, allocations: 0 / 382.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008255/0.3066, allocations: 348.2 kB / 382.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006952/0.3073, allocations: 90.7 kB / 382.7 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004169/0.3115, allocations: 1.822 MB / 384.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004656/0.312, allocations: 0.8314 MB / 385.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002984/0.3123, allocations: 44.25 kB / 385.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.3125, allocations: 39.7 kB / 385.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3125, allocations: 0 / 385.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of Templates: time 0.01739/0.3299, allocations: 9.005 MB / 394.4 MB, free: 8.812 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches