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.0009582/0.0009583, allocations: 175.4 kB / 16.72 MB, free: 4.961 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.469/1.469, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008083/0.0008083, allocations: 91 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.0003243, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2518, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002813/0.2546, allocations: 2.578 MB / 377.7 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.2562, allocations: 0.9434 MB / 378.6 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.2564, allocations: 5.406 kB / 378.6 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.2566, allocations: 48.25 kB / 378.7 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.2569, allocations: 116.4 kB / 378.8 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004974/0.2574, allocations: 170.8 kB / 378.9 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005137/0.2579, allocations: 0.5592 MB / 379.5 MB, free: 42.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002343/0.2581, allocations: 113.2 kB / 379.6 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003265/0.2585, allocations: 232.3 kB / 379.8 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.2588, allocations: 266.6 kB / 380.1 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.433e-05/0.2589, allocations: 28.09 kB / 380.1 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.259, allocations: 70.95 kB / 380.2 MB, free: 41.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.2592, allocations: 98.19 kB / 380.3 MB, free: 41.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.2594, allocations: 234.7 kB / 380.5 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.2597, allocations: 421.7 kB / 380.9 MB, free: 41.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2598, allocations: 0.8125 kB / 380.9 MB, free: 41.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2598, allocations: 0 / 380.9 MB, free: 41.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.2598, allocations: 0 / 380.9 MB, free: 41.08 MB / 298.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.001203/0.261, allocations: 0.7174 MB / 381.7 MB, free: 40.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.261, allocations: 9.688 kB / 381.7 MB, free: 40.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.2612, allocations: 49.12 kB / 381.7 MB, free: 40.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.2615, allocations: 332.1 kB / 382 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.2616, allocations: 33.03 kB / 382.1 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.601e-05/0.2617, allocations: 46.88 kB / 382.1 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008417/0.2625, allocations: 473.9 kB / 382.6 MB, free: 39.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.2625, allocations: 10.42 kB / 382.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.607e-05/0.2626, allocations: 14.5 kB / 382.6 MB, free: 39.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.2626, allocations: 9.438 kB / 382.6 MB, free: 39.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009106/0.2635, allocations: 496.2 kB / 383.1 MB, free: 39.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.2655, allocations: 1.156 MB / 384.3 MB, free: 38.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007706/0.2663, allocations: 387.3 kB / 384.6 MB, free: 38.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005035/0.2668, allocations: 277.8 kB / 384.9 MB, free: 38.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.949e-05/0.2669, allocations: 6.531 kB / 384.9 MB, free: 38.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.2669, allocations: 40.42 kB / 384.9 MB, free: 38.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.646e-06/0.2669, allocations: 0 / 384.9 MB, free: 38.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.00458/0.2715, allocations: 2.443 MB / 387.4 MB, free: 36.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.725e-05/0.2716, allocations: 55.97 kB / 387.4 MB, free: 36.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.2718, allocations: 295.2 kB / 387.7 MB, free: 35.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.285e-05/0.2718, allocations: 37.7 kB / 387.8 MB, free: 35.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.764e-05/0.2719, allocations: 181.3 kB / 387.9 MB, free: 35.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.272, allocations: 197.3 kB / 388.1 MB, free: 35.31 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.2721, allocations: 11.94 kB / 388.2 MB, free: 35.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.644e-05/0.2722, allocations: 350.8 kB / 388.5 MB, free: 34.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003997/0.2726, allocations: 249.1 kB / 388.7 MB, free: 34.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000413/0.273, allocations: 296.8 kB / 389 MB, free: 34.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006504/0.2736, allocations: 422.4 kB / 389.4 MB, free: 33.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2737, allocations: 0 / 389.4 MB, free: 33.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00118/0.2748, allocations: 0.7523 MB / 390.2 MB, free: 33.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.2749, allocations: 8.812 kB / 390.2 MB, free: 33.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2749, allocations: 3.984 kB / 390.2 MB, free: 33.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007742/0.2757, allocations: 0.4974 MB / 390.7 MB, free: 32.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.276, allocations: 91.83 kB / 390.8 MB, free: 32.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000959/0.2769, allocations: 1.405 MB / 392.2 MB, free: 31.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00047/0.2774, allocations: 104.1 kB / 392.3 MB, free: 31.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.365e-05/0.2775, allocations: 27.97 kB / 392.3 MB, free: 31.03 MB / 298.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 (57): * Single equations (assignments): 55 * 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 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001872/0.2777, allocations: 174.1 kB / 392.5 MB, free: 30.85 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/0.2777, allocations: 39.62 kB / 392.5 MB, free: 30.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.2779, allocations: 63.67 kB / 392.6 MB, free: 30.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.2779, allocations: 4 kB / 392.6 MB, free: 30.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.2779, allocations: 0 / 392.6 MB, free: 30.74 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.2779, allocations: 3.984 kB / 392.6 MB, free: 30.74 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.2803, allocations: 1.489 MB / 394.1 MB, free: 29.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2803, allocations: 0 / 394.1 MB, free: 29.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.2806, allocations: 92.05 kB / 394.2 MB, free: 29.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006441/0.2813, allocations: 477.3 kB / 394.6 MB, free: 28.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.5e-05/0.2813, allocations: 27.97 kB / 394.7 MB, free: 28.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008619/0.2822, allocations: 1.378 MB / 396.1 MB, free: 27.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.2822, allocations: 7.922 kB / 396.1 MB, free: 27.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/0.2839, allocations: 1.1 MB / 397.2 MB, free: 26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.2841, allocations: 168.5 kB / 397.3 MB, free: 25.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.913e-05/0.2842, allocations: 20 kB / 397.3 MB, free: 25.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003803/0.2846, allocations: 79.92 kB / 397.4 MB, free: 25.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.2848, allocations: 108.2 kB / 397.5 MB, free: 25.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.05e-05/0.2848, allocations: 31.97 kB / 397.6 MB, free: 25.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001523/0.285, allocations: 198 kB / 397.8 MB, free: 25.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.285, allocations: 0 / 397.8 MB, free: 25.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000448/0.2854, allocations: 140 kB / 397.9 MB, free: 25.25 MB / 298.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 (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 (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 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000209/0.2856, allocations: 127.2 kB / 398 MB, free: 25.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.2867, allocations: 0.6049 MB / 398.6 MB, free: 24.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2867, allocations: 0 / 398.6 MB, free: 24.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005643/0.2873, allocations: 338.7 kB / 399 MB, free: 24.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005952/0.2879, allocations: 73.39 kB / 399 MB, free: 24.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003201/0.2911, allocations: 1.818 MB / 400.8 MB, free: 22.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.2914, allocations: 0.8166 MB / 401.7 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.2915, allocations: 31.42 kB / 401.7 MB, free: 21.38 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2915, allocations: 0 / 401.7 MB, free: 21.38 MB / 298.7 MB Notification: Performance of Templates: time 0.008551/0.3, allocations: 8.49 MB / 410.2 MB, free: 12.89 MB / 298.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/jenkins/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