Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009466/0.0009467, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 226.6 MB / 244.3 MB, free: 8.281 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008102/0.0008102, allocations: 105.5 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002063/0.0002064, allocations: 15.98 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1762, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002364/0.1786, allocations: 2.701 MB / 410.2 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.1799, allocations: 1.038 MB / 411.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.1801, allocations: 4 kB / 411.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.1804, allocations: 66.34 kB / 411.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.1807, allocations: 151 kB / 411.5 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.181, allocations: 142.6 kB / 411.6 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003656/0.1814, allocations: 0.5807 MB / 412.2 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.1815, allocations: 102.2 kB / 412.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/0.1818, allocations: 259 kB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.1821, allocations: 278.9 kB / 412.8 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.805e-05/0.1821, allocations: 32 kB / 412.8 MB, free: 22.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.1823, allocations: 71.98 kB / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.685e-05/0.1824, allocations: 103.6 kB / 413 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.492e-05/0.1825, allocations: 105.5 kB / 413.1 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000295/0.1828, allocations: 459.8 kB / 413.6 MB, free: 21.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1828, allocations: 4 kB / 413.6 MB, free: 21.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1828, allocations: 0 / 413.6 MB, free: 21.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.1828, allocations: 0 / 413.6 MB, free: 21.75 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.001068/0.1839, allocations: 0.7639 MB / 414.3 MB, free: 20.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.1839, allocations: 12.03 kB / 414.3 MB, free: 20.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.1841, allocations: 67.33 kB / 414.4 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.1844, allocations: 330.1 kB / 414.7 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.1844, allocations: 29 kB / 414.7 MB, free: 20.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.534e-05/0.1845, allocations: 47.95 kB / 414.8 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006834/0.1852, allocations: 466.2 kB / 415.3 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1852, allocations: 3.906 kB / 415.3 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.1853, allocations: 20 kB / 415.3 MB, free: 19.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.1853, allocations: 12 kB / 415.3 MB, free: 19.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007432/0.186, allocations: 459.7 kB / 415.7 MB, free: 19.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.1876, allocations: 1.165 MB / 416.9 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006903/0.1883, allocations: 432.7 kB / 417.3 MB, free: 17.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000411/0.1888, allocations: 270.4 kB / 417.6 MB, free: 17.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.529e-05/0.1888, allocations: 4.562 kB / 417.6 MB, free: 17.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.388e-05/0.1888, allocations: 39.12 kB / 417.6 MB, free: 17.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 1.834e-06/0.1888, allocations: 4 kB / 417.6 MB, free: 17.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.003952/0.1928, allocations: 2.383 MB / 420 MB, free: 15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.232e-05/0.1928, allocations: 67.84 kB / 420.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.1931, allocations: 296.6 kB / 420.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.1931, allocations: 45.69 kB / 420.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.423e-05/0.1932, allocations: 185.3 kB / 420.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.678e-05/0.1933, allocations: 217.1 kB / 420.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.721e-05/0.1933, allocations: 8 kB / 420.8 MB, free: 14.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.116e-05/0.1934, allocations: 358.8 kB / 421.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003693/0.1937, allocations: 217.2 kB / 421.4 MB, free: 13.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003838/0.1941, allocations: 280.8 kB / 421.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003222/0.1945, allocations: 187.2 kB / 421.8 MB, free: 13.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1945, allocations: 0 / 421.8 MB, free: 13.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001144/0.1956, allocations: 0.721 MB / 422.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.1956, allocations: 4 kB / 422.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1957, allocations: 7.984 kB / 422.6 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006479/0.1963, allocations: 325.5 kB / 422.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000286/0.1966, allocations: 83.89 kB / 423 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008661/0.1975, allocations: 1.39 MB / 424.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004465/0.1979, allocations: 100 kB / 424.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.445e-05/0.198, allocations: 24 kB / 424.5 MB, free: 10.42 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001585/0.1981, allocations: 177.7 kB / 424.7 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.369e-05/0.1982, allocations: 39.53 kB / 424.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.932e-05/0.1983, allocations: 59.8 kB / 424.8 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1984, allocations: 8 kB / 424.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1984, allocations: 0 / 424.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.1984, allocations: 3.984 kB / 424.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002066/0.2004, allocations: 1.466 MB / 426.2 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2005, allocations: 0 / 426.2 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/0.2008, allocations: 84.05 kB / 426.3 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005287/0.2013, allocations: 307.3 kB / 426.6 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.2014, allocations: 23.97 kB / 426.6 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008007/0.2022, allocations: 1.351 MB / 428 MB, free: 6.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2022, allocations: 7.938 kB / 428 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/0.2037, allocations: 1.054 MB / 429 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.2038, allocations: 172.5 kB / 429.2 MB, free: 5.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.433e-05/0.2039, allocations: 20 kB / 429.2 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004035/0.2043, allocations: 91.81 kB / 429.3 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.2045, allocations: 116.3 kB / 429.4 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.438e-05/0.2045, allocations: 19.98 kB / 429.5 MB, free: 5.238 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001505/0.2047, allocations: 215.1 kB / 429.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2047, allocations: 0 / 429.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003692/0.2051, allocations: 128 kB / 429.8 MB, free: 4.898 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006602/0.2057, allocations: 378 kB / 430.2 MB, free: 4.637 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009895/0.2067, allocations: 0.5742 MB / 430.7 MB, free: 4.066 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2068, allocations: 4 kB / 430.7 MB, free: 4.062 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005409/0.2073, allocations: 339.3 kB / 431.1 MB, free: 3.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.2078, allocations: 80.53 kB / 431.1 MB, free: 3.652 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/0.2109, allocations: 1.845 MB / 433 MB, free: 1.766 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001771/0.2111, allocations: 0.8286 MB / 433.8 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.2112, allocations: 43.42 kB / 433.9 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2112, allocations: 0 / 433.9 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of Templates: time 0.009775/0.221, allocations: 8.929 MB / 442.8 MB, free: 7.941 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches