Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009933/0.0009936, allocations: 180.9 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 223.2 MB / 240.3 MB, free: 10.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008718/0.0008718, allocations: 105.2 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00026/0.00026, allocations: 7.938 kB / 351.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2173, allocations: 50.4 MB / 401.5 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09349/0.3108, allocations: 81.43 MB / 482.9 MB, free: 15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.3111, allocations: 75.95 kB / 483 MB, free: 14.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02197/0.3331, allocations: 7.88 MB / 490.9 MB, free: 7.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.3331, allocations: 4 kB / 490.9 MB, free: 7.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.3332, allocations: 8 kB / 490.9 MB, free: 7.012 MB / 362.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.001262/0.3344, allocations: 0.7253 MB / 491.6 MB, free: 6.234 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.3345, allocations: 12.03 kB / 491.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.996e-05/0.3346, allocations: 47.44 kB / 491.7 MB, free: 6.176 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.335, allocations: 310.1 kB / 492 MB, free: 5.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.335, allocations: 29 kB / 492 MB, free: 5.805 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.049e-05/0.3351, allocations: 44 kB / 492 MB, free: 5.762 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008275/0.336, allocations: 450.3 kB / 492.5 MB, free: 5.316 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.336, allocations: 7.891 kB / 492.5 MB, free: 5.309 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.033e-05/0.3361, allocations: 31.83 kB / 492.5 MB, free: 5.277 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.3361, allocations: 8 kB / 492.5 MB, free: 5.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008681/0.337, allocations: 447.7 kB / 493 MB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.3392, allocations: 1.145 MB / 494.1 MB, free: 3.633 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008079/0.34, allocations: 400.1 kB / 494.5 MB, free: 3.234 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.982e-05/0.3401, allocations: 24.34 kB / 494.5 MB, free: 3.211 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.3401, allocations: 35 kB / 494.6 MB, free: 3.168 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 2.745e-06/0.3401, allocations: 0 / 494.6 MB, free: 3.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.005106/0.3452, allocations: 2.349 MB / 496.9 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.3453, allocations: 63.91 kB / 497 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.3456, allocations: 230.1 kB / 497.2 MB, free: 396 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.803e-05/0.3457, allocations: 45.7 kB / 497.2 MB, free: 344 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.3458, allocations: 177.4 kB / 497.4 MB, free: 160 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.346, allocations: 205.3 kB / 497.6 MB, free: 15.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.3461, allocations: 12 kB / 497.6 MB, free: 15.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3463, allocations: 346.8 kB / 498 MB, free: 15.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004753/0.3467, allocations: 225.2 kB / 498.2 MB, free: 15.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004718/0.3472, allocations: 276.8 kB / 498.5 MB, free: 15.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.3476, allocations: 179.2 kB / 498.6 MB, free: 14.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3476, allocations: 0 / 498.6 MB, free: 14.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001595/0.3492, allocations: 0.7364 MB / 499.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3493, allocations: 7.938 kB / 499.4 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.3493, allocations: 4 kB / 499.4 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008075/0.3501, allocations: 397.4 kB / 499.8 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003254/0.3504, allocations: 87.89 kB / 499.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.3516, allocations: 1.327 MB / 0.4894 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005047/0.3522, allocations: 100.1 kB / 0.4895 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.524e-05/0.3522, allocations: 23.98 kB / 0.4895 GB, free: 12.18 MB / 378.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.0002609/0.3525, allocations: 176.2 kB / 0.4897 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.3526, allocations: 43.48 kB / 0.4898 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001511/0.3541, allocations: 0.7366 MB / 0.4905 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3541, allocations: 4 kB / 0.4905 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3542, allocations: 0 / 0.4905 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3542, allocations: 0 / 0.4905 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/0.3567, allocations: 1.403 MB / 0.4919 GB, free: 9.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.3568, allocations: 7.938 kB / 0.4919 GB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003782/0.3571, allocations: 84.05 kB / 0.4919 GB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006749/0.3578, allocations: 381.4 kB / 0.4923 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.735e-05/0.3579, allocations: 27.91 kB / 0.4923 GB, free: 9.223 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/0.359, allocations: 1.304 MB / 0.4936 GB, free: 7.867 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.359, allocations: 7.938 kB / 0.4936 GB, free: 7.859 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.361, allocations: 1.077 MB / 0.4947 GB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.3613, allocations: 160.6 kB / 0.4948 GB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.462e-05/0.3614, allocations: 23.98 kB / 0.4948 GB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004183/0.3618, allocations: 79.94 kB / 0.4949 GB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.362, allocations: 116.2 kB / 0.495 GB, free: 6.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.599e-05/0.3621, allocations: 27.97 kB / 0.4951 GB, free: 6.297 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00019/0.3623, allocations: 193.9 kB / 0.4952 GB, free: 6.109 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3623, allocations: 0 / 0.4952 GB, free: 6.109 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005124/0.3628, allocations: 132 kB / 0.4954 GB, free: 5.98 MB / 378.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.0002516/0.3631, allocations: 150 kB / 0.4955 GB, free: 5.828 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.3644, allocations: 0.6156 MB / 0.4961 GB, free: 5.203 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3644, allocations: 8.062 kB / 0.4961 GB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006761/0.3651, allocations: 330.1 kB / 0.4964 GB, free: 4.867 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.3655, allocations: 68.05 kB / 0.4965 GB, free: 4.805 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.3693, allocations: 1.761 MB / 0.4982 GB, free: 3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.3697, allocations: 0.8287 MB / 0.499 GB, free: 2.145 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001744/0.3699, allocations: 35.27 kB / 0.4991 GB, free: 2.109 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.485e-05/0.37, allocations: 35.42 kB / 0.4991 GB, free: 2.074 MB / 378.7 MB Notification: Performance of SimCode: time 9.42e-07/0.37, allocations: 0 / 0.4991 GB, free: 2.074 MB / 378.7 MB Notification: Performance of Templates: time 0.1779/0.5479, allocations: 8.409 MB / 0.5073 GB, free: 99.54 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches