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.001344/0.001344, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001322/0.001322, allocations: 191 kB / 18 MB, free: 5.09 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.299/1.299, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2638, allocations: 49.42 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003931/0.2678, allocations: 3.038 MB / 403.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.2695, allocations: 0.9348 MB / 404.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002208/0.2697, allocations: 4 kB / 404.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002342/0.27, allocations: 63.31 kB / 404.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002805/0.2703, allocations: 138.9 kB / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005372/0.2709, allocations: 223.6 kB / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006954/0.2716, allocations: 0.6279 MB / 405.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.2718, allocations: 136.2 kB / 405.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003909/0.2722, allocations: 283 kB / 405.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003968/0.2726, allocations: 302.9 kB / 406 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.333e-05/0.2727, allocations: 48 kB / 406 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.2729, allocations: 91.95 kB / 406.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.2731, allocations: 131.5 kB / 406.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002252/0.2733, allocations: 250.8 kB / 406.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006359/0.2739, allocations: 0.5905 MB / 407.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.274, allocations: 0 / 407.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.274, allocations: 0 / 407.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.274, allocations: 4 kB / 407.1 MB, free: 1.957 MB / 318.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.001455/0.2754, allocations: 0.7986 MB / 407.9 MB, free: 1.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.2755, allocations: 8.031 kB / 407.9 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000131/0.2756, allocations: 87.66 kB / 407.9 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.2757, allocations: 52.61 kB / 408 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004922/0.2762, allocations: 339.4 kB / 408.3 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.2763, allocations: 29.38 kB / 408.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.592e-05/0.2764, allocations: 48.38 kB / 408.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008891/0.2773, allocations: 482.4 kB / 408.9 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.2773, allocations: 7.953 kB / 408.9 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.651e-05/0.2774, allocations: 16 kB / 408.9 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.2774, allocations: 8 kB / 408.9 MB, free: 0 / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009433/0.2783, allocations: 487.7 kB / 409.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/0.2804, allocations: 1.137 MB / 410.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007977/0.2812, allocations: 396.4 kB / 410.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005084/0.2817, allocations: 266 kB / 411.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.2818, allocations: 4.438 kB / 411.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.2818, allocations: 46.88 kB / 411.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.054e-06/0.2818, allocations: 0 / 411.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005197/0.287, allocations: 2.339 MB / 413.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.2871, allocations: 55.97 kB / 413.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003041/0.2874, allocations: 295.3 kB / 413.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/0.2875, allocations: 37.7 kB / 413.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.2876, allocations: 197.5 kB / 414.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.2878, allocations: 202.3 kB / 414.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.288, allocations: 106.3 kB / 414.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2881, allocations: 346.8 kB / 414.8 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004695/0.2886, allocations: 245.2 kB / 415 MB, free: 9.641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.2891, allocations: 296.7 kB / 415.3 MB, free: 9.344 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007648/0.2899, allocations: 410.4 kB / 415.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2899, allocations: 0 / 415.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001661/0.2916, allocations: 0.7913 MB / 416.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.2916, allocations: 4 kB / 416.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2916, allocations: 0 / 416.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009225/0.2925, allocations: 0.5013 MB / 417 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003598/0.2929, allocations: 91.83 kB / 417.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.2943, allocations: 1.409 MB / 418.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005206/0.2948, allocations: 80.06 kB / 418.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-05/0.2949, allocations: 19.94 kB / 418.6 MB, free: 5.973 MB / 334.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.0002746/0.2952, allocations: 175.6 kB / 418.8 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.2953, allocations: 39.77 kB / 418.8 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.2954, allocations: 55.73 kB / 418.9 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.2955, allocations: 8 kB / 418.9 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.2955, allocations: 0 / 418.9 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.2955, allocations: 0 / 418.9 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003069/0.2986, allocations: 1.46 MB / 420.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.2986, allocations: 3.938 kB / 420.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/0.299, allocations: 83.89 kB / 420.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008599/0.2999, allocations: 477.5 kB / 420.9 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-05/0.2999, allocations: 23.97 kB / 420.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.3012, allocations: 1.374 MB / 422.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3012, allocations: 0 / 422.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.3032, allocations: 1.109 MB / 423.4 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.3035, allocations: 168.8 kB / 423.6 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.3036, allocations: 23.98 kB / 423.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004465/0.3041, allocations: 51.94 kB / 423.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.3043, allocations: 100.3 kB / 423.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-05/0.3044, allocations: 19.98 kB / 423.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002248/0.3046, allocations: 205.9 kB / 423.9 MB, free: 436 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3046, allocations: 7.875 kB / 424 MB, free: 428 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005374/0.3051, allocations: 135.9 kB / 424.1 MB, free: 292 kB / 334.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.002477/0.3076, allocations: 1.676 MB / 425.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.309, allocations: 0.6045 MB / 426.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.309, allocations: 0 / 426.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007156/0.3097, allocations: 334.3 kB / 426.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006122/0.3103, allocations: 87.42 kB / 426.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009096/0.3194, allocations: 5.007 MB / 431.8 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004548/0.3199, allocations: 0.8241 MB / 432.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002184/0.3202, allocations: 43.27 kB / 432.7 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.3204, allocations: 135.4 kB / 432.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3204, allocations: 0 / 432.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03439/0.3548, allocations: 13.88 MB / 446.7 MB, free: 9.664 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.13, allocations: 19.73 kB / 446.7 MB, free: 9.648 MB / 366.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