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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001846/0.001846, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000969/0.0009689, allocations: 108.5 kB / 296.7 MB, free: 6.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009006/0.0009006, allocations: 51.92 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1928, allocations: 50.44 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003592/0.1964, allocations: 3.199 MB / 410.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.1977, allocations: 1.08 MB / 411.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.1979, allocations: 8 kB / 411.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002552/0.1981, allocations: 63.55 kB / 411.4 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002641/0.1984, allocations: 163 kB / 411.6 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002286/0.1986, allocations: 155.8 kB / 411.7 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000348/0.199, allocations: 0.6278 MB / 412.3 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.1992, allocations: 119.9 kB / 412.5 MB, free: 22.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002671/0.1994, allocations: 278.9 kB / 412.7 MB, free: 22.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.1997, allocations: 298.9 kB / 413 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.111e-05/0.1998, allocations: 28 kB / 413 MB, free: 21.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.1999, allocations: 83.92 kB / 413.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.2001, allocations: 119.5 kB / 413.2 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001606/0.2002, allocations: 246.7 kB / 413.5 MB, free: 21.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003941/0.2006, allocations: 0.6049 MB / 414.1 MB, free: 20.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2006, allocations: 0 / 414.1 MB, free: 20.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2006, allocations: 0 / 414.1 MB, free: 20.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.2007, allocations: 0 / 414.1 MB, free: 20.77 MB / 298.7 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.001207/0.2019, allocations: 0.8186 MB / 414.9 MB, free: 19.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.923e-05/0.2019, allocations: 8.031 kB / 414.9 MB, free: 19.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/0.2021, allocations: 64.36 kB / 415 MB, free: 19.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.2024, allocations: 347.1 kB / 415.3 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.2024, allocations: 29.38 kB / 415.3 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.721e-05/0.2025, allocations: 44.38 kB / 415.4 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006681/0.2032, allocations: 462.6 kB / 415.8 MB, free: 18.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/0.2032, allocations: 3.906 kB / 415.8 MB, free: 18.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.2033, allocations: 16 kB / 415.9 MB, free: 18.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.2033, allocations: 12 kB / 415.9 MB, free: 18.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007815/0.2041, allocations: 459.6 kB / 416.3 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.2057, allocations: 1.137 MB / 417.5 MB, free: 17.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006996/0.2064, allocations: 421.4 kB / 417.9 MB, free: 16.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004343/0.2068, allocations: 262.4 kB / 418.1 MB, free: 16.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.415e-05/0.2069, allocations: 8.562 kB / 418.1 MB, free: 16.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.273e-05/0.2069, allocations: 39.12 kB / 418.2 MB, free: 16.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 1.603e-06/0.2069, allocations: 0 / 418.2 MB, free: 16.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.004088/0.211, allocations: 2.285 MB / 420.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.364e-05/0.211, allocations: 59.97 kB / 420.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.2112, allocations: 296.6 kB / 420.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.2113, allocations: 49.69 kB / 420.9 MB, free: 13.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.937e-05/0.2114, allocations: 189.3 kB / 421 MB, free: 13.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.2115, allocations: 209.1 kB / 421.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.2116, allocations: 98.34 kB / 421.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.231e-05/0.2117, allocations: 354.8 kB / 421.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003876/0.2121, allocations: 225.2 kB / 421.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004006/0.2125, allocations: 272.8 kB / 422.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006128/0.2131, allocations: 382.3 kB / 422.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2131, allocations: 4 kB / 422.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001246/0.2144, allocations: 0.7247 MB / 423.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.2144, allocations: 8 kB / 423.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2144, allocations: 4.031 kB / 423.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007097/0.2151, allocations: 329.5 kB / 423.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002922/0.2154, allocations: 91.83 kB / 423.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009094/0.2164, allocations: 1.385 MB / 425.1 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000445/0.2168, allocations: 80.06 kB / 425.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.578e-05/0.2169, allocations: 16 kB / 425.2 MB, free: 9.258 MB / 298.7 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.0001528/0.217, allocations: 174.2 kB / 425.3 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.919e-05/0.2171, allocations: 51.36 kB / 425.4 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/0.2172, allocations: 59.8 kB / 425.5 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2172, allocations: 8 kB / 425.5 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2172, allocations: 4 kB / 425.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2173, allocations: 0 / 425.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002154/0.2194, allocations: 1.438 MB / 426.9 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2194, allocations: 0 / 426.9 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003271/0.2198, allocations: 88.05 kB / 427 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005646/0.2203, allocations: 301.5 kB / 427.3 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.242e-05/0.2204, allocations: 23.97 kB / 427.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008532/0.2213, allocations: 1.354 MB / 428.7 MB, free: 5.625 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2213, allocations: 4.031 kB / 428.7 MB, free: 5.621 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009323/0.2306, allocations: 7.687 MB / 436.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.2308, allocations: 172.7 kB / 436.5 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.863e-05/0.2309, allocations: 24.3 kB / 436.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004134/0.2313, allocations: 51.88 kB / 436.6 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.2316, allocations: 104.3 kB / 436.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.514e-05/0.2316, allocations: 23.98 kB / 436.7 MB, free: 13.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001991/0.2318, allocations: 219.1 kB / 436.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2318, allocations: 0 / 436.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006206/0.2324, allocations: 192 kB / 437.1 MB, free: 12.66 MB / 314.7 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.0009647/0.2334, allocations: 489.8 kB / 437.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.2346, allocations: 0.5625 MB / 438.2 MB, free: 11.78 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2346, allocations: 0 / 438.2 MB, free: 11.78 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006953/0.2353, allocations: 335 kB / 438.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000598/0.2359, allocations: 92.77 kB / 438.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004121/0.24, allocations: 2.247 MB / 440.8 MB, free: 9.035 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.2404, allocations: 0.8477 MB / 441.7 MB, free: 8.164 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001956/0.2406, allocations: 51.33 kB / 441.7 MB, free: 8.113 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.2408, allocations: 51.41 kB / 441.8 MB, free: 8.062 MB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2408, allocations: 0 / 441.8 MB, free: 8.062 MB / 314.7 MB Notification: Performance of Templates: time 0.01701/0.2578, allocations: 11.65 MB / 453.4 MB, free: 12.46 MB / 330.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches