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.00103/0.00103, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.001292/0.001292, allocations: 177 kB / 17.56 MB, free: 6.18 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.317/1.317, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.0002626, allocations: 12.66 kB / 301.4 MB, free: 5.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09614/0.09642, allocations: 50.41 MB / 351.8 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003577/0.1, allocations: 2.687 MB / 354.5 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.1021, allocations: 0.9349 MB / 355.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004064/0.1025, allocations: 11.94 kB / 355.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003058/0.1028, allocations: 47.62 kB / 355.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004485/0.1033, allocations: 107.1 kB / 355.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006292/0.1039, allocations: 183.7 kB / 355.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008286/0.1048, allocations: 0.6122 MB / 356.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002673/0.1051, allocations: 99.94 kB / 356.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004899/0.1056, allocations: 251 kB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004661/0.106, allocations: 270.9 kB / 357 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.1062, allocations: 24 kB / 357 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002708/0.1064, allocations: 79.88 kB / 357.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.1066, allocations: 99.58 kB / 357.2 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.1069, allocations: 240.5 kB / 357.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005967/0.1075, allocations: 0.549 MB / 358 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1075, allocations: 3.984 kB / 358 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.008e-06/0.1075, allocations: 0 / 358 MB, free: 13.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.26e-05/0.1075, allocations: 3.938 kB / 358 MB, free: 13.28 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.001582/0.1091, allocations: 0.7136 MB / 358.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.1092, allocations: 8.031 kB / 358.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.1093, allocations: 52.38 kB / 358.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004927/0.1098, allocations: 339.1 kB / 359.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/0.1099, allocations: 29.38 kB / 359.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.11, allocations: 36.38 kB / 359.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.111, allocations: 490.6 kB / 359.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.1111, allocations: 3.906 kB / 359.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.715e-05/0.1111, allocations: 16 kB / 359.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.1111, allocations: 12 kB / 359.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009707/0.1121, allocations: 487.7 kB / 360.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002192/0.1143, allocations: 1.149 MB / 361.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008406/0.1152, allocations: 401.1 kB / 361.7 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005402/0.1157, allocations: 285.2 kB / 362 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.1158, allocations: 4.438 kB / 362 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.1158, allocations: 39 kB / 362 MB, free: 9.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.963e-06/0.1158, allocations: 0 / 362 MB, free: 9.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005531/0.1214, allocations: 2.456 MB / 364.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.1214, allocations: 67.91 kB / 364.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003069/0.1217, allocations: 279.4 kB / 364.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.428e-05/0.1218, allocations: 45.69 kB / 364.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.122, allocations: 181.3 kB / 365 MB, free: 5.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.1221, allocations: 197.3 kB / 365.2 MB, free: 5.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.169e-05/0.1222, allocations: 49.69 kB / 365.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002135/0.1224, allocations: 346.8 kB / 365.6 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.123, allocations: 257.2 kB / 365.9 MB, free: 5.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005266/0.1235, allocations: 292.8 kB / 366.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008066/0.1243, allocations: 426.3 kB / 366.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1243, allocations: 0 / 366.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001758/0.1261, allocations: 0.7951 MB / 367.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.1261, allocations: 8 kB / 367.4 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1261, allocations: 4 kB / 367.4 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.1272, allocations: 0.4973 MB / 367.9 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003556/0.1276, allocations: 91.89 kB / 368 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.1289, allocations: 1.405 MB / 369.4 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005558/0.1295, allocations: 100 kB / 369.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-05/0.1296, allocations: 23.98 kB / 369.5 MB, free: 1.367 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.0002503/0.1298, allocations: 184.6 kB / 369.7 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.012e-05/0.1299, allocations: 39.53 kB / 369.7 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/0.1301, allocations: 55.73 kB / 369.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.1301, allocations: 4 kB / 369.8 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.1301, allocations: 4 kB / 369.8 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.1301, allocations: 3.984 kB / 369.8 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1702/0.3003, allocations: 1.481 MB / 371.3 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3003, allocations: 2.562 kB / 371.3 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003914/0.3007, allocations: 87.67 kB / 371.3 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008597/0.3016, allocations: 490.3 kB / 371.8 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.142e-05/0.3016, allocations: 21.64 kB / 371.8 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/0.3027, allocations: 1.376 MB / 373.2 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3027, allocations: 8.5 kB / 373.2 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.3048, allocations: 1.108 MB / 374.3 MB, free: 23.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002526/0.3051, allocations: 165.5 kB / 374.5 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.747e-05/0.3052, allocations: 19.64 kB / 374.5 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004597/0.3057, allocations: 80.67 kB / 374.6 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.3059, allocations: 94.5 kB / 374.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.301e-05/0.306, allocations: 23.39 kB / 374.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002303/0.3062, allocations: 203 kB / 374.9 MB, free: 23.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3062, allocations: 0 / 374.9 MB, free: 23.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005688/0.3068, allocations: 136.7 kB / 375 MB, free: 23.42 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.0002351/0.307, allocations: 147.9 kB / 375.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.3083, allocations: 0.6076 MB / 375.8 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3083, allocations: 0 / 375.8 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000708/0.309, allocations: 348.6 kB / 376.1 MB, free: 23.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006375/0.3097, allocations: 69.39 kB / 376.2 MB, free: 23.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.3136, allocations: 1.828 MB / 378 MB, free: 22.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.3139, allocations: 0.8222 MB / 378.9 MB, free: 21.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001775/0.3141, allocations: 42.53 kB / 378.9 MB, free: 21.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.715e-05/0.3142, allocations: 35.56 kB / 378.9 MB, free: 21.52 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3142, allocations: 0 / 378.9 MB, free: 21.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01467/0.3289, allocations: 9.234 MB / 388.2 MB, free: 18.38 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