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.001538/0.001538, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001645/0.001645, allocations: 210.5 kB / 18.58 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.8 MB, free: 10.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 57.06 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09695/0.09823, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005311/0.1036, allocations: 3.161 MB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002585/0.1062, allocations: 1.134 MB / 361.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004278/0.1067, allocations: 4 kB / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004538/0.1072, allocations: 83.17 kB / 362 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005928/0.1078, allocations: 182.7 kB / 362.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005006/0.1083, allocations: 203.6 kB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000852/0.1092, allocations: 0.6591 MB / 363 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003122/0.1095, allocations: 144 kB / 363.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005824/0.1101, allocations: 295 kB / 363.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005403/0.1107, allocations: 318.7 kB / 363.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.1108, allocations: 52 kB / 363.8 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.1111, allocations: 108 kB / 363.9 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.1113, allocations: 131.6 kB / 364 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003151/0.1117, allocations: 274.6 kB / 364.3 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007953/0.1125, allocations: 0.635 MB / 364.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1125, allocations: 3.938 kB / 364.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1125, allocations: 0 / 364.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.567e-05/0.1125, allocations: 0 / 364.9 MB, free: 6.629 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001785/0.1143, allocations: 0.8263 MB / 365.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.1144, allocations: 8.031 kB / 365.8 MB, free: 5.742 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001562/0.1145, allocations: 91.61 kB / 365.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002829/0.1148, allocations: 64.27 kB / 365.9 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004875/0.1153, allocations: 339.2 kB / 366.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.101e-05/0.1154, allocations: 33.38 kB / 366.3 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.991e-05/0.1155, allocations: 56.27 kB / 366.3 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.1165, allocations: 482.4 kB / 366.8 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.1166, allocations: 4 kB / 366.8 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.093e-05/0.1166, allocations: 16 kB / 366.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1166, allocations: 8 kB / 366.8 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.1177, allocations: 471.7 kB / 367.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00246/0.1201, allocations: 1.168 MB / 368.5 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009346/0.1211, allocations: 427.3 kB / 368.9 MB, free: 2.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005893/0.1217, allocations: 270.2 kB / 369.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.785e-05/0.1217, allocations: 12.56 kB / 369.2 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.1218, allocations: 39.12 kB / 369.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.134e-06/0.1218, allocations: 0 / 369.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.19/0.3118, allocations: 2.316 MB / 371.5 MB, free: 20.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.3118, allocations: 62.38 kB / 371.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004101/0.3123, allocations: 306.9 kB / 371.9 MB, free: 20.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.708e-05/0.3123, allocations: 43.92 kB / 371.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.3125, allocations: 188 kB / 372.1 MB, free: 20.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.3127, allocations: 217.2 kB / 372.3 MB, free: 19.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001781/0.3129, allocations: 110.1 kB / 372.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.611e-05/0.3129, allocations: 353.8 kB / 372.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005097/0.3135, allocations: 226 kB / 373 MB, free: 19.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005327/0.314, allocations: 278.6 kB / 373.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007998/0.3148, allocations: 396.6 kB / 373.6 MB, free: 19.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3148, allocations: 0.875 kB / 373.6 MB, free: 19.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00178/0.3166, allocations: 0.7527 MB / 374.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.3166, allocations: 5.281 kB / 374.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.3167, allocations: 0.6562 kB / 374.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.3177, allocations: 382 kB / 374.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003293/0.3181, allocations: 88.98 kB / 374.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.3192, allocations: 1.397 MB / 376.3 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005175/0.3197, allocations: 76.38 kB / 376.3 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.203e-05/0.3198, allocations: 22.91 kB / 376.4 MB, free: 17.84 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 (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.0002091/0.32, allocations: 180.5 kB / 376.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.172e-05/0.3201, allocations: 39.47 kB / 376.6 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.3202, allocations: 60.88 kB / 376.6 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.3202, allocations: 6.906 kB / 376.6 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.3202, allocations: 0 / 376.6 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.3202, allocations: 3.375 kB / 376.6 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002838/0.3231, allocations: 1.469 MB / 378.1 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.3231, allocations: 1.469 kB / 378.1 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.3235, allocations: 86.12 kB / 378.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007533/0.3242, allocations: 343.7 kB / 378.5 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.968e-05/0.3243, allocations: 20.16 kB / 378.6 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.3254, allocations: 1.367 MB / 379.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3254, allocations: 3.188 kB / 379.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.3273, allocations: 1.05 MB / 381 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002002/0.3275, allocations: 171.6 kB / 381.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.479e-05/0.3276, allocations: 29.03 kB / 381.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.3281, allocations: 61.84 kB / 381.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.3283, allocations: 97.98 kB / 381.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.603e-05/0.3284, allocations: 24.2 kB / 381.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.3286, allocations: 217.4 kB / 381.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3286, allocations: 0 / 381.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005438/0.3292, allocations: 135.5 kB / 381.7 MB, free: 14.64 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002897/0.3321, allocations: 1.879 MB / 383.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.3336, allocations: 0.597 MB / 384.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3336, allocations: 4.062 kB / 384.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007485/0.3344, allocations: 346.5 kB / 384.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006604/0.335, allocations: 103.4 kB / 384.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00936/0.3444, allocations: 5.052 MB / 389.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.3448, allocations: 0.8345 MB / 390.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.345, allocations: 40.38 kB / 390.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002056/0.3452, allocations: 147.9 kB / 390.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3452, allocations: 4 kB / 390.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03411/0.3793, allocations: 14.01 MB / 404.7 MB, free: 15.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.8, allocations: 7.438 kB / 404.7 MB, free: 15.94 MB / 318.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.0.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