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.001235/0.001235, allocations: 114.6 kB / 17.7 MB, free: 5.309 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.001301/0.001301, allocations: 191 kB / 18.63 MB, free: 4.379 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.379/1.379, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 44.3 kB / 302.1 MB, free: 5.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1033, allocations: 49.44 MB / 351.5 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004325/0.1077, allocations: 3.035 MB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.1092, allocations: 0.927 MB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.1094, allocations: 8 kB / 355.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.1097, allocations: 67.31 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002136/0.1099, allocations: 126.9 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004964/0.1104, allocations: 227.6 kB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005811/0.111, allocations: 0.6356 MB / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.1113, allocations: 132.2 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003353/0.1116, allocations: 275.1 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003724/0.112, allocations: 302.9 kB / 357.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.129e-05/0.1121, allocations: 48 kB / 357.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001895/0.1123, allocations: 107.9 kB / 357.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.1124, allocations: 123.6 kB / 357.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.1126, allocations: 246.8 kB / 357.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005186/0.1132, allocations: 0.5918 MB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1132, allocations: 0 / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1132, allocations: 0 / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1132, allocations: 0 / 358.3 MB, free: 12.88 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.001295/0.1145, allocations: 0.7874 MB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.1145, allocations: 8.031 kB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.815e-05/0.1146, allocations: 48.38 kB / 359.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004622/0.1151, allocations: 335.2 kB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.116e-05/0.1152, allocations: 29.38 kB / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.754e-05/0.1153, allocations: 40.38 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008171/0.1161, allocations: 482.5 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.1161, allocations: 7.906 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.1162, allocations: 16 kB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1162, allocations: 12 kB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008739/0.1171, allocations: 471.7 kB / 360.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.119, allocations: 1.11 MB / 361.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007711/0.1198, allocations: 404.2 kB / 362 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005072/0.1203, allocations: 270 kB / 362.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.1203, allocations: 8.438 kB / 362.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.1204, allocations: 35 kB / 362.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.124e-06/0.1204, allocations: 0 / 362.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004814/0.1252, allocations: 2.339 MB / 364.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.1252, allocations: 63.97 kB / 364.7 MB, free: 6.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002828/0.1255, allocations: 283.3 kB / 365 MB, free: 5.859 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.301e-05/0.1256, allocations: 41.7 kB / 365 MB, free: 5.812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.1257, allocations: 189.2 kB / 365.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.1259, allocations: 189.4 kB / 365.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.1261, allocations: 106.2 kB / 365.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1262, allocations: 350.8 kB / 365.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00045/0.1267, allocations: 249.2 kB / 366.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004826/0.1271, allocations: 288.8 kB / 366.4 MB, free: 4.441 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007157/0.1279, allocations: 410.4 kB / 366.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1279, allocations: 0 / 366.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001552/0.1294, allocations: 0.7872 MB / 367.6 MB, free: 3.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1295, allocations: 8 kB / 367.6 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1295, allocations: 4.031 kB / 367.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008608/0.1304, allocations: 0.5012 MB / 368.1 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003244/0.1307, allocations: 87.83 kB / 368.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.1319, allocations: 1.401 MB / 369.6 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004366/0.1324, allocations: 79.92 kB / 369.7 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.665e-05/0.1324, allocations: 16 kB / 369.7 MB, free: 1.086 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.0002189/0.1327, allocations: 188.9 kB / 369.9 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.331e-05/0.1328, allocations: 43.52 kB / 369.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.1329, allocations: 55.73 kB / 370 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.1329, allocations: 8 kB / 370 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1329, allocations: 0 / 370 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1329, allocations: 0 / 370 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1663/0.2992, allocations: 1.443 MB / 371.4 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.2993, allocations: 1.25 kB / 371.4 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004146/0.2997, allocations: 83.72 kB / 371.5 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009766/0.3007, allocations: 482 kB / 372 MB, free: 25.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.884e-05/0.3008, allocations: 23.58 kB / 372 MB, free: 25.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.3019, allocations: 1.376 MB / 373.4 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.302, allocations: 2.562 kB / 373.4 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.304, allocations: 1.096 MB / 374.5 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.3043, allocations: 169.6 kB / 374.6 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.252e-05/0.3043, allocations: 16.25 kB / 374.6 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.3048, allocations: 61.55 kB / 374.7 MB, free: 24.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.305, allocations: 99.09 kB / 374.8 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.767e-05/0.305, allocations: 23.23 kB / 374.8 MB, free: 24.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001981/0.3052, allocations: 202 kB / 375 MB, free: 24.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3052, allocations: 0 / 375 MB, free: 24.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000512/0.3058, allocations: 136.9 kB / 375.1 MB, free: 24.25 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.0002319/0.306, allocations: 141.4 kB / 375.3 MB, free: 24.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.3072, allocations: 0.5894 MB / 375.9 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3073, allocations: 0 / 375.9 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006831/0.3079, allocations: 351.1 kB / 376.2 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005653/0.3085, allocations: 76.55 kB / 376.3 MB, free: 23.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.3119, allocations: 1.424 MB / 377.7 MB, free: 23.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002607/0.3122, allocations: 0.8208 MB / 378.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.3123, allocations: 40.89 kB / 378.6 MB, free: 22.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3124, allocations: 38.91 kB / 378.6 MB, free: 22.42 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3125, allocations: 0 / 378.6 MB, free: 22.42 MB / 302.1 MB Notification: Performance of Templates: time 0.0156/0.3281, allocations: 9.944 MB / 388.6 MB, free: 18.96 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 -s cvode -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/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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches