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.001309/0.001308, allocations: 177.4 kB / 16.41 MB, free: 5.703 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.403/1.403, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0009083/0.0009085, allocations: 86.31 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.000332, allocations: 12 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2361, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003154/0.2393, allocations: 2.572 MB / 377.1 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.2413, allocations: 0.9505 MB / 378.1 MB, free: 42.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004241/0.2417, allocations: 4.938 kB / 378.1 MB, free: 42.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002906/0.2421, allocations: 48.94 kB / 378.1 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000395/0.2425, allocations: 108.9 kB / 378.2 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005122/0.243, allocations: 170.1 kB / 378.4 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005026/0.2435, allocations: 0.5586 MB / 379 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.2437, allocations: 102.1 kB / 379.1 MB, free: 41.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000289/0.244, allocations: 240.8 kB / 379.3 MB, free: 41.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002889/0.2443, allocations: 258.3 kB / 379.5 MB, free: 41.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.173e-05/0.2444, allocations: 26.12 kB / 379.6 MB, free: 41.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001685/0.2446, allocations: 77.77 kB / 379.7 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.512e-05/0.2447, allocations: 98.12 kB / 379.7 MB, free: 41.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.069e-05/0.2448, allocations: 99.94 kB / 379.8 MB, free: 41.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.2451, allocations: 414.1 kB / 380.2 MB, free: 41.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.2451, allocations: 0 / 380.2 MB, free: 41.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2451, allocations: 0 / 380.2 MB, free: 41.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.2451, allocations: 1.125 kB / 380.2 MB, free: 41.22 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.001197/0.2464, allocations: 0.7284 MB / 381 MB, free: 40.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.2464, allocations: 9.594 kB / 381 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.107e-05/0.2465, allocations: 52.28 kB / 381 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.2468, allocations: 313.3 kB / 381.3 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.2469, allocations: 37.34 kB / 381.4 MB, free: 40.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.746e-05/0.2469, allocations: 42.62 kB / 381.4 MB, free: 40.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007949/0.2477, allocations: 473.2 kB / 381.9 MB, free: 39.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.2478, allocations: 10.5 kB / 381.9 MB, free: 39.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.276e-05/0.2478, allocations: 14.88 kB / 381.9 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.2478, allocations: 9.969 kB / 381.9 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008644/0.2487, allocations: 495.6 kB / 382.4 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.2505, allocations: 1.148 MB / 383.6 MB, free: 38.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007277/0.2512, allocations: 401.4 kB / 383.9 MB, free: 38.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000484/0.2517, allocations: 273.7 kB / 384.2 MB, free: 38.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.2518, allocations: 8.797 kB / 384.2 MB, free: 38.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.2518, allocations: 41.05 kB / 384.3 MB, free: 38.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.784e-06/0.2518, allocations: 1.094 kB / 384.3 MB, free: 38.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004614/0.2564, allocations: 2.448 MB / 386.7 MB, free: 36.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.661e-05/0.2564, allocations: 55.97 kB / 386.8 MB, free: 36.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.2567, allocations: 279.3 kB / 387 MB, free: 36.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.574e-05/0.2567, allocations: 45.7 kB / 387.1 MB, free: 35.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.781e-05/0.2568, allocations: 185.2 kB / 387.3 MB, free: 35.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.2569, allocations: 193.4 kB / 387.4 MB, free: 35.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.257, allocations: 15.92 kB / 387.5 MB, free: 35.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.7e-05/0.257, allocations: 346.8 kB / 387.8 MB, free: 35.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.2574, allocations: 249.2 kB / 388 MB, free: 35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004029/0.2578, allocations: 296.8 kB / 388.3 MB, free: 34.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003545/0.2582, allocations: 203.2 kB / 388.5 MB, free: 34.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2582, allocations: 0 / 388.5 MB, free: 34.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001167/0.2594, allocations: 0.7561 MB / 389.3 MB, free: 33.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2594, allocations: 4 kB / 389.3 MB, free: 33.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.2594, allocations: 0 / 389.3 MB, free: 33.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007395/0.2602, allocations: 0.4974 MB / 389.8 MB, free: 33.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.2605, allocations: 99.83 kB / 389.9 MB, free: 33.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009201/0.2614, allocations: 1.405 MB / 391.3 MB, free: 31.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004588/0.2619, allocations: 104.1 kB / 391.4 MB, free: 31.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.2619, allocations: 16 kB / 391.4 MB, free: 31.55 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.0001703/0.2621, allocations: 177.5 kB / 391.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.699e-05/0.2622, allocations: 43.53 kB / 391.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.463e-05/0.2623, allocations: 51.73 kB / 391.7 MB, free: 31.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2623, allocations: 12 kB / 391.7 MB, free: 31.26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.2623, allocations: 0 / 391.7 MB, free: 31.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2623, allocations: 3.984 kB / 391.7 MB, free: 31.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.2646, allocations: 1.485 MB / 393.2 MB, free: 29.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2646, allocations: 4 kB / 393.2 MB, free: 29.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.2649, allocations: 83.89 kB / 393.3 MB, free: 29.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005906/0.2655, allocations: 485.6 kB / 393.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/0.2656, allocations: 23.97 kB / 393.8 MB, free: 29.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008274/0.2664, allocations: 1.374 MB / 395.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.2664, allocations: 7.969 kB / 395.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.2681, allocations: 1.096 MB / 396.2 MB, free: 26.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.2683, allocations: 172.5 kB / 396.4 MB, free: 26.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.97e-05/0.2684, allocations: 23.95 kB / 396.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003969/0.2688, allocations: 83.92 kB / 396.5 MB, free: 26.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.2689, allocations: 112.1 kB / 396.6 MB, free: 26.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-05/0.269, allocations: 23.98 kB / 396.6 MB, free: 26.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001407/0.2691, allocations: 201.9 kB / 396.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2691, allocations: 0 / 396.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004369/0.2696, allocations: 132 kB / 397 MB, free: 25.78 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.0002067/0.2698, allocations: 143.2 kB / 397.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.2709, allocations: 0.5967 MB / 397.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2709, allocations: 0 / 397.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000554/0.2714, allocations: 338.2 kB / 398 MB, free: 24.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005561/0.272, allocations: 79.08 kB / 398.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003238/0.2753, allocations: 1.798 MB / 399.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/0.2755, allocations: 0.8244 MB / 400.7 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.646e-05/0.2756, allocations: 39.42 kB / 400.8 MB, free: 21.9 MB / 298.7 MB Notification: Performance of SimCode: time 8.72e-07/0.2756, allocations: 0 / 400.8 MB, free: 21.9 MB / 298.7 MB Notification: Performance of Templates: time 0.007896/0.2835, allocations: 8.469 MB / 409.2 MB, free: 13.43 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