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.001013/0.001013, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001216/0.001216, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.392/1.392, allocations: 223.3 MB / 241.2 MB, free: 5.285 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002593/0.0002593, allocations: 6.562 kB / 300.8 MB, free: 5.613 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.09874, allocations: 50.42 MB / 351.2 MB, free: 11.49 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002895/0.1017, allocations: 2.59 MB / 353.8 MB, free: 8.883 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.103, allocations: 0.8924 MB / 354.7 MB, free: 7.984 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.1032, allocations: 15.88 kB / 354.7 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.1034, allocations: 47.62 kB / 354.8 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001891/0.1036, allocations: 107.1 kB / 354.9 MB, free: 7.816 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003939/0.104, allocations: 171.7 kB / 355.1 MB, free: 7.648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004843/0.1045, allocations: 0.5615 MB / 355.6 MB, free: 7.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.1047, allocations: 98.23 kB / 355.7 MB, free: 6.984 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/0.1049, allocations: 239.1 kB / 355.9 MB, free: 6.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003088/0.1053, allocations: 263 kB / 356.2 MB, free: 6.492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.23e-05/0.1053, allocations: 28 kB / 356.2 MB, free: 6.465 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001433/0.1055, allocations: 67.95 kB / 356.3 MB, free: 6.398 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1056, allocations: 95.64 kB / 356.4 MB, free: 6.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.518e-05/0.1057, allocations: 97.45 kB / 356.5 MB, free: 6.203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000373/0.1061, allocations: 418.9 kB / 356.9 MB, free: 5.793 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1061, allocations: 4 kB / 356.9 MB, free: 5.789 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1061, allocations: 0 / 356.9 MB, free: 5.789 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1061, allocations: 0 / 356.9 MB, free: 5.789 MB / 286.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.00116/0.1073, allocations: 0.7212 MB / 357.6 MB, free: 5.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.1073, allocations: 16.02 kB / 357.6 MB, free: 5.004 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.347e-05/0.1074, allocations: 51.34 kB / 357.7 MB, free: 4.953 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003526/0.1078, allocations: 314.2 kB / 358 MB, free: 4.605 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.325e-05/0.1078, allocations: 33 kB / 358 MB, free: 4.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.265e-05/0.1079, allocations: 39.91 kB / 358.1 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008273/0.1087, allocations: 478.3 kB / 358.5 MB, free: 4.059 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.1088, allocations: 4 kB / 358.5 MB, free: 4.055 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.529e-05/0.1088, allocations: 19.98 kB / 358.6 MB, free: 4.035 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.1088, allocations: 11.95 kB / 358.6 MB, free: 4.023 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000895/0.1097, allocations: 499.6 kB / 359.1 MB, free: 3.539 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.1116, allocations: 1.145 MB / 360.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007289/0.1123, allocations: 397.6 kB / 360.6 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004786/0.1128, allocations: 274 kB / 360.9 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.347e-05/0.1129, allocations: 12.44 kB / 360.9 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.1129, allocations: 38.94 kB / 360.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 1.583e-06/0.1129, allocations: 0 / 360.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005506/0.1184, allocations: 2.44 MB / 363.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.1185, allocations: 59.97 kB / 363.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004319/0.1189, allocations: 287.2 kB / 363.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.719e-05/0.119, allocations: 49.69 kB / 363.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.1192, allocations: 185.3 kB / 363.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002023/0.1194, allocations: 189.2 kB / 364.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.1195, allocations: 12 kB / 364.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002138/0.1197, allocations: 346.8 kB / 364.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006493/0.1203, allocations: 253.2 kB / 364.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006833/0.121, allocations: 292.7 kB / 365 MB, free: 13.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005767/0.1216, allocations: 211.1 kB / 365.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1216, allocations: 4 kB / 365.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00213/0.1238, allocations: 0.7446 MB / 365.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/0.1238, allocations: 8 kB / 365.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1238, allocations: 0 / 365.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.1251, allocations: 0.4973 MB / 366.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004906/0.1256, allocations: 91.89 kB / 366.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001793/0.1274, allocations: 1.409 MB / 367.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006881/0.1281, allocations: 108 kB / 368 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.151e-05/0.1282, allocations: 20 kB / 368.1 MB, free: 10.2 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 (57): * Single equations (assignments): 55 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003408/0.1286, allocations: 161.6 kB / 368.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.1287, allocations: 43.52 kB / 368.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001991/0.1289, allocations: 55.75 kB / 368.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-05/0.1289, allocations: 16.03 kB / 368.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.129, allocations: 3.938 kB / 368.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.129, allocations: 0 / 368.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003947/0.1329, allocations: 1.478 MB / 369.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.133, allocations: 160 / 369.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000612/0.1336, allocations: 95.83 kB / 369.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.1348, allocations: 489.3 kB / 370.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.082e-05/0.1348, allocations: 15.98 kB / 370.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001592/0.1364, allocations: 1.382 MB / 371.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.1365, allocations: 4.031 kB / 371.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002845/0.1393, allocations: 1.107 MB / 372.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002862/0.1396, allocations: 164.6 kB / 373.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.1398, allocations: 20 kB / 373.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005901/0.1404, allocations: 83.92 kB / 373.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.1406, allocations: 112.2 kB / 373.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.847e-05/0.1407, allocations: 27.97 kB / 373.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003456/0.1411, allocations: 201.9 kB / 373.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1411, allocations: 0 / 373.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007674/0.1419, allocations: 132 kB / 373.6 MB, free: 4.441 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 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002811/0.1422, allocations: 143.1 kB / 373.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.1439, allocations: 0.6005 MB / 374.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1439, allocations: 0 / 374.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009863/0.1449, allocations: 338.4 kB / 374.7 MB, free: 3.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000867/0.1458, allocations: 68.94 kB / 374.8 MB, free: 3.293 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005377/0.1512, allocations: 1.778 MB / 376.5 MB, free: 1.473 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.1517, allocations: 0.8127 MB / 377.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002578/0.152, allocations: 47.2 kB / 377.4 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.1521, allocations: 31.42 kB / 377.4 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of SimCode: time 2.876e-06/0.1521, allocations: 0 / 377.4 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of Templates: time 0.01466/0.1668, allocations: 8.983 MB / 386.4 MB, free: 7.613 MB / 318.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