Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.001325, allocations: 177 kB / 17.4 MB, free: 4.418 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.395/1.395, allocations: 223.3 MB / 241.4 MB, free: 11.71 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.0007962/0.0007962, allocations: 105 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.0003081, allocations: 12 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.258, allocations: 50.39 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08997/0.348, allocations: 79.8 MB / 482.5 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.3484, allocations: 71.95 kB / 482.6 MB, free: 492 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04914/0.3976, allocations: 9.359 MB / 492 MB, free: 7.109 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.3976, allocations: 0 / 492 MB, free: 7.109 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.76e-05/0.3977, allocations: 8 kB / 492 MB, free: 7.102 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.003226/0.4009, allocations: 0.8147 MB / 492.8 MB, free: 6.234 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.105e-05/0.401, allocations: 12.03 kB / 492.8 MB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00027/0.4013, allocations: 60.19 kB / 492.9 MB, free: 6.164 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007628/0.4021, allocations: 347.7 kB / 493.2 MB, free: 5.789 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.838e-05/0.4022, allocations: 37.38 kB / 493.2 MB, free: 5.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.4023, allocations: 44.28 kB / 493.3 MB, free: 5.707 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.4043, allocations: 0.5961 MB / 493.9 MB, free: 5.102 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.808e-05/0.4044, allocations: 4.188 kB / 493.9 MB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-05/0.4045, allocations: 23.88 kB / 493.9 MB, free: 5.074 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.534e-05/0.4045, allocations: 15.98 kB / 493.9 MB, free: 5.059 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002309/0.4069, allocations: 0.5465 MB / 494.5 MB, free: 4.512 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004573/0.4114, allocations: 1.351 MB / 495.8 MB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.4134, allocations: 485.2 kB / 496.3 MB, free: 2.621 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009947/0.4144, allocations: 294.4 kB / 496.6 MB, free: 2.332 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-05/0.4146, allocations: 8.562 kB / 496.6 MB, free: 2.324 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.4146, allocations: 43.11 kB / 496.6 MB, free: 2.273 MB / 362.7 MB Notification: Performance of pre-optimization done (n=61): time 4.709e-06/0.4146, allocations: 0 / 496.6 MB, free: 2.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.01027/0.4249, allocations: 2.934 MB / 499.6 MB, free: 15.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.425, allocations: 55.97 kB / 499.6 MB, free: 15.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004391/0.4255, allocations: 288.6 kB / 499.9 MB, free: 14.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.994e-05/0.4256, allocations: 53.69 kB / 499.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.4258, allocations: 189.4 kB / 0.4884 GB, free: 14.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/0.426, allocations: 232.9 kB / 0.4886 GB, free: 14.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/0.4261, allocations: 12 kB / 0.4886 GB, free: 14.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.4262, allocations: 350.8 kB / 0.489 GB, free: 14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000829/0.4271, allocations: 293.9 kB / 0.4893 GB, free: 13.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006073/0.4277, allocations: 353.1 kB / 0.4896 GB, free: 13.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009095/0.4286, allocations: 483.1 kB / 0.4901 GB, free: 12.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.4286, allocations: 4 kB / 0.4901 GB, free: 12.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001677/0.4303, allocations: 0.8528 MB / 0.4909 GB, free: 12.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.4304, allocations: 12.77 kB / 0.4909 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/0.4304, allocations: 3.938 kB / 0.4909 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.4315, allocations: 0.5817 MB / 0.4915 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003756/0.4319, allocations: 103.8 kB / 0.4916 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.4332, allocations: 0.9778 MB / 0.4925 GB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006844/0.4339, allocations: 151.9 kB / 0.4927 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.749e-05/0.434, allocations: 27.98 kB / 0.4927 GB, free: 10.13 MB / 378.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.0003198/0.4343, allocations: 188 kB / 0.4929 GB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.4344, allocations: 51.42 kB / 0.4929 GB, free: 9.887 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.4363, allocations: 0.925 MB / 0.4938 GB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/0.4363, allocations: 4 kB / 0.4938 GB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.4363, allocations: 3.938 kB / 0.4938 GB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.4363, allocations: 0 / 0.4938 GB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002536/0.4389, allocations: 1.489 MB / 0.4953 GB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.4389, allocations: 3.938 kB / 0.4953 GB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004167/0.4393, allocations: 91.89 kB / 0.4954 GB, free: 7.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000959/0.4403, allocations: 0.5472 MB / 0.4959 GB, free: 6.738 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-05/0.4404, allocations: 31.95 kB / 0.496 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/0.4416, allocations: 0.956 MB / 0.4969 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4416, allocations: 0 / 0.4969 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002227/0.4438, allocations: 1.202 MB / 0.4981 GB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002658/0.4441, allocations: 188.4 kB / 0.4982 GB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.4442, allocations: 39.88 kB / 0.4983 GB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005905/0.4448, allocations: 143.9 kB / 0.4984 GB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000308/0.4451, allocations: 148.2 kB / 0.4986 GB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.485e-05/0.4452, allocations: 27.97 kB / 0.4986 GB, free: 3.945 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002174/0.4454, allocations: 223.2 kB / 0.4988 GB, free: 3.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4454, allocations: 0 / 0.4988 GB, free: 3.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005666/0.446, allocations: 156 kB / 0.4989 GB, free: 3.578 MB / 378.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.0002767/0.4463, allocations: 154.4 kB / 0.4991 GB, free: 3.422 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.448, allocations: 0.8085 MB / 0.4999 GB, free: 2.594 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.448, allocations: 0 / 0.4999 GB, free: 2.594 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007813/0.4488, allocations: 413.8 kB / 0.5003 GB, free: 2.191 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006867/0.4495, allocations: 89.41 kB / 0.5004 GB, free: 2.102 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.4521, allocations: 1.674 MB / 0.502 GB, free: 404 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1516/0.6038, allocations: 0.8396 MB / 0.5028 GB, free: 99.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002655/0.6041, allocations: 39.77 kB / 0.5029 GB, free: 99.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.6042, allocations: 34.64 kB / 0.5029 GB, free: 99.67 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.6043, allocations: 0 / 0.5029 GB, free: 99.67 MB / 378.7 MB Notification: Performance of Templates: time 0.01472/0.619, allocations: 11.55 MB / 0.5142 GB, free: 97.06 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches