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.002263/0.002262, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.261/2.261, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001062/0.001061, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.213e-05/3.224e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09795/0.09802, allocations: 47.57 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.413/0.511, allocations: 80.4 MB / 449.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.5114, allocations: 70.12 kB / 449.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03703/0.5484, allocations: 7.721 MB / 457.3 MB, free: 6.125 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5485, allocations: 0 / 457.3 MB, free: 6.125 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.5485, allocations: 8 kB / 457.3 MB, free: 6.117 MB / 330.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.002049/0.5506, allocations: 0.6961 MB / 458 MB, free: 5.402 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.5506, allocations: 8.031 kB / 458 MB, free: 5.395 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.5508, allocations: 55.44 kB / 458 MB, free: 5.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006035/0.5515, allocations: 307.7 kB / 458.3 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.577e-05/0.5515, allocations: 37.42 kB / 458.4 MB, free: 5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.5517, allocations: 44.62 kB / 458.4 MB, free: 4.973 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.5528, allocations: 418.6 kB / 458.8 MB, free: 4.684 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.771e-05/0.5529, allocations: 14.95 kB / 458.9 MB, free: 4.672 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-05/0.553, allocations: 14.31 kB / 458.9 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.553, allocations: 8 kB / 458.9 MB, free: 4.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.5542, allocations: 394 kB / 459.3 MB, free: 4.398 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003644/0.5578, allocations: 1.148 MB / 460.4 MB, free: 3.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.559, allocations: 381.4 kB / 460.8 MB, free: 3.172 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006336/0.5596, allocations: 237.6 kB / 461 MB, free: 3.027 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.313e-05/0.5598, allocations: 8.438 kB / 461 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.5598, allocations: 34.88 kB / 461.1 MB, free: 2.977 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.888e-06/0.5598, allocations: 0 / 461.1 MB, free: 2.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.004851/0.5647, allocations: 1.645 MB / 462.7 MB, free: 1.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.5648, allocations: 63.97 kB / 462.8 MB, free: 1.266 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004105/0.5652, allocations: 235.4 kB / 463 MB, free: 1.027 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.5653, allocations: 37.7 kB / 463 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.5655, allocations: 231.9 kB / 463.3 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002608/0.5658, allocations: 205.2 kB / 463.5 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.5658, allocations: 12 kB / 463.5 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.566, allocations: 334.8 kB / 463.8 MB, free: 208 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005956/0.5666, allocations: 193.5 kB / 464 MB, free: 12 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006785/0.5673, allocations: 250.3 kB / 464.2 MB, free: 15.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005015/0.5678, allocations: 158.1 kB / 464.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.5679, allocations: 3.938 kB / 464.4 MB, free: 15.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002527/0.5704, allocations: 0.6772 MB / 465.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.5704, allocations: 4 kB / 465.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.788e-05/0.5705, allocations: 7.953 kB / 465.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.5717, allocations: 377.5 kB / 465.4 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007181/0.5725, allocations: 91.89 kB / 465.5 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/0.5743, allocations: 1.323 MB / 466.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.5754, allocations: 104 kB / 467 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.5756, allocations: 23.98 kB / 467 MB, free: 12.94 MB / 346.7 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 (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.0002471/0.5758, allocations: 148.7 kB / 467.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.576, allocations: 39.53 kB / 467.2 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.5783, allocations: 0.6936 MB / 467.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/0.5783, allocations: 4 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5783, allocations: 3.938 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5784, allocations: 3.984 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004272/0.5826, allocations: 1.36 MB / 469.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.5827, allocations: 4 kB / 469.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007861/0.5835, allocations: 95.98 kB / 469.3 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.5847, allocations: 369.4 kB / 469.7 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.68e-05/0.5848, allocations: 23.97 kB / 469.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001622/0.5864, allocations: 1.292 MB / 471 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5864, allocations: 0 / 471 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002764/0.5892, allocations: 1.01 MB / 472 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003681/0.5896, allocations: 160.6 kB / 472.2 MB, free: 7.512 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.5898, allocations: 16 kB / 472.2 MB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008126/0.5906, allocations: 83.92 kB / 472.3 MB, free: 7.414 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003671/0.591, allocations: 112.2 kB / 472.4 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.196e-05/0.5911, allocations: 31.97 kB / 472.4 MB, free: 7.273 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003445/0.5915, allocations: 187.3 kB / 472.6 MB, free: 7.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5915, allocations: 0 / 472.6 MB, free: 7.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007379/0.5922, allocations: 139.9 kB / 472.7 MB, free: 6.953 MB / 346.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.0003444/0.5926, allocations: 144.9 kB / 472.9 MB, free: 6.801 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001801/0.5944, allocations: 0.5618 MB / 473.4 MB, free: 6.223 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5944, allocations: 0 / 473.4 MB, free: 6.223 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009641/0.5954, allocations: 294.4 kB / 473.7 MB, free: 5.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007609/0.5962, allocations: 61.81 kB / 473.8 MB, free: 5.871 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006072/0.6023, allocations: 1.365 MB / 475.1 MB, free: 4.457 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005424/0.6029, allocations: 0.8288 MB / 476 MB, free: 3.602 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/0.6031, allocations: 39.42 kB / 476 MB, free: 3.562 MB / 346.7 MB Notification: Performance of SimCode: time 1.583e-06/0.6031, allocations: 3.938 kB / 476 MB, free: 3.559 MB / 346.7 MB Notification: Performance of Templates: time 0.01825/0.6214, allocations: 8.215 MB / 484.2 MB, free: 11.34 MB / 362.7 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