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.001077/0.001077, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 60.28 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09775, allocations: 50.52 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004643/0.1024, allocations: 3.176 MB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.1044, allocations: 1.122 MB / 363.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/0.1047, allocations: 7.938 kB / 363.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00031/0.105, allocations: 83.22 kB / 363.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000388/0.1054, allocations: 186.7 kB / 363.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004071/0.1058, allocations: 203.6 kB / 363.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006808/0.1065, allocations: 0.6707 MB / 364.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.1068, allocations: 132.3 kB / 364.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004134/0.1072, allocations: 295 kB / 364.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004011/0.1076, allocations: 318.8 kB / 365.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.082e-05/0.1077, allocations: 52 kB / 365.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002468/0.1079, allocations: 108 kB / 365.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000242/0.1082, allocations: 143.5 kB / 365.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002905/0.1085, allocations: 258.8 kB / 365.6 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007191/0.1092, allocations: 0.6463 MB / 366.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.882e-06/0.1092, allocations: 0 / 366.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1092, allocations: 0 / 366.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.1093, allocations: 0 / 366.3 MB, free: 5.941 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.001451/0.1107, allocations: 0.8263 MB / 367.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.1108, allocations: 16.03 kB / 367.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.111, allocations: 64.27 kB / 367.2 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005219/0.1115, allocations: 347.2 kB / 367.5 MB, free: 4.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/0.1116, allocations: 29.38 kB / 367.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.193e-05/0.1117, allocations: 44.28 kB / 367.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008426/0.1125, allocations: 478.6 kB / 368 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.1126, allocations: 8 kB / 368.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.348e-05/0.1126, allocations: 16 kB / 368.1 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.1126, allocations: 12 kB / 368.1 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009139/0.1135, allocations: 463.7 kB / 368.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.1155, allocations: 1.145 MB / 369.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008894/0.1164, allocations: 422.5 kB / 370.1 MB, free: 1.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005146/0.1169, allocations: 270.4 kB / 370.4 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.388e-05/0.117, allocations: 8.562 kB / 370.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.117, allocations: 35.12 kB / 370.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.124e-06/0.117, allocations: 3.938 kB / 370.4 MB, free: 1.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1827/0.2998, allocations: 2.32 MB / 372.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.2998, allocations: 59.03 kB / 372.8 MB, free: 19.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003727/0.3002, allocations: 306.3 kB / 373.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.902e-05/0.3003, allocations: 44.06 kB / 373.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3004, allocations: 184.2 kB / 373.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.3005, allocations: 210.9 kB / 373.5 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.3007, allocations: 106.6 kB / 373.6 MB, free: 19.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.655e-05/0.3008, allocations: 356.5 kB / 374 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004672/0.3013, allocations: 225.4 kB / 374.2 MB, free: 19.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004896/0.3018, allocations: 279.3 kB / 374.4 MB, free: 19.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007378/0.3025, allocations: 392.6 kB / 374.8 MB, free: 19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3026, allocations: 1.5 kB / 374.8 MB, free: 19 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001621/0.3042, allocations: 0.7553 MB / 375.6 MB, free: 18.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.3042, allocations: 6.812 kB / 375.6 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3042, allocations: 4.672 kB / 375.6 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008519/0.3051, allocations: 379.4 kB / 376 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/0.3054, allocations: 81.5 kB / 376.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.3065, allocations: 1.399 MB / 377.4 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.307, allocations: 74.89 kB / 377.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.794e-05/0.3071, allocations: 26.44 kB / 377.5 MB, free: 17.35 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.0002074/0.3073, allocations: 179.8 kB / 377.7 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.039e-05/0.3074, allocations: 41 kB / 377.8 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.3075, allocations: 61.28 kB / 377.8 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3076, allocations: 7.188 kB / 377.8 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.3076, allocations: 4.688 kB / 377.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.3076, allocations: 3.453 kB / 377.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002604/0.3102, allocations: 1.45 MB / 379.3 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3102, allocations: 5.344 kB / 379.3 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.3106, allocations: 82.3 kB / 379.4 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007448/0.3113, allocations: 347.4 kB / 379.7 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/0.3114, allocations: 23.64 kB / 379.7 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.3125, allocations: 1.368 MB / 381.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3125, allocations: 2.281 kB / 381.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.3143, allocations: 1.059 MB / 382.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002269/0.3146, allocations: 167.6 kB / 382.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.046e-05/0.3147, allocations: 20.95 kB / 382.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004192/0.3151, allocations: 61.88 kB / 382.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.3153, allocations: 102.2 kB / 382.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.411e-05/0.3154, allocations: 23.06 kB / 382.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002214/0.3156, allocations: 222.5 kB / 382.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3156, allocations: 96 / 382.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005468/0.3162, allocations: 135.1 kB / 382.9 MB, free: 14.17 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.000816/0.317, allocations: 378.9 kB / 383.3 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001294/0.3183, allocations: 0.583 MB / 383.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3183, allocations: 0 / 383.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007227/0.3191, allocations: 345.4 kB / 384.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006215/0.3197, allocations: 99.47 kB / 384.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/0.3232, allocations: 1.464 MB / 385.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.3234, allocations: 0.831 MB / 386.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001771/0.3236, allocations: 51.84 kB / 386.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.3238, allocations: 40.95 kB / 386.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3238, allocations: 0 / 386.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Templates: time 0.0149/0.3387, allocations: 9.938 MB / 396.6 MB, free: 8.188 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 gbode -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