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.00177/0.00177, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0022/0.0022, allocations: 209.7 kB / 18.79 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.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 68.84 kB / 306.9 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1019, allocations: 50.54 MB / 357.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004851/0.1068, allocations: 3.207 MB / 360.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.109, allocations: 1.119 MB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003921/0.1094, allocations: 8 kB / 361.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004335/0.1099, allocations: 67.53 kB / 361.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005591/0.1105, allocations: 155 kB / 362 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004923/0.111, allocations: 179.8 kB / 362.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007539/0.1118, allocations: 0.6356 MB / 362.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.112, allocations: 119.7 kB / 362.9 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005446/0.1126, allocations: 275 kB / 363.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004955/0.1131, allocations: 302.8 kB / 363.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.1132, allocations: 32 kB / 363.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.1135, allocations: 83.92 kB / 363.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.1138, allocations: 123.5 kB / 363.7 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003066/0.1141, allocations: 242.8 kB / 363.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000548/0.1146, allocations: 479.1 kB / 364.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1147, allocations: 4 kB / 364.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1147, allocations: 4 kB / 364.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.151e-05/0.1147, allocations: 0 / 364.4 MB, free: 7.406 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.001697/0.1164, allocations: 0.8186 MB / 365.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/0.1165, allocations: 12.03 kB / 365.3 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002872/0.1168, allocations: 60.27 kB / 365.3 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000486/0.1173, allocations: 347.2 kB / 365.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.828e-05/0.1173, allocations: 37.31 kB / 365.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.654e-05/0.1174, allocations: 44.28 kB / 365.7 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009281/0.1183, allocations: 474.6 kB / 366.2 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.1184, allocations: 8 kB / 366.2 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.846e-05/0.1184, allocations: 12 kB / 366.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.1185, allocations: 12 kB / 366.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009966/0.1195, allocations: 467.7 kB / 366.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.1217, allocations: 1.145 MB / 367.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009139/0.1227, allocations: 428.9 kB / 368.2 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005408/0.1232, allocations: 270.4 kB / 368.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.994e-05/0.1233, allocations: 12.55 kB / 368.5 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.1233, allocations: 35.12 kB / 368.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 3.176e-06/0.1233, allocations: 0 / 368.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.005442/0.1288, allocations: 2.324 MB / 370.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.1288, allocations: 55.97 kB / 370.9 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003926/0.1292, allocations: 304.6 kB / 371.2 MB, free: 288 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.547e-05/0.1293, allocations: 49.69 kB / 371.3 MB, free: 232 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.1295, allocations: 181.4 kB / 371.5 MB, free: 48 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1742/0.3037, allocations: 210.9 kB / 371.7 MB, free: 21.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003832/0.3041, allocations: 107.4 kB / 371.8 MB, free: 21.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3042, allocations: 352.2 kB / 372.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006448/0.3049, allocations: 227.5 kB / 372.3 MB, free: 20.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006239/0.3055, allocations: 281.2 kB / 372.6 MB, free: 20.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008583/0.3064, allocations: 391.2 kB / 373 MB, free: 20.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3064, allocations: 1.125 kB / 373 MB, free: 20.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001806/0.3082, allocations: 0.75 MB / 373.7 MB, free: 20.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.3083, allocations: 6.406 kB / 373.8 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.3083, allocations: 2.375 kB / 373.8 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009558/0.3093, allocations: 373.7 kB / 374.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.3096, allocations: 90.05 kB / 374.2 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.3109, allocations: 1.395 MB / 375.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005436/0.3115, allocations: 80.77 kB / 375.7 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.431e-05/0.3116, allocations: 17.64 kB / 375.7 MB, free: 18.85 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.0002421/0.3118, allocations: 177.7 kB / 375.9 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.3119, allocations: 48 kB / 375.9 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.3121, allocations: 66.91 kB / 376 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.3121, allocations: 6.875 kB / 376 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.3121, allocations: 6.125 kB / 376 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.3121, allocations: 2.812 kB / 376 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/0.315, allocations: 1.451 MB / 377.4 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.315, allocations: 1.375 kB / 377.4 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003679/0.3154, allocations: 81.59 kB / 377.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007634/0.3162, allocations: 354.1 kB / 377.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6e-05/0.3162, allocations: 23.47 kB / 377.9 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.3173, allocations: 1.368 MB / 379.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3174, allocations: 2.188 kB / 379.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.3194, allocations: 1.061 MB / 380.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002524/0.3196, allocations: 168.6 kB / 380.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3197, allocations: 20.84 kB / 380.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004598/0.3202, allocations: 63.11 kB / 380.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002567/0.3205, allocations: 97.22 kB / 380.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.421e-05/0.3205, allocations: 28.27 kB / 380.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.3208, allocations: 215.9 kB / 380.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3208, allocations: 1.219 kB / 380.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005642/0.3214, allocations: 129.9 kB / 381 MB, free: 15.67 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.0009368/0.3223, allocations: 389.8 kB / 381.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.3237, allocations: 0.5716 MB / 382 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3238, allocations: 1.344 kB / 382 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000785/0.3246, allocations: 330.8 kB / 382.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000683/0.3252, allocations: 89.03 kB / 382.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003905/0.3292, allocations: 1.702 MB / 384.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.3295, allocations: 0.8283 MB / 384.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.3297, allocations: 41.23 kB / 385 MB, free: 13.43 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3297, allocations: 0 / 385 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01516/0.3449, allocations: 9.063 MB / 394 MB, free: 9.805 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/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_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches