Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002297/0.002297, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.204/2.204, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 86.81 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.265e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3324, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/0.4619, allocations: 79.76 MB / 442.1 MB, free: 6.547 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.4622, allocations: 72.53 kB / 442.2 MB, free: 6.477 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03746/0.4997, allocations: 7.663 MB / 449.8 MB, free: 14.85 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4997, allocations: 0 / 449.8 MB, free: 14.85 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.026e-05/0.4998, allocations: 8 kB / 449.8 MB, free: 14.84 MB / 347.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.002108/0.5019, allocations: 0.6919 MB / 450.5 MB, free: 14.11 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.502, allocations: 8.031 kB / 450.5 MB, free: 14.1 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002165/0.5022, allocations: 48.09 kB / 450.6 MB, free: 14.05 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000673/0.5029, allocations: 314.2 kB / 450.9 MB, free: 13.7 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.028e-05/0.5029, allocations: 15.95 kB / 450.9 MB, free: 13.68 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.5031, allocations: 27.98 kB / 450.9 MB, free: 13.66 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001163/0.5043, allocations: 373.4 kB / 451.3 MB, free: 13.29 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.5053, allocations: 374 kB / 451.7 MB, free: 12.92 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.586e-05/0.5054, allocations: 7.906 kB / 451.7 MB, free: 12.91 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.303e-05/0.5055, allocations: 1.219 kB / 451.7 MB, free: 12.91 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.5055, allocations: 8 kB / 451.7 MB, free: 12.9 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003824/0.5093, allocations: 1.073 MB / 452.7 MB, free: 11.79 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.5105, allocations: 355.9 kB / 453.1 MB, free: 11.43 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006171/0.5111, allocations: 218.6 kB / 453.3 MB, free: 11.21 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.215e-05/0.5113, allocations: 8.438 kB / 453.3 MB, free: 11.21 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.5113, allocations: 43 kB / 453.4 MB, free: 11.16 MB / 347.1 MB Notification: Performance of pre-optimization done (n=52): time 3.958e-06/0.5113, allocations: 0 / 453.4 MB, free: 11.16 MB / 347.1 MB Notification: Performance of matching and sorting (n=58): time 0.005573/0.5169, allocations: 1.567 MB / 454.9 MB, free: 9.496 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.517, allocations: 55.97 kB / 455 MB, free: 9.43 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003332/0.5174, allocations: 202.3 kB / 455.2 MB, free: 9.227 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 9.933e-05/0.5175, allocations: 37.69 kB / 455.2 MB, free: 9.184 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.5177, allocations: 231.8 kB / 455.4 MB, free: 8.957 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002576/0.5179, allocations: 198.6 kB / 455.6 MB, free: 8.762 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.518, allocations: 0 / 455.6 MB, free: 8.762 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.5182, allocations: 338.8 kB / 456 MB, free: 8.422 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005528/0.5187, allocations: 185.5 kB / 456.1 MB, free: 8.238 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006059/0.5194, allocations: 228.7 kB / 456.4 MB, free: 8.012 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006562/0.52, allocations: 164.5 kB / 456.5 MB, free: 7.855 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.52, allocations: 0 / 456.5 MB, free: 7.855 MB / 347.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002508/0.5226, allocations: 0.6382 MB / 457.2 MB, free: 7.199 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.5226, allocations: 11.92 kB / 457.2 MB, free: 7.188 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.67e-05/0.5227, allocations: 4 kB / 457.2 MB, free: 7.184 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.5239, allocations: 383.3 kB / 457.6 MB, free: 6.805 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007044/0.5246, allocations: 103.8 kB / 457.7 MB, free: 6.703 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00209/0.5267, allocations: 1.363 MB / 459 MB, free: 5.289 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.5278, allocations: 92.06 kB / 459.1 MB, free: 5.199 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.528, allocations: 23.98 kB / 459.1 MB, free: 5.176 MB / 347.1 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.0003083/0.5283, allocations: 125.1 kB / 459.3 MB, free: 5.051 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.5284, allocations: 39.53 kB / 459.3 MB, free: 5.012 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002339/0.5308, allocations: 0.6432 MB / 459.9 MB, free: 4.355 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.5308, allocations: 4 kB / 459.9 MB, free: 4.352 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.5309, allocations: 3.938 kB / 459.9 MB, free: 4.348 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.5309, allocations: 3.984 kB / 460 MB, free: 4.344 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004245/0.5351, allocations: 1.267 MB / 461.2 MB, free: 3.004 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.5352, allocations: 0.9375 kB / 461.2 MB, free: 3.004 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007814/0.536, allocations: 87.89 kB / 461.3 MB, free: 2.918 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001122/0.5371, allocations: 365.5 kB / 461.7 MB, free: 2.555 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.028e-05/0.5372, allocations: 19.97 kB / 461.7 MB, free: 2.535 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001922/0.5392, allocations: 1.339 MB / 463 MB, free: 1.145 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/0.5392, allocations: 0 / 463 MB, free: 1.145 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.542, allocations: 0.9638 MB / 464 MB, free: 120 kB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003931/0.5424, allocations: 164.8 kB / 464.1 MB, free: 15.94 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.5426, allocations: 13.03 kB / 464.2 MB, free: 15.93 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008152/0.5434, allocations: 71.92 kB / 464.2 MB, free: 15.86 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003556/0.5438, allocations: 112.1 kB / 464.3 MB, free: 15.75 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-05/0.5439, allocations: 23.98 kB / 464.4 MB, free: 15.72 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.000247/0.5441, allocations: 174 kB / 464.5 MB, free: 15.55 MB / 363.1 MB Notification: Performance of sort global known variables: time 2.434e-06/0.5441, allocations: 0 / 464.5 MB, free: 15.55 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0007089/0.5449, allocations: 119.9 kB / 464.6 MB, free: 15.44 MB / 363.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 (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.0003388/0.5452, allocations: 131.2 kB / 464.8 MB, free: 15.3 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.5468, allocations: 0.536 MB / 465.3 MB, free: 14.75 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.5469, allocations: 4.062 kB / 465.3 MB, free: 14.75 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000958/0.5479, allocations: 283.7 kB / 465.6 MB, free: 14.47 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007725/0.5487, allocations: 51.83 kB / 465.6 MB, free: 14.42 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00602/0.5547, allocations: 1.327 MB / 467 MB, free: 13.04 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005553/0.5553, allocations: 0.8286 MB / 467.8 MB, free: 12.19 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.5556, allocations: 35.42 kB / 467.8 MB, free: 12.16 MB / 363.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5556, allocations: 0 / 467.8 MB, free: 12.16 MB / 363.1 MB Notification: Performance of Templates: time 0.01829/0.5739, allocations: 8.143 MB / 476 MB, free: 4.059 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches