Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009865/0.0009865, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.135/1.135, allocations: 205.1 MB / 223.8 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008757/0.0008757, allocations: 110.3 kB / 271.2 MB, free: 8.426 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007239/0.0007239, allocations: 35.95 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1862, allocations: 46.62 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003252/0.1895, allocations: 3.057 MB / 376.9 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.1908, allocations: 0.989 MB / 377.9 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.191, allocations: 4.625 kB / 377.9 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.1912, allocations: 44.94 kB / 377.9 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001727/0.1913, allocations: 120.6 kB / 378 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.1917, allocations: 186.7 kB / 378.2 MB, free: 42.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004239/0.1921, allocations: 0.6082 MB / 378.8 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.1923, allocations: 113.1 kB / 378.9 MB, free: 41.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.1925, allocations: 262.7 kB / 379.2 MB, free: 41.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.1928, allocations: 284.5 kB / 379.5 MB, free: 41.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.174e-05/0.1929, allocations: 28.91 kB / 379.5 MB, free: 41.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.193, allocations: 74.52 kB / 379.6 MB, free: 41.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.281e-05/0.1931, allocations: 107.2 kB / 379.7 MB, free: 41.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.1933, allocations: 238.3 kB / 379.9 MB, free: 41.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003797/0.1937, allocations: 0.5557 MB / 380.5 MB, free: 40.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1937, allocations: 1.312 kB / 380.5 MB, free: 40.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.1937, allocations: 0 / 380.5 MB, free: 40.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1937, allocations: 0 / 380.5 MB, free: 40.87 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001117/0.1948, allocations: 0.7813 MB / 381.2 MB, free: 40.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.827e-05/0.1948, allocations: 9.219 kB / 381.2 MB, free: 40.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.522e-05/0.1949, allocations: 53.72 kB / 381.3 MB, free: 40.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/0.1952, allocations: 322.9 kB / 381.6 MB, free: 39.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.1953, allocations: 34.22 kB / 381.6 MB, free: 39.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.144e-05/0.1954, allocations: 38.31 kB / 381.7 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000711/0.1961, allocations: 480.1 kB / 382.2 MB, free: 39.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.1961, allocations: 1.25 kB / 382.2 MB, free: 39.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.769e-05/0.1961, allocations: 15.81 kB / 382.2 MB, free: 39.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.1962, allocations: 8.812 kB / 382.2 MB, free: 39.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007929/0.197, allocations: 487.7 kB / 382.7 MB, free: 39.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.1985, allocations: 1.123 MB / 383.8 MB, free: 38.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000667/0.1992, allocations: 399.2 kB / 384.2 MB, free: 38.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004392/0.1997, allocations: 266.3 kB / 384.4 MB, free: 38.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.182e-05/0.1997, allocations: 5.719 kB / 384.4 MB, free: 38.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.4e-05/0.1997, allocations: 41.53 kB / 384.5 MB, free: 38.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.593e-06/0.1997, allocations: 0 / 384.5 MB, free: 38.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004037/0.2038, allocations: 2.333 MB / 386.8 MB, free: 36.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.887e-05/0.2038, allocations: 63.91 kB / 386.9 MB, free: 36.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.204, allocations: 287.3 kB / 387.2 MB, free: 35.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.2041, allocations: 41.7 kB / 387.2 MB, free: 35.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.803e-05/0.2041, allocations: 181.3 kB / 387.4 MB, free: 35.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.962e-05/0.2042, allocations: 193.3 kB / 387.6 MB, free: 35.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.2044, allocations: 114.2 kB / 387.7 MB, free: 35.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.785e-05/0.2044, allocations: 350.8 kB / 388 MB, free: 34.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003677/0.2048, allocations: 245.2 kB / 388.3 MB, free: 34.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003769/0.2052, allocations: 288.8 kB / 388.5 MB, free: 34.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005811/0.2058, allocations: 406.4 kB / 388.9 MB, free: 34.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2058, allocations: 4 kB / 388.9 MB, free: 34 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001242/0.207, allocations: 0.7949 MB / 389.7 MB, free: 33.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.2071, allocations: 7.938 kB / 389.7 MB, free: 33.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2071, allocations: 0 / 389.7 MB, free: 33.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007267/0.2078, allocations: 0.4974 MB / 390.2 MB, free: 32.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.2081, allocations: 91.83 kB / 390.3 MB, free: 32.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008513/0.209, allocations: 1.401 MB / 391.7 MB, free: 31.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004172/0.2094, allocations: 71.94 kB / 391.8 MB, free: 31.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-05/0.2095, allocations: 28.11 kB / 391.8 MB, free: 31.04 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 (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.0001478/0.2096, allocations: 174.1 kB / 392 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.838e-05/0.2097, allocations: 39.53 kB / 392 MB, free: 30.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.2098, allocations: 63.72 kB / 392.1 MB, free: 30.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.2098, allocations: 4 kB / 392.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.2098, allocations: 4 kB / 392.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.2098, allocations: 3.984 kB / 392.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.2119, allocations: 1.454 MB / 393.6 MB, free: 29.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.212, allocations: 4.094 kB / 393.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.2123, allocations: 87.89 kB / 393.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005739/0.2129, allocations: 477.4 kB / 394.1 MB, free: 28.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.962e-05/0.2129, allocations: 19.97 kB / 394.1 MB, free: 28.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000795/0.2137, allocations: 1.374 MB / 395.5 MB, free: 27.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.2137, allocations: 7.969 kB / 395.5 MB, free: 27.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01146/0.2252, allocations: 9.046 MB / 404.6 MB, free: 17.65 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.2254, allocations: 164.6 kB / 404.7 MB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.345e-05/0.2254, allocations: 23.98 kB / 404.7 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.2258, allocations: 56.06 kB / 404.8 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.226, allocations: 92.28 kB / 404.9 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.226, allocations: 27.97 kB / 404.9 MB, free: 17.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001325/0.2262, allocations: 210 kB / 405.1 MB, free: 17.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2262, allocations: 3.938 kB / 405.1 MB, free: 17.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005794/0.2268, allocations: 207.9 kB / 405.3 MB, free: 16.86 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 (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.000204/0.227, allocations: 163.2 kB / 405.5 MB, free: 16.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009332/0.2279, allocations: 0.6009 MB / 406.1 MB, free: 16.1 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2279, allocations: 0 / 406.1 MB, free: 16.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005566/0.2285, allocations: 338.3 kB / 406.4 MB, free: 15.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005055/0.229, allocations: 68.98 kB / 406.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003186/0.2322, allocations: 2.197 MB / 408.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001712/0.2324, allocations: 0.8319 MB / 409.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001516/0.2325, allocations: 51.25 kB / 409.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.775e-05/0.2327, allocations: 35.42 kB / 409.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2327, allocations: 0 / 409.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of Templates: time 0.01239/0.2451, allocations: 12.21 MB / 421.8 MB, free: 296 kB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches