Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.001821, allocations: 67.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2718, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004768/0.2766, allocations: 3.175 MB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.2788, allocations: 1.111 MB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002476/0.2791, allocations: 4 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003843/0.2795, allocations: 91.22 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005184/0.28, allocations: 186.6 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005168/0.2806, allocations: 199.6 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007871/0.2814, allocations: 0.6668 MB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002971/0.2817, allocations: 136.2 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004894/0.2822, allocations: 303 kB / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000437/0.2826, allocations: 314.8 kB / 414.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.882e-05/0.2827, allocations: 56 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.283, allocations: 111.9 kB / 415.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000195/0.2832, allocations: 131.6 kB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002881/0.2835, allocations: 270.6 kB / 415.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008406/0.2843, allocations: 0.645 MB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2843, allocations: 0 / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2843, allocations: 0 / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2843, allocations: 0 / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001609/0.286, allocations: 0.845 MB / 417 MB, free: 9.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.286, allocations: 8.031 kB / 417 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001517/0.2862, allocations: 91.66 kB / 417.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002314/0.2864, allocations: 72.55 kB / 417.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005648/0.287, allocations: 343.4 kB / 417.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/0.287, allocations: 37.38 kB / 417.5 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.061e-05/0.2871, allocations: 48.31 kB / 417.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009491/0.2881, allocations: 482.4 kB / 418 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/0.2881, allocations: 7.938 kB / 418 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.428e-05/0.2882, allocations: 16 kB / 418 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.2882, allocations: 16 kB / 418.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009993/0.2892, allocations: 471.6 kB / 418.5 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.2914, allocations: 1.161 MB / 419.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009079/0.2923, allocations: 428.5 kB / 420.1 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005267/0.2929, allocations: 258.4 kB / 420.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.444e-05/0.2929, allocations: 16.56 kB / 420.4 MB, free: 5.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.2929, allocations: 35.12 kB / 420.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 2.084e-06/0.293, allocations: 0 / 420.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.005479/0.2984, allocations: 2.341 MB / 422.7 MB, free: 3.211 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.309e-05/0.2985, allocations: 59.97 kB / 422.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003805/0.2989, allocations: 308.5 kB / 423.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.778e-05/0.299, allocations: 41.69 kB / 423.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.2992, allocations: 189.6 kB / 423.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.2994, allocations: 222.2 kB / 423.6 MB, free: 2.379 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000195/0.2996, allocations: 102.3 kB / 423.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002479/0.2998, allocations: 354.8 kB / 424 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004868/0.3003, allocations: 229.2 kB / 424.2 MB, free: 1.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/0.3009, allocations: 276.8 kB / 424.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008045/0.3017, allocations: 394.3 kB / 424.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3017, allocations: 3.938 kB / 424.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001632/0.3033, allocations: 0.7523 MB / 425.6 MB, free: 264 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.3034, allocations: 7.984 kB / 425.6 MB, free: 256 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3034, allocations: 0 / 425.6 MB, free: 256 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008813/0.3043, allocations: 377.4 kB / 426 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003371/0.3046, allocations: 87.83 kB / 426.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.3061, allocations: 1.409 MB / 427.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/0.3067, allocations: 76.03 kB / 427.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.287e-05/0.3067, allocations: 16 kB / 427.6 MB, free: 14.24 MB / 350.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 (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002525/0.307, allocations: 173.7 kB / 427.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.3071, allocations: 43.72 kB / 427.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.3072, allocations: 64.52 kB / 427.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.3073, allocations: 8 kB / 427.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3073, allocations: 4 kB / 427.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3073, allocations: 3.984 kB / 427.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.3101, allocations: 1.459 MB / 429.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3101, allocations: 0 / 429.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003734/0.3105, allocations: 87.89 kB / 429.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007715/0.3112, allocations: 353.6 kB / 429.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.702e-05/0.3113, allocations: 19.98 kB / 429.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001457/0.3128, allocations: 1.362 MB / 431.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.3128, allocations: 0 / 431.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.3148, allocations: 1.063 MB / 432.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.3151, allocations: 176.7 kB / 432.4 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.382e-05/0.3152, allocations: 20 kB / 432.4 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004232/0.3156, allocations: 63.92 kB / 432.5 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.3159, allocations: 96.41 kB / 432.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/0.3159, allocations: 23.98 kB / 432.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002735/0.3162, allocations: 219.1 kB / 432.8 MB, free: 8.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3162, allocations: 0 / 432.8 MB, free: 8.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000466/0.3167, allocations: 132.1 kB / 432.9 MB, free: 8.691 MB / 350.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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003425/0.3201, allocations: 1.878 MB / 434.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.3214, allocations: 0.5821 MB / 435.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3214, allocations: 0 / 435.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007377/0.3222, allocations: 351.2 kB / 435.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006172/0.3228, allocations: 95.45 kB / 435.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009438/0.3322, allocations: 5.03 MB / 440.9 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.3328, allocations: 0.8401 MB / 441.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001854/0.333, allocations: 47.38 kB / 441.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002341/0.3332, allocations: 151.4 kB / 441.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3332, allocations: 0 / 441.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04518/0.3784, allocations: 14.23 MB / 456.1 MB, free: 1.602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/12.99, allocations: 4 kB / 456.1 MB, free: 1.598 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches