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.00165/0.00165, allocations: 108.5 kB / 17.16 MB, free: 6.324 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.001847/0.001847, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.338/1.338, allocations: 222.9 MB / 241.8 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 37.97 kB / 300.6 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09913/0.1002, allocations: 49.46 MB / 350.1 MB, free: 4.891 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00422/0.1044, allocations: 3.058 MB / 353.1 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.1061, allocations: 0.9427 MB / 354.1 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.1062, allocations: 7.938 kB / 354.1 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002376/0.1065, allocations: 47.64 kB / 354.1 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002275/0.1068, allocations: 107.1 kB / 354.2 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.1072, allocations: 195.7 kB / 354.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005023/0.1077, allocations: 0.5967 MB / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002169/0.108, allocations: 119.8 kB / 355.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003228/0.1083, allocations: 255 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003586/0.1087, allocations: 290.8 kB / 355.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.461e-05/0.1087, allocations: 28 kB / 355.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000172/0.1089, allocations: 75.95 kB / 355.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.109, allocations: 99.58 kB / 355.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002156/0.1093, allocations: 230.8 kB / 356.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003824/0.1097, allocations: 435.2 kB / 356.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1097, allocations: 3.938 kB / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.1097, allocations: 0 / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1097, allocations: 0 / 356.5 MB, free: 14.39 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.001378/0.1111, allocations: 0.7797 MB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.1111, allocations: 8.031 kB / 357.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.1112, allocations: 48.38 kB / 357.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.1116, allocations: 331.2 kB / 357.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.297e-05/0.1116, allocations: 29.38 kB / 357.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.884e-05/0.1117, allocations: 44.38 kB / 357.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008472/0.1126, allocations: 478.6 kB / 358.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.1126, allocations: 7.906 kB / 358.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.75e-05/0.1127, allocations: 12 kB / 358.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.1127, allocations: 12 kB / 358.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008822/0.1136, allocations: 487.7 kB / 358.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.1155, allocations: 1.125 MB / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007861/0.1163, allocations: 384.3 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005117/0.1168, allocations: 274 kB / 360.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.482e-05/0.1169, allocations: 8.438 kB / 360.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.1169, allocations: 39 kB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.134e-06/0.1169, allocations: 0 / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004811/0.1217, allocations: 2.335 MB / 362.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.1218, allocations: 59.97 kB / 362.9 MB, free: 7.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002679/0.1221, allocations: 283.3 kB / 363.2 MB, free: 7.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.901e-05/0.1221, allocations: 41.7 kB / 363.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.1222, allocations: 189.2 kB / 363.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.1224, allocations: 189.4 kB / 363.6 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.1226, allocations: 114.2 kB / 363.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1227, allocations: 346.8 kB / 364.1 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004505/0.1232, allocations: 237.2 kB / 364.3 MB, free: 6.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000478/0.1236, allocations: 292.8 kB / 364.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007132/0.1244, allocations: 414.3 kB / 365 MB, free: 5.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1244, allocations: 0 / 365 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001586/0.126, allocations: 0.7872 MB / 365.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.126, allocations: 8 kB / 365.8 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.076e-06/0.126, allocations: 0 / 365.8 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009321/0.1269, allocations: 0.5012 MB / 366.3 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.1273, allocations: 91.88 kB / 366.4 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.1286, allocations: 1.405 MB / 367.8 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004822/0.1291, allocations: 76.06 kB / 367.8 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.812e-05/0.1291, allocations: 19.98 kB / 367.9 MB, free: 2.609 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.0002617/0.1294, allocations: 177.5 kB / 368 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.353e-05/0.1295, allocations: 39.53 kB / 368.1 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.1296, allocations: 59.73 kB / 368.1 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1296, allocations: 4 kB / 368.1 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.1297, allocations: 0 / 368.1 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.1297, allocations: 3.984 kB / 368.1 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00287/0.1325, allocations: 1.458 MB / 369.6 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.1326, allocations: 3.938 kB / 369.6 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003742/0.133, allocations: 79.89 kB / 369.7 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007981/0.1338, allocations: 489.4 kB / 370.2 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.141e-05/0.1338, allocations: 23.97 kB / 370.2 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.173/0.3069, allocations: 1.369 MB / 371.6 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.3069, allocations: 2.938 kB / 371.6 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002169/0.3091, allocations: 1.087 MB / 372.6 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.3093, allocations: 168.5 kB / 372.8 MB, free: 25.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.759e-05/0.3094, allocations: 17.67 kB / 372.8 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004134/0.3098, allocations: 59.23 kB / 372.9 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/0.3101, allocations: 102 kB / 373 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-05/0.3101, allocations: 23.03 kB / 373 MB, free: 25.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.3103, allocations: 203.9 kB / 373.2 MB, free: 25.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3104, allocations: 0.9375 kB / 373.2 MB, free: 25.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004847/0.3108, allocations: 131.7 kB / 373.3 MB, free: 25.11 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.0002109/0.3111, allocations: 142.2 kB / 373.5 MB, free: 25.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.3123, allocations: 0.5855 MB / 374.1 MB, free: 24.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3124, allocations: 2.875 kB / 374.1 MB, free: 24.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006877/0.3131, allocations: 332.9 kB / 374.4 MB, free: 24.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006112/0.3137, allocations: 80.02 kB / 374.5 MB, free: 24.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00349/0.3172, allocations: 1.646 MB / 376.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.3175, allocations: 0.8178 MB / 376.9 MB, free: 23.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.3176, allocations: 37.91 kB / 377 MB, free: 23.11 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3176, allocations: 4 kB / 377 MB, free: 23.11 MB / 302.1 MB Notification: Performance of Templates: time 0.01198/0.3296, allocations: 8.524 MB / 385.5 MB, free: 20.36 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/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