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.001538/0.001538, allocations: 175.9 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.0007052/0.0007053, allocations: 89.08 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003169/0.000317, allocations: 12 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2365, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09107/0.3276, allocations: 80.56 MB / 456.3 MB, free: 68 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.3279, allocations: 76.02 kB / 456.3 MB, free: 15.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02105/0.3489, allocations: 7.755 MB / 464.1 MB, free: 8.211 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.349, allocations: 0 / 464.1 MB, free: 8.211 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.394e-05/0.349, allocations: 12 kB / 464.1 MB, free: 8.199 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.001393/0.3504, allocations: 0.7216 MB / 464.8 MB, free: 7.422 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.3505, allocations: 12.03 kB / 464.8 MB, free: 7.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.3506, allocations: 48.38 kB / 464.9 MB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.3511, allocations: 319.2 kB / 465.2 MB, free: 7.016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.668e-05/0.3511, allocations: 29.38 kB / 465.2 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.628e-05/0.3512, allocations: 44.36 kB / 465.3 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008534/0.3521, allocations: 454.9 kB / 465.7 MB, free: 6.496 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.3521, allocations: 8.094 kB / 465.7 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.035e-05/0.3521, allocations: 19.94 kB / 465.8 MB, free: 6.469 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.3522, allocations: 12 kB / 465.8 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008703/0.353, allocations: 443.7 kB / 466.2 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/0.3552, allocations: 1.149 MB / 467.3 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007748/0.356, allocations: 401 kB / 467.7 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004912/0.3565, allocations: 265.7 kB / 468 MB, free: 4.164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.941e-05/0.3565, allocations: 12.42 kB / 468 MB, free: 4.152 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.3566, allocations: 42.94 kB / 468 MB, free: 4.098 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 1.974e-06/0.3566, allocations: 0 / 468 MB, free: 4.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.004836/0.3614, allocations: 2.349 MB / 470.4 MB, free: 1.617 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.3615, allocations: 63.97 kB / 470.5 MB, free: 1.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.3618, allocations: 259 kB / 470.7 MB, free: 1.281 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.497e-05/0.3618, allocations: 45.7 kB / 470.8 MB, free: 1.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.362, allocations: 173.4 kB / 470.9 MB, free: 1.059 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.3621, allocations: 205.2 kB / 471.1 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-05/0.3622, allocations: 12 kB / 471.1 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3623, allocations: 350.7 kB / 471.5 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004446/0.3627, allocations: 225.1 kB / 471.7 MB, free: 280 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004782/0.3632, allocations: 272.8 kB / 472 MB, free: 0 / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007202/0.364, allocations: 390.4 kB / 472.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.364, allocations: 0 / 472.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00158/0.3656, allocations: 0.7287 MB / 473.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3656, allocations: 8 kB / 473.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.3656, allocations: 3.938 kB / 473.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007664/0.3664, allocations: 405.3 kB / 473.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003361/0.3667, allocations: 95.89 kB / 473.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001171/0.3679, allocations: 1.327 MB / 474.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004853/0.3684, allocations: 104 kB / 475 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-05/0.3685, allocations: 23.98 kB / 475 MB, free: 12.86 MB / 362.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 () * Number of clocked 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.0002395/0.3687, allocations: 170.2 kB / 475.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.967e-05/0.3688, allocations: 39.53 kB / 475.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.3704, allocations: 0.7404 MB / 476 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3704, allocations: 8 kB / 476 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3704, allocations: 0 / 476 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3704, allocations: 3.984 kB / 476 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002681/0.3731, allocations: 1.419 MB / 477.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3731, allocations: 0 / 477.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003517/0.3735, allocations: 87.89 kB / 477.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006704/0.3742, allocations: 381.5 kB / 477.9 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.669e-05/0.3742, allocations: 27.97 kB / 477.9 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/0.3754, allocations: 1.3 MB / 479.2 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3754, allocations: 0 / 479.2 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001848/0.3772, allocations: 1.014 MB / 480.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.3775, allocations: 168.5 kB / 480.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.459e-05/0.3776, allocations: 20.12 kB / 480.4 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.378, allocations: 83.92 kB / 480.5 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.3782, allocations: 120.1 kB / 480.6 MB, free: 7.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.752e-05/0.3783, allocations: 27.91 kB / 480.6 MB, free: 7.051 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001869/0.3785, allocations: 197.9 kB / 480.8 MB, free: 6.859 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3785, allocations: 0 / 480.8 MB, free: 6.859 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004838/0.379, allocations: 132 kB / 480.9 MB, free: 6.73 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) * 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 (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.0002774/0.3792, allocations: 151.1 kB / 481.1 MB, free: 6.574 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.3805, allocations: 0.6078 MB / 481.7 MB, free: 5.949 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3805, allocations: 0 / 481.7 MB, free: 5.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006457/0.3812, allocations: 322.3 kB / 482 MB, free: 5.633 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005918/0.3818, allocations: 71.05 kB / 482.1 MB, free: 5.566 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003773/0.3856, allocations: 1.79 MB / 483.9 MB, free: 3.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.386, allocations: 0.8205 MB / 484.7 MB, free: 2.883 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.3861, allocations: 35.42 kB / 484.7 MB, free: 2.852 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.3861, allocations: 0 / 484.7 MB, free: 2.852 MB / 362.7 MB Notification: Performance of Templates: time 0.01191/0.398, allocations: 8.515 MB / 493.2 MB, free: 10.34 MB / 378.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