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.001482/0.001482, allocations: 187.1 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.942/1.942, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001124/0.001124, allocations: 95.55 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003781/0.000378, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3287, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.4536, allocations: 78.85 MB / 453.4 MB, free: 1.891 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.4539, allocations: 71.95 kB / 453.5 MB, free: 1.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04412/0.4981, allocations: 9.223 MB / 462.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4981, allocations: 4 kB / 462.7 MB, free: 8.578 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.985e-05/0.4982, allocations: 8 kB / 462.7 MB, free: 8.57 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.00278/0.501, allocations: 0.826 MB / 463.5 MB, free: 7.695 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.501, allocations: 12.03 kB / 463.5 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.5013, allocations: 59.25 kB / 463.6 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006467/0.5019, allocations: 330.7 kB / 463.9 MB, free: 7.266 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.392e-05/0.502, allocations: 36.95 kB / 463.9 MB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.5022, allocations: 51.89 kB / 464 MB, free: 7.176 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/0.504, allocations: 0.5955 MB / 464.6 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.152e-05/0.5041, allocations: 0 / 464.6 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.068e-05/0.5042, allocations: 16 kB / 464.6 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.5042, allocations: 12 kB / 464.6 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002104/0.5063, allocations: 0.5465 MB / 465.2 MB, free: 5.996 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004287/0.5107, allocations: 1.348 MB / 466.5 MB, free: 4.594 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/0.5125, allocations: 479 kB / 467 MB, free: 4.121 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001277/0.5127, allocations: 8.562 kB / 467 MB, free: 4.113 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.5127, allocations: 39.12 kB / 467 MB, free: 4.066 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 3.807e-06/0.5128, allocations: 3.938 kB / 467 MB, free: 4.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.01176/0.5245, allocations: 2.924 MB / 470 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.5246, allocations: 59.97 kB / 470 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004596/0.5251, allocations: 259.7 kB / 470.3 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.5253, allocations: 49.7 kB / 470.3 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.5255, allocations: 235.9 kB / 470.6 MB, free: 384 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003042/0.5258, allocations: 236.8 kB / 470.8 MB, free: 144 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.697e-05/0.5259, allocations: 8 kB / 470.8 MB, free: 136 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.5261, allocations: 338.8 kB / 471.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001096/0.5272, allocations: 297.9 kB / 471.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.5283, allocations: 349.1 kB / 471.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009248/0.5293, allocations: 231.1 kB / 472 MB, free: 14.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.5293, allocations: 4 kB / 472 MB, free: 14.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002975/0.5323, allocations: 0.8341 MB / 472.8 MB, free: 14.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.5323, allocations: 8 kB / 472.8 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.865e-05/0.5324, allocations: 3.984 kB / 472.8 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001895/0.5343, allocations: 0.5733 MB / 473.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000786/0.5351, allocations: 99.88 kB / 473.5 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002212/0.5373, allocations: 0.9941 MB / 474.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.5388, allocations: 147.9 kB / 474.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.539, allocations: 31.98 kB / 474.7 MB, free: 12.2 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.0004325/0.5394, allocations: 180 kB / 474.8 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.5396, allocations: 43.53 kB / 474.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003382/0.543, allocations: 0.925 MB / 475.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.543, allocations: 8 kB / 475.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.5431, allocations: 4 kB / 475.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.5431, allocations: 3.984 kB / 475.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004504/0.5476, allocations: 1.489 MB / 477.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/0.5477, allocations: 3.953 kB / 477.3 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008686/0.5485, allocations: 91.88 kB / 477.4 MB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00176/0.5503, allocations: 0.5512 MB / 478 MB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/0.5505, allocations: 19.97 kB / 478 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002009/0.5525, allocations: 0.9582 MB / 478.9 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5525, allocations: 0 / 478.9 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004302/0.5568, allocations: 1.214 MB / 480.2 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004835/0.5574, allocations: 188.4 kB / 480.3 MB, free: 6.367 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.5576, allocations: 24 kB / 480.4 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.5589, allocations: 139.9 kB / 480.5 MB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004973/0.5594, allocations: 152.2 kB / 480.6 MB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.5596, allocations: 32.06 kB / 480.7 MB, free: 6.027 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003699/0.5599, allocations: 223.2 kB / 480.9 MB, free: 5.812 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.56, allocations: 0 / 480.9 MB, free: 5.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008632/0.5608, allocations: 159.9 kB / 481.1 MB, free: 5.656 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.000371/0.5612, allocations: 159.1 kB / 481.2 MB, free: 5.488 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002924/0.5642, allocations: 0.8085 MB / 482 MB, free: 4.668 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.5642, allocations: 0 / 482 MB, free: 4.668 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.5658, allocations: 409.8 kB / 482.4 MB, free: 4.266 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009553/0.5668, allocations: 77.33 kB / 482.5 MB, free: 4.188 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004628/0.5714, allocations: 1.705 MB / 484.2 MB, free: 2.453 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005055/0.572, allocations: 0.852 MB / 485 MB, free: 1.574 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002658/0.5723, allocations: 43.41 kB / 485.1 MB, free: 1.531 MB / 362.7 MB Notification: Performance of SimCode: time 1.413e-06/0.5723, allocations: 0 / 485.1 MB, free: 1.531 MB / 362.7 MB Notification: Performance of Templates: time 0.0195/0.5918, allocations: 8.314 MB / 493.4 MB, free: 9.227 MB / 378.7 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