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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_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.00129/0.00129, allocations: 108.8 kB / 17.73 MB, free: 5.363 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.001273/0.001273, allocations: 187.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 59.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09367/0.09506, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00457/0.09968, allocations: 3.024 MB / 377.7 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.1017, allocations: 0.9824 MB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003527/0.1021, allocations: 8 kB / 378.7 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003262/0.1025, allocations: 67.31 kB / 378.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004576/0.1029, allocations: 130.8 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007097/0.1036, allocations: 219.6 kB / 379.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008918/0.1046, allocations: 0.6317 MB / 379.7 MB, free: 4 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1992/0.3037, allocations: 130.4 kB / 379.8 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006075/0.3044, allocations: 278.4 kB / 380.1 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003965/0.3048, allocations: 305.3 kB / 380.4 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.38e-05/0.3049, allocations: 47.75 kB / 380.4 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002329/0.3051, allocations: 100.3 kB / 380.5 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.3053, allocations: 123.1 kB / 380.7 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002623/0.3055, allocations: 248.6 kB / 380.9 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000809/0.3064, allocations: 0.5924 MB / 381.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3064, allocations: 1.375 kB / 381.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3064, allocations: 0 / 381.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.497e-06/0.3064, allocations: 4.812 kB / 381.5 MB, free: 9.047 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.001871/0.3083, allocations: 0.781 MB / 382.3 MB, free: 8.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.3083, allocations: 9.5 kB / 382.3 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.3085, allocations: 85.31 kB / 382.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.3087, allocations: 52.44 kB / 382.4 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006487/0.3093, allocations: 332.2 kB / 382.7 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.141e-05/0.3094, allocations: 33.12 kB / 382.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.3095, allocations: 47.67 kB / 382.8 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.3107, allocations: 481.9 kB / 383.3 MB, free: 8.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.933e-05/0.3107, allocations: 6.281 kB / 383.3 MB, free: 8.191 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.251e-05/0.3108, allocations: 16.42 kB / 383.3 MB, free: 8.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.3108, allocations: 13.12 kB / 383.3 MB, free: 8.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.3118, allocations: 485.4 kB / 383.8 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.3141, allocations: 1.128 MB / 384.9 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008918/0.315, allocations: 398.5 kB / 385.3 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005544/0.3156, allocations: 267.8 kB / 385.6 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.358e-05/0.3156, allocations: 11.44 kB / 385.6 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.3157, allocations: 36.34 kB / 385.6 MB, free: 7.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.3157, allocations: 1.781 kB / 385.6 MB, free: 7.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005284/0.321, allocations: 2.34 MB / 388 MB, free: 6.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.321, allocations: 57.88 kB / 388 MB, free: 6.348 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/0.3214, allocations: 285.2 kB / 388.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.421e-05/0.3214, allocations: 43.61 kB / 388.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.3216, allocations: 191.1 kB / 388.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.3217, allocations: 195.9 kB / 388.7 MB, free: 5.844 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/0.3219, allocations: 106.8 kB / 388.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.781e-05/0.322, allocations: 350 kB / 389.2 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.3225, allocations: 242.4 kB / 389.4 MB, free: 5.379 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005033/0.323, allocations: 291.9 kB / 389.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007494/0.3237, allocations: 414 kB / 390.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3238, allocations: 1.562 kB / 390.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001679/0.3254, allocations: 0.7855 MB / 390.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.3255, allocations: 6.406 kB / 390.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3255, allocations: 0.9688 kB / 390.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009216/0.3264, allocations: 0.4963 MB / 391.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/0.3268, allocations: 89.7 kB / 391.5 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.328, allocations: 1.41 MB / 392.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006321/0.3286, allocations: 77.25 kB / 393 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.436e-05/0.3287, allocations: 17.97 kB / 393 MB, free: 3.453 MB / 318.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.0002907/0.329, allocations: 182.9 kB / 393.2 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.3291, allocations: 40.03 kB / 393.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.3292, allocations: 54.28 kB / 393.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.3293, allocations: 5.766 kB / 393.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.3293, allocations: 1.156 kB / 393.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.3293, allocations: 6.812 kB / 393.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002957/0.3323, allocations: 1.458 MB / 394.7 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.3323, allocations: 10.39 kB / 394.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004056/0.3327, allocations: 85.72 kB / 394.8 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008739/0.3336, allocations: 480 kB / 395.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.989e-05/0.3337, allocations: 20.3 kB / 395.3 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.3347, allocations: 1.379 MB / 396.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.3347, allocations: 5.062 kB / 396.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.3368, allocations: 1.087 MB / 397.8 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/0.3371, allocations: 167.4 kB / 397.9 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.875e-05/0.3372, allocations: 19.66 kB / 398 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/0.3376, allocations: 58.44 kB / 398 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/0.3379, allocations: 95.94 kB / 398.1 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.862e-05/0.3379, allocations: 25.2 kB / 398.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002077/0.3381, allocations: 201.2 kB / 398.3 MB, free: 404 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3382, allocations: 0 / 398.3 MB, free: 404 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.000583/0.3387, allocations: 140.3 kB / 398.5 MB, free: 380 kB / 318.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.002549/0.3413, allocations: 1.674 MB / 400.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.3427, allocations: 0.5979 MB / 400.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.3428, allocations: 1.25 kB / 400.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007691/0.3435, allocations: 345.9 kB / 401.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006717/0.3442, allocations: 74.08 kB / 401.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009912/0.3541, allocations: 5.016 MB / 406.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005043/0.3547, allocations: 0.8199 MB / 407 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002486/0.355, allocations: 39.25 kB / 407 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002463/0.3552, allocations: 132.6 kB / 407.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3552, allocations: 1.156 kB / 407.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04191/0.3971, allocations: 13.89 MB / 421.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.33, allocations: 7.922 kB / 421.1 MB, free: 15.84 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches