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.001294/0.001294, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.00138, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 63.89 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09982/0.101, allocations: 50.53 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004968/0.106, allocations: 3.169 MB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.108, allocations: 1.122 MB / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.1082, allocations: 11.94 kB / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003831/0.1086, allocations: 83.22 kB / 363.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004124/0.1091, allocations: 182.7 kB / 363.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.1095, allocations: 203.6 kB / 363.7 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006396/0.1101, allocations: 0.663 MB / 364.3 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.1104, allocations: 136.2 kB / 364.4 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003964/0.1108, allocations: 303 kB / 364.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004066/0.1112, allocations: 314.9 kB / 365.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.814e-05/0.1113, allocations: 51.94 kB / 365.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002242/0.1115, allocations: 111.9 kB / 365.2 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.1118, allocations: 135.6 kB / 365.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.112, allocations: 262.7 kB / 365.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006855/0.1127, allocations: 0.6502 MB / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1127, allocations: 0 / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1128, allocations: 0 / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1128, allocations: 0 / 366.3 MB, free: 5.969 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.001569/0.1143, allocations: 0.8225 MB / 367.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1144, allocations: 8.031 kB / 367.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002884/0.1147, allocations: 68.27 kB / 367.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005536/0.1153, allocations: 347.2 kB / 367.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.1153, allocations: 29.38 kB / 367.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.1154, allocations: 52.28 kB / 367.6 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009006/0.1163, allocations: 470.6 kB / 368 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.1163, allocations: 4 kB / 368 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.712e-05/0.1164, allocations: 20 kB / 368.1 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.1164, allocations: 11.98 kB / 368.1 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009515/0.1174, allocations: 475.6 kB / 368.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002013/0.1194, allocations: 1.137 MB / 369.7 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008787/0.1203, allocations: 418.5 kB / 370.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005224/0.1208, allocations: 278.4 kB / 370.3 MB, free: 1.707 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.076e-05/0.1209, allocations: 4.562 kB / 370.3 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.1209, allocations: 43.06 kB / 370.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.033e-06/0.1209, allocations: 0 / 370.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1646/0.2855, allocations: 2.311 MB / 372.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.2856, allocations: 59.23 kB / 372.8 MB, free: 20.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003974/0.286, allocations: 312.8 kB / 373.1 MB, free: 19.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.709e-05/0.2861, allocations: 42.62 kB / 373.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.2862, allocations: 187.3 kB / 373.3 MB, free: 19.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.2864, allocations: 207.8 kB / 373.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.2866, allocations: 107.2 kB / 373.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.2867, allocations: 354.8 kB / 373.9 MB, free: 19.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000478/0.2872, allocations: 227.7 kB / 374.2 MB, free: 19.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005096/0.2877, allocations: 278.3 kB / 374.4 MB, free: 19.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007412/0.2884, allocations: 397 kB / 374.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2885, allocations: 1.188 kB / 374.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001623/0.2901, allocations: 0.7518 MB / 375.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.2901, allocations: 9.422 kB / 375.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.2901, allocations: 0 / 375.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008518/0.291, allocations: 383.1 kB / 376 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.2913, allocations: 82.73 kB / 376 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.2924, allocations: 1.4 MB / 377.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004871/0.2929, allocations: 80.31 kB / 377.5 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.5e-05/0.293, allocations: 18.3 kB / 377.5 MB, free: 17.42 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * 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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001994/0.2932, allocations: 180.7 kB / 377.7 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.771e-05/0.2933, allocations: 39.84 kB / 377.8 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.2934, allocations: 65.45 kB / 377.8 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2934, allocations: 5.75 kB / 377.8 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.2934, allocations: 1.406 kB / 377.8 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.2934, allocations: 4.781 kB / 377.8 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/0.2959, allocations: 1.452 MB / 379.3 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.296, allocations: 3.062 kB / 379.3 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003552/0.2963, allocations: 83.97 kB / 379.4 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006901/0.297, allocations: 345.9 kB / 379.7 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.933e-05/0.2971, allocations: 20.73 kB / 379.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009876/0.2981, allocations: 1.369 MB / 381.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2981, allocations: 6.094 kB / 381.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.2998, allocations: 1.055 MB / 382.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001923/0.3, allocations: 172.7 kB / 382.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.785e-05/0.3001, allocations: 20.67 kB / 382.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000411/0.3005, allocations: 61.62 kB / 382.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.3008, allocations: 96.94 kB / 382.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.961e-05/0.3008, allocations: 24.06 kB / 382.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002011/0.301, allocations: 217.1 kB / 382.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.301, allocations: 5.781 kB / 382.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004707/0.3015, allocations: 131 kB / 382.9 MB, free: 14.23 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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008268/0.3024, allocations: 382.5 kB / 383.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.3036, allocations: 0.5789 MB / 383.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3036, allocations: 3.938 kB / 383.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007174/0.3043, allocations: 344.1 kB / 384.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006069/0.305, allocations: 101.8 kB / 384.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003339/0.3083, allocations: 1.463 MB / 385.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3086, allocations: 0.8276 MB / 386.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001733/0.3088, allocations: 51.19 kB / 386.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.3089, allocations: 42.84 kB / 386.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3089, allocations: 0 / 386.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Templates: time 0.01442/0.3233, allocations: 9.947 MB / 396.6 MB, free: 8.234 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches