Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001459/0.001459, allocations: 182.6 kB / 18.04 MB, free: 3.785 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.41/1.41, allocations: 205.4 MB / 224.2 MB, free: 9.051 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.0007404/0.0007618, allocations: 98 kB / 272.5 MB, free: 8.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003619, allocations: 8 kB / 329.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.259, allocations: 47.58 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09923/0.3583, allocations: 78.91 MB / 455.9 MB, free: 1.652 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.3586, allocations: 71.97 kB / 456 MB, free: 1.582 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02734/0.3859, allocations: 9.219 MB / 465.2 MB, free: 8.355 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.386, allocations: 0 / 465.2 MB, free: 8.355 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.614e-05/0.386, allocations: 12 kB / 465.2 MB, free: 8.344 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002059/0.3881, allocations: 0.8107 MB / 466 MB, free: 7.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.3882, allocations: 8.031 kB / 466.1 MB, free: 7.473 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00026/0.3884, allocations: 64.19 kB / 466.1 MB, free: 7.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006356/0.3891, allocations: 355.7 kB / 466.5 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.671e-05/0.3892, allocations: 33.38 kB / 466.5 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.3893, allocations: 48.28 kB / 466.5 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.3906, allocations: 0.5922 MB / 467.1 MB, free: 6.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.68e-05/0.3907, allocations: 4.188 kB / 467.1 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.189e-05/0.3907, allocations: 27.86 kB / 467.2 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.3908, allocations: 8 kB / 467.2 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.3921, allocations: 0.5543 MB / 467.7 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002769/0.3948, allocations: 1.34 MB / 469.1 MB, free: 4.352 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.3959, allocations: 477.2 kB / 469.5 MB, free: 3.875 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005543/0.3965, allocations: 298.4 kB / 469.8 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.319e-05/0.3966, allocations: 12.55 kB / 469.8 MB, free: 3.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.3966, allocations: 35.12 kB / 469.9 MB, free: 3.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 4.308e-06/0.3966, allocations: 0 / 469.9 MB, free: 3.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.006411/0.403, allocations: 2.934 MB / 472.8 MB, free: 460 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.4031, allocations: 63.97 kB / 472.9 MB, free: 384 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.4034, allocations: 288.5 kB / 473.2 MB, free: 88 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.915e-05/0.4035, allocations: 49.7 kB / 473.2 MB, free: 32 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.4037, allocations: 185.4 kB / 473.4 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.4039, allocations: 232.8 kB / 473.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-05/0.404, allocations: 23.98 kB / 473.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.4041, allocations: 346.8 kB / 474 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006042/0.4047, allocations: 293.9 kB / 474.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006474/0.4054, allocations: 361.1 kB / 474.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009662/0.4064, allocations: 475.1 kB / 475.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.4064, allocations: 3.938 kB / 475.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001716/0.4081, allocations: 0.8568 MB / 475.9 MB, free: 13.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.4082, allocations: 4 kB / 475.9 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.326e-05/0.4082, allocations: 7.984 kB / 475.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.4093, allocations: 0.5751 MB / 476.5 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003899/0.4097, allocations: 103.8 kB / 476.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/0.411, allocations: 0.9857 MB / 477.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007087/0.4117, allocations: 147.9 kB / 477.8 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.831e-05/0.4118, allocations: 27.98 kB / 477.8 MB, free: 11.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003284/0.4121, allocations: 187.9 kB / 478 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.4123, allocations: 47.44 kB / 478 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001934/0.4142, allocations: 0.925 MB / 478.9 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.4142, allocations: 8 kB / 478.9 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.4142, allocations: 3.938 kB / 478.9 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4142, allocations: 7.922 kB / 479 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.4169, allocations: 1.477 MB / 480.4 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.4169, allocations: 3.938 kB / 480.4 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/0.4174, allocations: 99.81 kB / 480.5 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009878/0.4184, allocations: 0.5512 MB / 481.1 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.888e-05/0.4184, allocations: 27.97 kB / 481.1 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.4196, allocations: 0.9551 MB / 482.1 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4196, allocations: 0 / 482.1 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002342/0.422, allocations: 1.202 MB / 483.3 MB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002817/0.4223, allocations: 188.4 kB / 483.5 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.4224, allocations: 27.94 kB / 483.5 MB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006319/0.423, allocations: 143.9 kB / 483.6 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002717/0.4233, allocations: 152.2 kB / 483.8 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.676e-05/0.4234, allocations: 27.97 kB / 483.8 MB, free: 5.195 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002247/0.4236, allocations: 219.2 kB / 484 MB, free: 4.984 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.363e-06/0.4236, allocations: 0 / 484 MB, free: 4.984 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005915/0.4242, allocations: 163.9 kB / 484.2 MB, free: 4.824 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002905/0.4245, allocations: 151.1 kB / 484.3 MB, free: 4.668 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.4262, allocations: 0.8124 MB / 485.1 MB, free: 3.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4262, allocations: 0 / 485.1 MB, free: 3.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008244/0.427, allocations: 405.9 kB / 485.5 MB, free: 3.445 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007221/0.4277, allocations: 89.31 kB / 485.6 MB, free: 3.355 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00309/0.4308, allocations: 1.673 MB / 487.3 MB, free: 1.652 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004137/0.4313, allocations: 0.8403 MB / 488.1 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002112/0.4315, allocations: 48.16 kB / 488.2 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.4316, allocations: 35.42 kB / 488.2 MB, free: 0.707 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4316, allocations: 0 / 488.2 MB, free: 0.707 MB / 362.7 MB Notification: Performance of Templates: time 0.0188/0.4504, allocations: 11.54 MB / 499.8 MB, free: 5.18 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches