Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002196/0.002196, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.002/2.002, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 92.86 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.125e-05/2.122e-05, allocations: 7.984 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3912, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1854/0.5766, allocations: 78.11 MB / 440.4 MB, free: 8.223 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004008/0.5771, allocations: 67.95 kB / 440.5 MB, free: 8.156 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05545/0.6326, allocations: 9.133 MB / 449.6 MB, free: 15.07 MB / 347.1 MB Notification: Performance of FrontEnd: time 4.839e-06/0.6327, allocations: 0 / 449.6 MB, free: 15.07 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.25e-05/0.6327, allocations: 19.94 kB / 449.7 MB, free: 15.05 MB / 347.1 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.002664/0.6354, allocations: 0.7705 MB / 450.4 MB, free: 14.24 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.6355, allocations: 12.03 kB / 450.4 MB, free: 14.23 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000276/0.6357, allocations: 63.23 kB / 450.5 MB, free: 14.16 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007414/0.6365, allocations: 327.6 kB / 450.8 MB, free: 13.8 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.6366, allocations: 19.95 kB / 450.8 MB, free: 13.79 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.6367, allocations: 28 kB / 450.9 MB, free: 13.76 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00144/0.6382, allocations: 478.4 kB / 451.3 MB, free: 13.29 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.6396, allocations: 0.5039 MB / 451.8 MB, free: 12.77 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.924e-05/0.6396, allocations: 8.656 kB / 451.8 MB, free: 12.77 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.863e-05/0.6397, allocations: 0 / 451.8 MB, free: 12.77 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-05/0.6398, allocations: 11.98 kB / 451.9 MB, free: 12.75 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004327/0.6441, allocations: 1.261 MB / 453.1 MB, free: 11.45 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.6455, allocations: 427.5 kB / 453.5 MB, free: 11.02 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006939/0.6463, allocations: 247.8 kB / 453.8 MB, free: 10.78 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/0.6464, allocations: 12.56 kB / 453.8 MB, free: 10.77 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.358e-05/0.6465, allocations: 39.12 kB / 453.8 MB, free: 10.72 MB / 347.1 MB Notification: Performance of pre-optimization done (n=61): time 3.837e-06/0.6465, allocations: 1.969 kB / 453.8 MB, free: 10.72 MB / 347.1 MB Notification: Performance of matching and sorting (n=67): time 0.006919/0.6534, allocations: 1.853 MB / 455.7 MB, free: 8.777 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.6535, allocations: 55.97 kB / 455.7 MB, free: 8.707 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004055/0.6539, allocations: 237.2 kB / 456 MB, free: 8.469 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002236/0.6542, allocations: 41.69 kB / 456 MB, free: 8.422 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.6544, allocations: 243.7 kB / 456.2 MB, free: 8.18 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003901/0.6548, allocations: 228.8 kB / 456.5 MB, free: 7.953 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.759e-05/0.6549, allocations: 0 / 456.5 MB, free: 7.953 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.6551, allocations: 342.8 kB / 456.8 MB, free: 7.609 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007392/0.6558, allocations: 241.5 kB / 457 MB, free: 7.375 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008303/0.6567, allocations: 301.5 kB / 457.3 MB, free: 7.074 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000903/0.6576, allocations: 206.8 kB / 457.5 MB, free: 6.875 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.6576, allocations: 0 / 457.5 MB, free: 6.875 MB / 347.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002511/0.6602, allocations: 0.7357 MB / 458.3 MB, free: 6.133 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.6602, allocations: 4 kB / 458.3 MB, free: 6.129 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.364e-05/0.6603, allocations: 7.984 kB / 458.3 MB, free: 6.121 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001803/0.6621, allocations: 0.5493 MB / 458.8 MB, free: 5.57 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000783/0.6629, allocations: 95.89 kB / 458.9 MB, free: 5.477 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002409/0.6653, allocations: 1.068 MB / 460 MB, free: 4.383 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.6668, allocations: 139.8 kB / 460.1 MB, free: 4.246 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/0.667, allocations: 31.98 kB / 460.2 MB, free: 4.215 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0003518/0.6674, allocations: 127.3 kB / 460.3 MB, free: 4.086 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.6676, allocations: 47.44 kB / 460.3 MB, free: 4.039 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002848/0.6704, allocations: 0.8209 MB / 461.2 MB, free: 3.199 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.6705, allocations: 11.95 kB / 461.2 MB, free: 3.188 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.497e-06/0.6705, allocations: 0 / 461.2 MB, free: 3.188 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.6705, allocations: 3.984 kB / 461.2 MB, free: 3.184 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003982/0.6745, allocations: 1.326 MB / 462.5 MB, free: 1.812 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.6746, allocations: 0 / 462.5 MB, free: 1.812 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008919/0.6755, allocations: 99.88 kB / 462.6 MB, free: 1.715 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.6772, allocations: 0.52 MB / 463.1 MB, free: 1.191 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.6773, allocations: 27.86 kB / 463.1 MB, free: 1.164 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/0.6796, allocations: 1.019 MB / 464.2 MB, free: 124 kB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.6797, allocations: 1.031 kB / 464.2 MB, free: 124 kB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/0.6832, allocations: 1.082 MB / 465.2 MB, free: 15.02 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004792/0.6837, allocations: 188.4 kB / 465.4 MB, free: 14.82 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.6839, allocations: 16 kB / 465.4 MB, free: 14.8 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.6852, allocations: 131.9 kB / 465.6 MB, free: 14.67 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004746/0.6857, allocations: 148.2 kB / 465.7 MB, free: 14.52 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/0.6858, allocations: 39.89 kB / 465.8 MB, free: 14.48 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0003487/0.6862, allocations: 192.6 kB / 465.9 MB, free: 14.3 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6862, allocations: 0 / 465.9 MB, free: 14.3 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0008791/0.6871, allocations: 136 kB / 466.1 MB, free: 14.16 MB / 363.1 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) * 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.0003881/0.6875, allocations: 147.2 kB / 466.2 MB, free: 14.01 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.6896, allocations: 0.7099 MB / 466.9 MB, free: 13.28 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.6896, allocations: 0 / 466.9 MB, free: 13.28 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.6908, allocations: 364.8 kB / 467.3 MB, free: 12.93 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009163/0.6918, allocations: 71.09 kB / 467.4 MB, free: 12.86 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003842/0.6956, allocations: 1.203 MB / 468.6 MB, free: 11.63 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.6962, allocations: 0.8593 MB / 469.4 MB, free: 10.75 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.6965, allocations: 39.41 kB / 469.5 MB, free: 10.71 MB / 363.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6965, allocations: 0 / 469.5 MB, free: 10.71 MB / 363.1 MB Notification: Performance of Templates: time 0.02068/0.7172, allocations: 8.262 MB / 477.7 MB, free: 2.48 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches