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.0009927/0.0009928, allocations: 170.9 kB / 17.39 MB, free: 4.301 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.347/1.347, allocations: 223.3 MB / 241.4 MB, free: 9.965 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.0009043/0.0009043, allocations: 89.05 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004911/0.0004913, allocations: 11.94 kB / 352.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2421, allocations: 50.4 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1002/0.3423, allocations: 81.48 MB / 484.2 MB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.3426, allocations: 75.95 kB / 484.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02243/0.3651, allocations: 7.883 MB / 492.2 MB, free: 6.852 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3651, allocations: 0 / 492.2 MB, free: 6.852 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.224e-05/0.3651, allocations: 8 kB / 492.2 MB, free: 6.844 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.001588/0.3667, allocations: 0.7177 MB / 492.9 MB, free: 6.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.3668, allocations: 12.03 kB / 492.9 MB, free: 6.059 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001781/0.367, allocations: 52.38 kB / 493 MB, free: 6.008 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000456/0.3674, allocations: 323.2 kB / 493.3 MB, free: 5.652 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.17e-05/0.3675, allocations: 33.38 kB / 493.3 MB, free: 5.621 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.3676, allocations: 44.38 kB / 493.4 MB, free: 5.578 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008986/0.3685, allocations: 454.9 kB / 493.8 MB, free: 5.129 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.972e-05/0.3686, allocations: 4.094 kB / 493.8 MB, free: 5.125 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.156e-05/0.3686, allocations: 19.94 kB / 493.8 MB, free: 5.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.3686, allocations: 8 kB / 493.8 MB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009494/0.3696, allocations: 451.7 kB / 494.3 MB, free: 4.656 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.3719, allocations: 1.153 MB / 495.4 MB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000806/0.3727, allocations: 400.4 kB / 495.8 MB, free: 3.051 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.3733, allocations: 258.1 kB / 496.1 MB, free: 2.797 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.877e-05/0.3733, allocations: 12.42 kB / 496.1 MB, free: 2.785 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.3734, allocations: 39 kB / 496.1 MB, free: 2.738 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 2.715e-06/0.3734, allocations: 4 kB / 496.1 MB, free: 2.734 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.004991/0.3784, allocations: 2.341 MB / 498.5 MB, free: 272 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.3784, allocations: 59.91 kB / 498.5 MB, free: 200 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.3788, allocations: 263.1 kB / 498.8 MB, free: 15.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.141e-05/0.3789, allocations: 49.62 kB / 498.8 MB, free: 15.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.379, allocations: 173.4 kB / 499 MB, free: 15.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/0.3792, allocations: 209.1 kB / 499.2 MB, free: 15.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.3793, allocations: 12 kB / 499.2 MB, free: 15.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.3795, allocations: 354.7 kB / 499.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005253/0.38, allocations: 221.2 kB / 499.8 MB, free: 14.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004856/0.3805, allocations: 276.8 kB / 0.4883 GB, free: 14.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007235/0.3812, allocations: 382.4 kB / 0.4887 GB, free: 14.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3812, allocations: 4 kB / 0.4887 GB, free: 14.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001563/0.3828, allocations: 0.7326 MB / 0.4894 GB, free: 13.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3828, allocations: 4 kB / 0.4894 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.111e-05/0.3829, allocations: 7.938 kB / 0.4894 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008921/0.3838, allocations: 401.4 kB / 0.4898 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003292/0.3841, allocations: 87.89 kB / 0.4899 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001206/0.3853, allocations: 1.323 MB / 0.4912 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005067/0.3858, allocations: 100.1 kB / 0.4913 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.788e-05/0.3859, allocations: 27.98 kB / 0.4913 GB, free: 11.51 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.0002699/0.3862, allocations: 169.7 kB / 0.4915 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.136e-05/0.3863, allocations: 39.53 kB / 0.4915 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/0.3879, allocations: 0.7404 MB / 0.4922 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.388, allocations: 8 kB / 0.4922 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.388, allocations: 4 kB / 0.4922 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.388, allocations: 3.984 kB / 0.4922 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002738/0.3907, allocations: 1.419 MB / 0.4936 GB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.3907, allocations: 0 / 0.4936 GB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003606/0.3911, allocations: 87.89 kB / 0.4937 GB, free: 8.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007153/0.3918, allocations: 377.5 kB / 0.4941 GB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.522e-05/0.3919, allocations: 19.98 kB / 0.4941 GB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.393, allocations: 1.308 MB / 0.4954 GB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.393, allocations: 4.031 kB / 0.4954 GB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.3949, allocations: 1.006 MB / 0.4964 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/0.3951, allocations: 160.6 kB / 0.4965 GB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.607e-05/0.3952, allocations: 20 kB / 0.4965 GB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.3957, allocations: 83.92 kB / 0.4966 GB, free: 5.855 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.3959, allocations: 120.1 kB / 0.4967 GB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.988e-05/0.396, allocations: 32.09 kB / 0.4968 GB, free: 5.707 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001955/0.3962, allocations: 194 kB / 0.4969 GB, free: 5.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3962, allocations: 0 / 0.4969 GB, free: 5.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005081/0.3967, allocations: 132 kB / 0.4971 GB, free: 5.391 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.00025/0.397, allocations: 147 kB / 0.4972 GB, free: 5.234 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.3982, allocations: 0.6195 MB / 0.4978 GB, free: 4.602 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3982, allocations: 0 / 0.4978 GB, free: 4.602 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006777/0.3989, allocations: 326.4 kB / 0.4981 GB, free: 4.281 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006075/0.3995, allocations: 68.61 kB / 0.4982 GB, free: 4.215 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.4034, allocations: 1.766 MB / 0.4999 GB, free: 2.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.4038, allocations: 0.8166 MB / 0.5007 GB, free: 1.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000182/0.404, allocations: 39.25 kB / 0.5007 GB, free: 1.531 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.576e-05/0.4041, allocations: 35.44 kB / 0.5008 GB, free: 1.496 MB / 378.7 MB Notification: Performance of SimCode: time 4.2e-07/0.4041, allocations: 0 / 0.5008 GB, free: 1.496 MB / 378.7 MB Notification: Performance of Templates: time 0.1634/0.5675, allocations: 8.476 MB / 0.5091 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/jenkins1/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