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.001483/0.001483, allocations: 185.9 kB / 16.41 MB, free: 5.723 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.9/1.9, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001141/0.001141, allocations: 91.56 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004038/0.0004039, allocations: 15.98 kB / 327 MB, free: 228 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3235, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.4549, allocations: 80.51 MB / 455 MB, free: 272 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.4552, allocations: 71.97 kB / 455.1 MB, free: 200 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03616/0.4914, allocations: 7.743 MB / 462.9 MB, free: 8.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4914, allocations: 4 kB / 462.9 MB, free: 8.426 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.839e-05/0.4915, allocations: 12 kB / 462.9 MB, free: 8.414 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.002141/0.4936, allocations: 0.7214 MB / 463.6 MB, free: 7.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.4937, allocations: 8.031 kB / 463.6 MB, free: 7.633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.4939, allocations: 51.42 kB / 463.6 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00056/0.4944, allocations: 314.1 kB / 464 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.257e-05/0.4945, allocations: 36.95 kB / 464 MB, free: 7.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.4947, allocations: 40 kB / 464 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.4961, allocations: 458.3 kB / 464.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.299e-05/0.4961, allocations: 3.906 kB / 464.5 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.462e-05/0.4962, allocations: 16 kB / 464.5 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.008e-05/0.4962, allocations: 12 kB / 464.5 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.4979, allocations: 443.6 kB / 464.9 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003711/0.5016, allocations: 1.149 MB / 466.1 MB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.503, allocations: 398.1 kB / 466.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000104/0.5032, allocations: 12.42 kB / 466.5 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.5032, allocations: 35 kB / 466.5 MB, free: 4.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.286e-06/0.5032, allocations: 0 / 466.5 MB, free: 4.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.009033/0.5123, allocations: 2.358 MB / 468.9 MB, free: 2.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.5124, allocations: 63.97 kB / 468.9 MB, free: 2.027 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003924/0.5128, allocations: 230.2 kB / 469.2 MB, free: 1.797 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.5129, allocations: 45.64 kB / 469.2 MB, free: 1.746 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.5131, allocations: 231.9 kB / 469.4 MB, free: 1.516 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/0.5134, allocations: 197.2 kB / 469.6 MB, free: 1.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.5135, allocations: 12 kB / 469.6 MB, free: 1.309 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.5137, allocations: 346.7 kB / 470 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008278/0.5145, allocations: 221.2 kB / 470.2 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008762/0.5154, allocations: 272.8 kB / 470.5 MB, free: 484 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006993/0.5161, allocations: 191.1 kB / 470.7 MB, free: 296 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.5161, allocations: 0 / 470.7 MB, free: 296 kB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002983/0.5191, allocations: 0.7133 MB / 471.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.5192, allocations: 7.281 kB / 471.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/0.5192, allocations: 8 kB / 471.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001335/0.5206, allocations: 405.3 kB / 471.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006903/0.5213, allocations: 87.84 kB / 471.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/0.5232, allocations: 1.319 MB / 473.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.5243, allocations: 108.1 kB / 473.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.5244, allocations: 27.94 kB / 473.3 MB, free: 13.56 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.0003616/0.5248, allocations: 165.6 kB / 473.5 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.525, allocations: 39.53 kB / 473.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002776/0.5278, allocations: 0.7444 MB / 474.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.5278, allocations: 8 kB / 474.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.5278, allocations: 0 / 474.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.5279, allocations: 0 / 474.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004553/0.5324, allocations: 1.403 MB / 475.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.5325, allocations: 0 / 475.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007547/0.5332, allocations: 87.89 kB / 475.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.5345, allocations: 377.5 kB / 476.1 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.751e-05/0.5346, allocations: 27.97 kB / 476.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/0.5364, allocations: 1.296 MB / 477.5 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.5364, allocations: 4.031 kB / 477.5 MB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00372/0.5402, allocations: 1.096 MB / 478.6 MB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003619/0.5406, allocations: 168.6 kB / 478.7 MB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.5407, allocations: 20 kB / 478.7 MB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008398/0.5416, allocations: 79.94 kB / 478.8 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003598/0.5419, allocations: 108.2 kB / 478.9 MB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.608e-05/0.542, allocations: 31.91 kB / 479 MB, free: 7.672 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003089/0.5424, allocations: 194 kB / 479.1 MB, free: 7.484 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5424, allocations: 0 / 479.1 MB, free: 7.484 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007306/0.5431, allocations: 136 kB / 479.3 MB, free: 7.352 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.0003341/0.5435, allocations: 148.4 kB / 479.4 MB, free: 7.203 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.5457, allocations: 0.6155 MB / 480 MB, free: 6.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/0.5458, allocations: 4 kB / 480 MB, free: 6.566 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001224/0.547, allocations: 322.6 kB / 480.4 MB, free: 6.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007676/0.5478, allocations: 70.52 kB / 480.4 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006928/0.5548, allocations: 1.79 MB / 482.2 MB, free: 4.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.5553, allocations: 0.8326 MB / 483 MB, free: 3.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/0.5555, allocations: 31.42 kB / 483.1 MB, free: 3.449 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5556, allocations: 0 / 483.1 MB, free: 3.449 MB / 362.7 MB Notification: Performance of Templates: time 0.018/0.5736, allocations: 8.226 MB / 491.3 MB, free: 11.23 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