Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 112.2 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009379/0.0009378, allocations: 51.8 kB / 300 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08744/0.08839, allocations: 49.45 MB / 349.4 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004071/0.09249, allocations: 3.054 MB / 352.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.09424, allocations: 0.9427 MB / 353.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002427/0.0945, allocations: 4 kB / 353.4 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.09477, allocations: 43.62 kB / 353.4 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.09507, allocations: 119.1 kB / 353.6 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000469/0.09554, allocations: 187.7 kB / 353.7 MB, free: 264 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006311/0.09619, allocations: 0.6083 MB / 354.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.09643, allocations: 115.9 kB / 354.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004406/0.09688, allocations: 247 kB / 354.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005897/0.09748, allocations: 286.9 kB / 355 MB, free: 15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.864e-05/0.09757, allocations: 32 kB / 355 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.09778, allocations: 75.89 kB / 355.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.09792, allocations: 103.6 kB / 355.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002288/0.09816, allocations: 230.8 kB / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005388/0.0987, allocations: 0.5647 MB / 356 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.09872, allocations: 0 / 356 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.09872, allocations: 0 / 356 MB, free: 14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.09874, allocations: 0 / 356 MB, free: 14 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001348/0.1001, allocations: 0.7836 MB / 356.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.1001, allocations: 12.03 kB / 356.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.1002, allocations: 52.36 kB / 356.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003598/0.1006, allocations: 323.3 kB / 357.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.954e-05/0.1006, allocations: 29.38 kB / 357.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.816e-05/0.1007, allocations: 40.38 kB / 357.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008517/0.1016, allocations: 478.5 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.1016, allocations: 11.91 kB / 357.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.937e-05/0.1017, allocations: 19.98 kB / 357.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1017, allocations: 8 kB / 357.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000904/0.1026, allocations: 475.7 kB / 358.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.1046, allocations: 1.118 MB / 359.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008401/0.1054, allocations: 400.1 kB / 359.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005132/0.106, allocations: 274 kB / 360 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.106, allocations: 8.438 kB / 360 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.106, allocations: 35 kB / 360 MB, free: 9.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.643e-06/0.106, allocations: 0 / 360 MB, free: 9.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005024/0.1111, allocations: 2.335 MB / 362.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.1111, allocations: 59.97 kB / 362.4 MB, free: 7.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.1114, allocations: 283.3 kB / 362.7 MB, free: 6.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.175e-05/0.1115, allocations: 45.69 kB / 362.7 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.1116, allocations: 189.2 kB / 362.9 MB, free: 6.754 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.1117, allocations: 185.4 kB / 363.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.1119, allocations: 110.2 kB / 363.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.112, allocations: 350.8 kB / 363.5 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.1125, allocations: 237.2 kB / 363.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004731/0.113, allocations: 292.8 kB / 364 MB, free: 5.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007407/0.1137, allocations: 414.4 kB / 364.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1137, allocations: 0 / 364.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001598/0.1153, allocations: 0.7872 MB / 365.2 MB, free: 4.375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.1154, allocations: 10.64 kB / 365.2 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1154, allocations: 4 kB / 365.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009235/0.1163, allocations: 0.4935 MB / 365.7 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003375/0.1167, allocations: 95.83 kB / 365.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.1179, allocations: 1.401 MB / 367.2 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004547/0.1184, allocations: 80.06 kB / 367.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.1185, allocations: 20 kB / 367.3 MB, free: 2.219 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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002061/0.1187, allocations: 181.4 kB / 367.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.297e-05/0.1188, allocations: 39.47 kB / 367.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.1189, allocations: 63.73 kB / 367.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1189, allocations: 8 kB / 367.6 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1189, allocations: 0 / 367.6 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1189, allocations: 3.984 kB / 367.6 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00268/0.1216, allocations: 1.45 MB / 369.1 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1216, allocations: 3.938 kB / 369.1 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.122, allocations: 83.89 kB / 369.2 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1488/0.2708, allocations: 477.5 kB / 369.6 MB, free: 25.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.2709, allocations: 21.84 kB / 369.7 MB, free: 25.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.272, allocations: 1.372 MB / 371 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.2721, allocations: 4.734 kB / 371 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002119/0.2742, allocations: 1.089 MB / 372.1 MB, free: 24.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.2744, allocations: 167.7 kB / 372.3 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.126e-05/0.2745, allocations: 22.75 kB / 372.3 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004224/0.2749, allocations: 57.66 kB / 372.4 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002344/0.2752, allocations: 90.64 kB / 372.4 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.072e-05/0.2752, allocations: 26.05 kB / 372.5 MB, free: 24.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001959/0.2754, allocations: 205 kB / 372.7 MB, free: 24.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2754, allocations: 0 / 372.7 MB, free: 24.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00048/0.2759, allocations: 132.3 kB / 372.8 MB, free: 24.46 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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002157/0.2762, allocations: 150.8 kB / 373 MB, free: 24.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001308/0.2775, allocations: 0.5871 MB / 373.5 MB, free: 24.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2775, allocations: 3.781 kB / 373.5 MB, free: 24.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007106/0.2782, allocations: 343.9 kB / 373.9 MB, free: 24.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00058/0.2788, allocations: 70.47 kB / 373.9 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.2823, allocations: 1.602 MB / 375.5 MB, free: 23.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.2826, allocations: 0.8204 MB / 376.4 MB, free: 22.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.2828, allocations: 46.97 kB / 376.4 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.585e-05/0.2829, allocations: 32.25 kB / 376.4 MB, free: 22.54 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2829, allocations: 0 / 376.4 MB, free: 22.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01427/0.2972, allocations: 9.335 MB / 385.8 MB, free: 19.63 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches