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.001273/0.001273, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 66.92 kB / 307 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1042, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004761/0.109, allocations: 3.173 MB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.111, allocations: 1.115 MB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/0.1112, allocations: 7.938 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003372/0.1115, allocations: 87.22 kB / 361.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004111/0.1119, allocations: 182.7 kB / 362.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004866/0.1124, allocations: 199.6 kB / 362.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007388/0.1132, allocations: 0.6668 MB / 363 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002866/0.1135, allocations: 140 kB / 363.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004649/0.114, allocations: 291.1 kB / 363.4 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004473/0.1144, allocations: 322.7 kB / 363.7 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.974e-05/0.1146, allocations: 52 kB / 363.7 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002573/0.1148, allocations: 104 kB / 363.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000203/0.115, allocations: 143.6 kB / 364 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002842/0.1153, allocations: 266.6 kB / 364.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007619/0.1161, allocations: 0.631 MB / 364.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1161, allocations: 0 / 364.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1161, allocations: 4 kB / 364.9 MB, free: 6.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.1161, allocations: 0 / 364.9 MB, free: 6.688 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.001626/0.1178, allocations: 0.8302 MB / 365.7 MB, free: 5.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.1178, allocations: 8.031 kB / 365.7 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002283/0.118, allocations: 64.27 kB / 365.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000464/0.1185, allocations: 339.2 kB / 366.1 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.867e-05/0.1186, allocations: 33.38 kB / 366.1 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.078e-05/0.1187, allocations: 44.28 kB / 366.2 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.1197, allocations: 478.5 kB / 366.7 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.852e-05/0.1197, allocations: 15.98 kB / 366.7 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.55e-05/0.1198, allocations: 16 kB / 366.7 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.1198, allocations: 12 kB / 366.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1209, allocations: 463.7 kB / 367.1 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.1231, allocations: 1.145 MB / 368.3 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00096/0.124, allocations: 430.5 kB / 368.7 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00057/0.1246, allocations: 266.4 kB / 369 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.69e-05/0.1247, allocations: 8.562 kB / 369 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.1247, allocations: 39.11 kB / 369 MB, free: 2.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.235e-06/0.1247, allocations: 0 / 369 MB, free: 2.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1693/0.294, allocations: 2.323 MB / 371.3 MB, free: 20.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.2941, allocations: 57.91 kB / 371.4 MB, free: 20.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004163/0.2945, allocations: 314.5 kB / 371.7 MB, free: 20.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.2946, allocations: 42.41 kB / 371.7 MB, free: 19.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2947, allocations: 184.6 kB / 371.9 MB, free: 19.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.2949, allocations: 213.8 kB / 372.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.2951, allocations: 108 kB / 372.2 MB, free: 19.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.618e-05/0.2952, allocations: 351.5 kB / 372.6 MB, free: 19.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004859/0.2957, allocations: 228.3 kB / 372.8 MB, free: 19.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004936/0.2962, allocations: 276.3 kB / 373.1 MB, free: 19.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007431/0.2969, allocations: 396.2 kB / 373.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2969, allocations: 1.422 kB / 373.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001563/0.2985, allocations: 0.7535 MB / 374.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2985, allocations: 5.844 kB / 374.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2985, allocations: 0.7031 kB / 374.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008797/0.2994, allocations: 377.5 kB / 374.6 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.2998, allocations: 88.36 kB / 374.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009876/0.3007, allocations: 1.4 MB / 376.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005016/0.3013, allocations: 74.14 kB / 376.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.142e-05/0.3013, allocations: 20.84 kB / 376.2 MB, free: 17.75 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.0001852/0.3015, allocations: 170.8 kB / 376.3 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.958e-05/0.3016, allocations: 45.28 kB / 376.4 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.3017, allocations: 67.34 kB / 376.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3017, allocations: 5.625 kB / 376.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3018, allocations: 1.953 kB / 376.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3018, allocations: 2.719 kB / 376.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002458/0.3042, allocations: 1.456 MB / 377.9 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.3042, allocations: 4.297 kB / 377.9 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003378/0.3046, allocations: 83.23 kB / 378 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000662/0.3053, allocations: 347.6 kB / 378.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.537e-05/0.3053, allocations: 22.11 kB / 378.4 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000932/0.3063, allocations: 1.361 MB / 379.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3063, allocations: 5.125 kB / 379.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.308, allocations: 1.055 MB / 380.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.3082, allocations: 172.7 kB / 381 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.851e-05/0.3083, allocations: 27.95 kB / 381 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004305/0.3087, allocations: 64.39 kB / 381 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.309, allocations: 98.17 kB / 381.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.503e-05/0.309, allocations: 23.66 kB / 381.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001942/0.3092, allocations: 218.5 kB / 381.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3092, allocations: 0 / 381.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004526/0.3097, allocations: 125.3 kB / 381.5 MB, free: 14.57 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.00123/0.3109, allocations: 384.9 kB / 381.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.3122, allocations: 0.5999 MB / 382.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.3123, allocations: 4.688 kB / 382.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006749/0.3129, allocations: 340.3 kB / 382.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000605/0.3136, allocations: 106.9 kB / 382.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.3171, allocations: 1.479 MB / 384.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.3174, allocations: 0.8269 MB / 385.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001768/0.3176, allocations: 48.95 kB / 385.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.3177, allocations: 41.31 kB / 385.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.3177, allocations: 4 kB / 385.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01448/0.3322, allocations: 9.942 MB / 395.3 MB, free: 8.609 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches