Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009579/0.000958, allocations: 200.7 kB / 18.11 MB, free: 3.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 226.5 MB / 245.4 MB, free: 6.406 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009697/0.0009698, allocations: 97.55 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002371/0.0002373, allocations: 4 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2442, allocations: 51.3 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1048/0.3491, allocations: 81.34 MB / 490.7 MB, free: 10.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002213/0.3494, allocations: 77.78 kB / 490.8 MB, free: 10.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03546/0.3848, allocations: 12.59 MB / 0.4916 GB, free: 13.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3849, allocations: 0 / 0.4916 GB, free: 13.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.15e-05/0.3849, allocations: 8 kB / 0.4916 GB, free: 13.48 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.00187/0.3868, allocations: 0.8845 MB / 0.4925 GB, free: 12.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.3869, allocations: 8.031 kB / 0.4925 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004188/0.3873, allocations: 84.27 kB / 0.4925 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005992/0.3879, allocations: 382 kB / 0.4929 GB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.074e-05/0.388, allocations: 33.38 kB / 0.4929 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.3881, allocations: 52.28 kB / 0.493 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.3892, allocations: 0.6078 MB / 0.4936 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.3893, allocations: 192 / 0.4936 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.929e-05/0.3893, allocations: 23.94 kB / 0.4936 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.3893, allocations: 15.94 kB / 0.4936 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.3906, allocations: 0.5777 MB / 0.4942 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002566/0.3932, allocations: 1.402 MB / 0.4956 GB, free: 9.258 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.3943, allocations: 0.511 MB / 0.4961 GB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005938/0.3949, allocations: 310.4 kB / 0.4963 GB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.935e-05/0.395, allocations: 12.56 kB / 0.4964 GB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.395, allocations: 39.12 kB / 0.4964 GB, free: 8.375 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.766e-06/0.395, allocations: 0 / 0.4964 GB, free: 8.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.006727/0.4018, allocations: 2.987 MB / 0.4993 GB, free: 5.246 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.4018, allocations: 60.05 kB / 0.4994 GB, free: 5.176 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004735/0.4023, allocations: 349.6 kB / 0.4997 GB, free: 4.824 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.161e-05/0.4024, allocations: 53.7 kB / 0.4998 GB, free: 4.766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.4026, allocations: 193.4 kB / 0.4999 GB, free: 4.574 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.4028, allocations: 252.5 kB / 0.5002 GB, free: 4.324 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-05/0.4028, allocations: 19.94 kB / 0.5002 GB, free: 4.305 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.403, allocations: 358.8 kB / 0.5005 GB, free: 3.945 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000674/0.4037, allocations: 305.9 kB / 0.5008 GB, free: 3.645 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006808/0.4044, allocations: 373.4 kB / 0.5012 GB, free: 3.277 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.4054, allocations: 492.7 kB / 0.5017 GB, free: 2.789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4054, allocations: 0 / 0.5017 GB, free: 2.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001876/0.4073, allocations: 0.9118 MB / 0.5026 GB, free: 1.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.4073, allocations: 4 kB / 0.5026 GB, free: 1.863 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.4074, allocations: 4 kB / 0.5026 GB, free: 1.859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.4087, allocations: 0.5005 MB / 0.503 GB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003918/0.4091, allocations: 99.83 kB / 0.5031 GB, free: 1.258 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.4106, allocations: 1.081 MB / 0.5042 GB, free: 152 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007872/0.4114, allocations: 147.9 kB / 0.5043 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1768/0.5882, allocations: 19.36 kB / 0.5044 GB, free: 94.28 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 (61): * Single equations (assignments): 60 * 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 28} Notification: Performance of prepare postOptimizeDAE: time 0.0004141/0.5887, allocations: 191.7 kB / 0.5045 GB, free: 94.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001834/0.5889, allocations: 56.88 kB / 0.5046 GB, free: 94.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001869/0.5891, allocations: 75.7 kB / 0.5047 GB, free: 94.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.5891, allocations: 9.234 kB / 0.5047 GB, free: 94.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.5891, allocations: 0.5 kB / 0.5047 GB, free: 94.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.5891, allocations: 7.562 kB / 0.5047 GB, free: 94.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003181/0.5923, allocations: 1.611 MB / 0.5063 GB, free: 93.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.5923, allocations: 2.969 kB / 0.5063 GB, free: 93.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004517/0.5928, allocations: 97.22 kB / 0.5064 GB, free: 93.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.5939, allocations: 474.5 kB / 0.5068 GB, free: 93.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.199e-05/0.5939, allocations: 23.53 kB / 0.5068 GB, free: 93.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.5951, allocations: 1.053 MB / 0.5079 GB, free: 93.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5951, allocations: 1.375 kB / 0.5079 GB, free: 93.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.5976, allocations: 1.311 MB / 0.5091 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003345/0.5979, allocations: 204.3 kB / 0.5093 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.598, allocations: 23.81 kB / 0.5094 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006449/0.5987, allocations: 144.3 kB / 0.5095 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003064/0.599, allocations: 154.5 kB / 0.5096 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.589e-05/0.5991, allocations: 30.7 kB / 0.5097 GB, free: 93.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00034/0.5994, allocations: 246.9 kB / 0.5099 GB, free: 92.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5994, allocations: 0.6562 kB / 0.5099 GB, free: 92.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006112/0.6, allocations: 167.8 kB / 0.5101 GB, free: 92.97 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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,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 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008162/0.6009, allocations: 406.9 kB / 0.5105 GB, free: 92.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.6023, allocations: 0.7682 MB / 0.5112 GB, free: 92.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.6024, allocations: 0 / 0.5112 GB, free: 92.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007077/0.6031, allocations: 441.5 kB / 0.5116 GB, free: 92.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007077/0.6038, allocations: 105.1 kB / 0.5117 GB, free: 92.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.6059, allocations: 1.701 MB / 0.5134 GB, free: 91.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.6062, allocations: 0.8595 MB / 0.5142 GB, free: 90.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002177/0.6064, allocations: 54.61 kB / 0.5143 GB, free: 90.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.6065, allocations: 44.28 kB / 0.5143 GB, free: 90.75 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.6065, allocations: 0 / 0.5143 GB, free: 90.75 MB / 378.7 MB Notification: Performance of Templates: time 0.01431/0.6208, allocations: 12.12 MB / 0.5262 GB, free: 84.5 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches