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.001261/0.00126, 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.001258/0.001258, allocations: 189.4 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2471, allocations: 49.45 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00427/0.2514, allocations: 3.024 MB / 403.3 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.2531, allocations: 0.9348 MB / 404.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001919/0.2533, allocations: 7.938 kB / 404.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000233/0.2536, allocations: 67.38 kB / 404.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.2538, allocations: 130.8 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005128/0.2544, allocations: 223.6 kB / 404.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006638/0.255, allocations: 0.6317 MB / 405.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002328/0.2553, allocations: 132.2 kB / 405.4 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003725/0.2556, allocations: 275.1 kB / 405.6 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003915/0.256, allocations: 294.9 kB / 405.9 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.226e-05/0.2561, allocations: 48 kB / 406 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002047/0.2564, allocations: 103.9 kB / 406.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.2565, allocations: 131.5 kB / 406.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002632/0.2568, allocations: 246.8 kB / 406.5 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000707/0.2575, allocations: 0.5943 MB / 407 MB, free: 1.969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.2575, allocations: 4 kB / 407 MB, free: 1.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2575, allocations: 0 / 407 MB, free: 1.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.2575, allocations: 0 / 407 MB, free: 1.965 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.00151/0.2591, allocations: 0.7947 MB / 407.8 MB, free: 1.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2591, allocations: 8.031 kB / 407.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.2592, allocations: 87.66 kB / 407.9 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.2594, allocations: 52.61 kB / 408 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.2599, allocations: 339.4 kB / 408.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.2599, allocations: 29.38 kB / 408.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.265e-05/0.26, allocations: 44.38 kB / 408.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009121/0.2609, allocations: 490.4 kB / 408.9 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.466e-05/0.261, allocations: 7.953 kB / 408.9 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.365e-05/0.261, allocations: 12 kB / 408.9 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.261, allocations: 12 kB / 408.9 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.262, allocations: 491.7 kB / 409.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.2641, allocations: 1.133 MB / 410.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008407/0.2649, allocations: 393.8 kB / 410.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005524/0.2655, allocations: 268.8 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.339e-05/0.2656, allocations: 4.438 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.2656, allocations: 43 kB / 411.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.184e-06/0.2656, allocations: 0 / 411.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005388/0.271, allocations: 2.347 MB / 413.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.2711, allocations: 63.91 kB / 413.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003386/0.2714, allocations: 287.3 kB / 413.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.25e-05/0.2715, allocations: 41.7 kB / 413.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.2716, allocations: 193.6 kB / 414.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.2718, allocations: 202.3 kB / 414.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.272, allocations: 114.2 kB / 414.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.2722, allocations: 346.8 kB / 414.8 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.2727, allocations: 241.2 kB / 415 MB, free: 9.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.2733, allocations: 288.8 kB / 415.3 MB, free: 9.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008134/0.2741, allocations: 414.4 kB / 415.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2741, allocations: 3.938 kB / 415.7 MB, free: 8.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001704/0.2758, allocations: 0.7874 MB / 416.5 MB, free: 8.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2758, allocations: 8 kB / 416.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2759, allocations: 0 / 416.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000945/0.2768, allocations: 0.4974 MB / 417 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003544/0.2772, allocations: 95.77 kB / 417.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/0.2786, allocations: 1.401 MB / 418.5 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005014/0.2791, allocations: 76.06 kB / 418.6 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.2792, allocations: 24 kB / 418.6 MB, free: 5.984 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.0002359/0.2794, allocations: 174.2 kB / 418.8 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.723e-05/0.2795, allocations: 43.77 kB / 418.8 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001384/0.2797, allocations: 59.73 kB / 418.9 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.2797, allocations: 4 kB / 418.9 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2797, allocations: 0 / 418.9 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.2797, allocations: 3.984 kB / 418.9 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002881/0.2826, allocations: 1.452 MB / 420.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.2826, allocations: 4 kB / 420.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003683/0.283, allocations: 83.89 kB / 420.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008163/0.2838, allocations: 477.5 kB / 420.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.812e-05/0.2839, allocations: 19.98 kB / 420.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.2852, allocations: 1.374 MB / 422.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.2852, allocations: 8.031 kB / 422.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002119/0.2874, allocations: 1.101 MB / 423.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.2876, allocations: 172.7 kB / 423.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.548e-05/0.2877, allocations: 24 kB / 423.6 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004259/0.2881, allocations: 59.92 kB / 423.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.2884, allocations: 96.22 kB / 423.7 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.833e-05/0.2884, allocations: 23.98 kB / 423.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.2886, allocations: 209.9 kB / 423.9 MB, free: 436 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2887, allocations: 0 / 423.9 MB, free: 436 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004734/0.2891, allocations: 135.9 kB / 424.1 MB, free: 300 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.002599/0.2917, allocations: 1.684 MB / 425.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.2931, allocations: 0.5928 MB / 426.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2931, allocations: 4.062 kB / 426.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007454/0.2939, allocations: 342.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.0005909/0.2945, allocations: 72.69 kB / 426.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009471/0.304, allocations: 5.012 MB / 431.8 MB, free: 8.406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004752/0.3045, allocations: 0.8241 MB / 432.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001967/0.3047, allocations: 39.28 kB / 432.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002128/0.3049, allocations: 135.4 kB / 432.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3049, allocations: 4 kB / 432.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04383/0.3487, allocations: 13.88 MB / 446.7 MB, free: 9.672 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.68, allocations: 7.922 kB / 446.7 MB, free: 9.664 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