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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008738/0.0008737, allocations: 91.06 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.606e-05/1.61e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3446/0.459, allocations: 80.7 MB / 468.2 MB, free: 14.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.4593, allocations: 67.97 kB / 468.2 MB, free: 14.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02288/0.4822, allocations: 7.817 MB / 476 MB, free: 6.266 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4822, allocations: 0 / 476 MB, free: 6.266 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.196e-05/0.4822, allocations: 8 kB / 476 MB, free: 6.258 MB / 346.7 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.001281/0.4835, allocations: 0.6825 MB / 476.7 MB, free: 5.531 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.4836, allocations: 8.031 kB / 476.7 MB, free: 5.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.4837, allocations: 51.44 kB / 476.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.4841, allocations: 322 kB / 477.1 MB, free: 5.113 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.4842, allocations: 12 kB / 477.1 MB, free: 5.102 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.983e-05/0.4843, allocations: 24 kB / 477.1 MB, free: 5.078 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000692/0.485, allocations: 377.4 kB / 477.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006546/0.4856, allocations: 370 kB / 477.9 MB, free: 4.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.4857, allocations: 7.906 kB / 477.9 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.453e-05/0.4857, allocations: 7.984 kB / 477.9 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.4857, allocations: 8 kB / 477.9 MB, free: 4.316 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.4879, allocations: 1.069 MB / 479 MB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006788/0.4886, allocations: 348 kB / 479.3 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003897/0.489, allocations: 218.1 kB / 479.5 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.153e-05/0.4891, allocations: 8.438 kB / 479.5 MB, free: 2.633 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.4891, allocations: 42.98 kB / 479.6 MB, free: 2.582 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.036e-06/0.4891, allocations: 0 / 479.6 MB, free: 2.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.003512/0.4927, allocations: 1.569 MB / 481.1 MB, free: 0.918 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.4927, allocations: 56.22 kB / 481.2 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/0.493, allocations: 206.3 kB / 481.4 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.658e-05/0.4931, allocations: 29.7 kB / 481.4 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.4932, allocations: 177.3 kB / 481.6 MB, free: 444 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.4934, allocations: 197.1 kB / 481.8 MB, free: 244 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.4934, allocations: 0 / 481.8 MB, free: 244 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.4936, allocations: 354.8 kB / 482.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.494, allocations: 185.5 kB / 482.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003348/0.4943, allocations: 228.7 kB / 482.5 MB, free: 15.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/0.4947, allocations: 160.5 kB / 482.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4947, allocations: 0 / 482.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001422/0.4961, allocations: 0.6536 MB / 483.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.4962, allocations: 4 kB / 483.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/0.4962, allocations: 7.938 kB / 483.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007321/0.4969, allocations: 389.4 kB / 483.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003489/0.4973, allocations: 84.64 kB / 483.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.4987, allocations: 1.378 MB / 485.2 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005184/0.4992, allocations: 92.06 kB / 485.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.974e-05/0.4993, allocations: 24 kB / 485.3 MB, free: 12.62 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000221/0.4995, allocations: 125.5 kB / 485.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.835e-05/0.4996, allocations: 39.58 kB / 485.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/0.501, allocations: 0.6509 MB / 486.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.501, allocations: 7.953 kB / 486.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.501, allocations: 0 / 486.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.501, allocations: 4 kB / 486.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.5035, allocations: 1.267 MB / 487.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.5035, allocations: 7.984 kB / 487.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003705/0.5039, allocations: 87.89 kB / 487.5 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000618/0.5045, allocations: 357.6 kB / 487.8 MB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.373e-05/0.5046, allocations: 11.98 kB / 487.9 MB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.5058, allocations: 1.343 MB / 489.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.5058, allocations: 4.031 kB / 489.2 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.5074, allocations: 0.9676 MB / 490.2 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002434/0.5076, allocations: 160.6 kB / 490.3 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.804e-05/0.5077, allocations: 11.98 kB / 490.3 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.5082, allocations: 67.94 kB / 490.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/0.5084, allocations: 120.1 kB / 490.5 MB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.344e-05/0.5084, allocations: 23.97 kB / 490.5 MB, free: 7.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001614/0.5086, allocations: 166 kB / 490.7 MB, free: 6.996 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5086, allocations: 0 / 490.7 MB, free: 6.996 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00054/0.5092, allocations: 120 kB / 490.8 MB, free: 6.879 MB / 362.7 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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002496/0.5094, allocations: 137.2 kB / 491 MB, free: 6.738 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009487/0.5104, allocations: 0.5359 MB / 491.5 MB, free: 6.188 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5104, allocations: 0 / 491.5 MB, free: 6.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005203/0.5109, allocations: 293.8 kB / 491.8 MB, free: 5.902 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004763/0.5114, allocations: 54.72 kB / 491.8 MB, free: 5.848 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003425/0.5149, allocations: 1.298 MB / 493.1 MB, free: 4.508 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.5153, allocations: 0.8286 MB / 494 MB, free: 3.656 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001746/0.5155, allocations: 35.27 kB / 494 MB, free: 3.621 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.12e-05/0.5156, allocations: 31.42 kB / 494 MB, free: 3.59 MB / 362.7 MB Notification: Performance of SimCode: time 6.92e-07/0.5156, allocations: 0 / 494 MB, free: 3.59 MB / 362.7 MB Notification: Performance of Templates: time 0.01374/0.5293, allocations: 8.07 MB / 0.4903 GB, free: 11.55 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches