Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001922/0.001922, allocations: 108.2 kB / 16.92 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00298/0.00298, allocations: 191.5 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.967/1.967, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 47.75 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.166, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.009109/0.1752, allocations: 3.026 MB / 353.2 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003393/0.1787, allocations: 0.9271 MB / 354.1 MB, free: 336 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005035/0.1792, allocations: 8 kB / 354.1 MB, free: 328 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005716/0.1799, allocations: 63.31 kB / 354.2 MB, free: 264 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008529/0.1808, allocations: 134.8 kB / 354.3 MB, free: 128 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.1819, allocations: 219.6 kB / 354.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001171/0.1831, allocations: 0.6356 MB / 355.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003728/0.1835, allocations: 128.2 kB / 355.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007121/0.1842, allocations: 271.1 kB / 355.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00074/0.185, allocations: 298.9 kB / 355.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002224/0.1853, allocations: 52 kB / 355.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004203/0.1857, allocations: 95.89 kB / 356 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002831/0.186, allocations: 127.6 kB / 356.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005678/0.1866, allocations: 246.8 kB / 356.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.1877, allocations: 0.5882 MB / 356.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.988e-06/0.1878, allocations: 4 kB / 357 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1878, allocations: 0 / 357 MB, free: 13.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.044e-05/0.1878, allocations: 0 / 357 MB, free: 13.48 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002834/0.1907, allocations: 0.7796 MB / 357.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.311e-05/0.1907, allocations: 12.03 kB / 357.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003218/0.1911, allocations: 87.55 kB / 357.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002628/0.1913, allocations: 60.31 kB / 357.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008277/0.1922, allocations: 327.2 kB / 358.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.294e-05/0.1923, allocations: 33.38 kB / 358.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.1925, allocations: 44.28 kB / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.1942, allocations: 486.4 kB / 358.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.993e-05/0.1942, allocations: 4 kB / 358.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.393e-05/0.1943, allocations: 16 kB / 358.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.1943, allocations: 8 kB / 358.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/0.196, allocations: 487.7 kB / 359.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00378/0.1998, allocations: 1.137 MB / 360.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.2012, allocations: 396.2 kB / 360.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009153/0.2022, allocations: 274 kB / 361.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.93e-05/0.2023, allocations: 8.422 kB / 361.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.443e-05/0.2023, allocations: 38.94 kB / 361.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 4.298e-06/0.2023, allocations: 0 / 361.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.008745/0.2111, allocations: 2.346 MB / 363.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/0.2112, allocations: 59.97 kB / 363.5 MB, free: 6.605 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006177/0.2119, allocations: 283.3 kB / 363.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.762e-05/0.212, allocations: 41.7 kB / 363.8 MB, free: 6.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.2123, allocations: 189.2 kB / 364 MB, free: 6.082 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003328/0.2126, allocations: 197.3 kB / 364.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003564/0.213, allocations: 106.3 kB / 364.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002138/0.2132, allocations: 350.8 kB / 364.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000827/0.214, allocations: 241.2 kB / 364.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000894/0.215, allocations: 292.7 kB / 365.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/0.2163, allocations: 410.4 kB / 365.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.2164, allocations: 4 kB / 365.6 MB, free: 4.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003001/0.2194, allocations: 0.7872 MB / 366.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.2194, allocations: 4 kB / 366.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.2195, allocations: 0 / 366.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/0.221, allocations: 0.4973 MB / 366.9 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005506/0.2216, allocations: 91.83 kB / 367 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/0.2239, allocations: 1.409 MB / 368.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008945/0.2248, allocations: 72.03 kB / 368.4 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.2249, allocations: 27.92 kB / 368.5 MB, free: 1.531 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 (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.000457/0.2254, allocations: 169.6 kB / 368.6 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/0.2256, allocations: 43.47 kB / 368.7 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002356/0.2259, allocations: 59.73 kB / 368.7 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.2259, allocations: 4 kB / 368.7 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.2259, allocations: 0 / 368.7 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.891e-05/0.2259, allocations: 11.98 kB / 368.7 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3409/0.5668, allocations: 1.45 MB / 370.2 MB, free: 25.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-05/0.5669, allocations: 2.094 kB / 370.2 MB, free: 25.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005644/0.5675, allocations: 82.83 kB / 370.3 MB, free: 25.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/0.5686, allocations: 481.6 kB / 370.7 MB, free: 25.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/0.5688, allocations: 22.08 kB / 370.8 MB, free: 25.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001469/0.5703, allocations: 1.372 MB / 372.1 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.954e-06/0.5703, allocations: 1.938 kB / 372.1 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004036/0.5744, allocations: 1.096 MB / 373.2 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005543/0.575, allocations: 163.9 kB / 373.4 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002134/0.5752, allocations: 18.28 kB / 373.4 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008267/0.576, allocations: 59.03 kB / 373.5 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004038/0.5765, allocations: 98.8 kB / 373.6 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.5766, allocations: 22.86 kB / 373.6 MB, free: 24.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003881/0.577, allocations: 202.8 kB / 373.8 MB, free: 24.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.577, allocations: 0 / 373.8 MB, free: 24.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009874/0.578, allocations: 138.5 kB / 373.9 MB, free: 24.26 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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00451/0.5825, allocations: 1.675 MB / 375.6 MB, free: 23.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.5852, allocations: 0.6133 MB / 376.2 MB, free: 23.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.5853, allocations: 3.828 kB / 376.2 MB, free: 23.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.5866, allocations: 343.6 kB / 376.6 MB, free: 22.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.5879, allocations: 78.39 kB / 376.6 MB, free: 22.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/0.605, allocations: 5.028 MB / 381.7 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006423/0.6057, allocations: 0.8231 MB / 382.5 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004508/0.6062, allocations: 43.12 kB / 382.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.6067, allocations: 132.5 kB / 382.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of SimCode: time 3.787e-06/0.6067, allocations: 0 / 382.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07973/0.6864, allocations: 13.7 MB / 396.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.95/18.64, allocations: 8.062 kB / 396.4 MB, free: 11.74 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.csv","/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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches