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.001358/0.001358, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.668/1.668, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007982/0.0007982, allocations: 90.64 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.75e-05/2.753e-05, allocations: 3.984 kB / 322.4 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 47.58 MB / 370 MB, free: 1.699 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3674/0.4701, allocations: 78.75 MB / 448.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.4704, allocations: 80.3 kB / 448.9 MB, free: 14.47 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02589/0.4963, allocations: 9.192 MB / 458 MB, free: 6.539 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.4964, allocations: 3.938 kB / 458 MB, free: 6.535 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.772e-05/0.4964, allocations: 8 kB / 458.1 MB, free: 6.527 MB / 330.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.001542/0.498, allocations: 0.7736 MB / 458.8 MB, free: 5.734 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.498, allocations: 8.031 kB / 458.8 MB, free: 5.727 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.4982, allocations: 63.25 kB / 458.9 MB, free: 5.664 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004839/0.4986, allocations: 332.2 kB / 459.2 MB, free: 5.332 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.673e-05/0.4987, allocations: 35.64 kB / 459.3 MB, free: 5.312 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.733e-05/0.4988, allocations: 46.61 kB / 459.3 MB, free: 5.281 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009287/0.4997, allocations: 0.5611 MB / 459.9 MB, free: 4.879 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.4998, allocations: 3.906 kB / 459.9 MB, free: 4.875 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.754e-05/0.4998, allocations: 18.25 kB / 459.9 MB, free: 4.871 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.4998, allocations: 12 kB / 459.9 MB, free: 4.859 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000874/0.5007, allocations: 496.6 kB / 460.4 MB, free: 4.402 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002447/0.5032, allocations: 1.351 MB / 461.7 MB, free: 2.996 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008558/0.5041, allocations: 440.7 kB / 462.2 MB, free: 2.555 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004138/0.5045, allocations: 270.5 kB / 462.4 MB, free: 2.289 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.178e-05/0.5046, allocations: 4.562 kB / 462.4 MB, free: 2.285 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.5046, allocations: 39.12 kB / 462.5 MB, free: 2.238 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 3.707e-06/0.5046, allocations: 0 / 462.5 MB, free: 2.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.003466/0.5081, allocations: 1.932 MB / 464.4 MB, free: 220 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.5081, allocations: 59.97 kB / 464.5 MB, free: 148 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/0.5084, allocations: 250.7 kB / 464.7 MB, free: 15.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.663e-05/0.5085, allocations: 49.7 kB / 464.8 MB, free: 15.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.5086, allocations: 189.4 kB / 464.9 MB, free: 15.65 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.5088, allocations: 228.8 kB / 465.2 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.75e-05/0.5089, allocations: 16 kB / 465.2 MB, free: 15.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.509, allocations: 362.7 kB / 465.5 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004421/0.5095, allocations: 261.5 kB / 465.8 MB, free: 14.79 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004844/0.51, allocations: 319.1 kB / 466.1 MB, free: 14.47 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003289/0.5103, allocations: 198 kB / 466.3 MB, free: 14.28 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.5103, allocations: 4 kB / 466.3 MB, free: 14.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001371/0.5117, allocations: 0.7862 MB / 467.1 MB, free: 13.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.5117, allocations: 4 kB / 467.1 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/0.5117, allocations: 4 kB / 467.1 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.5128, allocations: 0.5575 MB / 467.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.5132, allocations: 99.88 kB / 467.7 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.5144, allocations: 0.9819 MB / 468.7 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000693/0.5151, allocations: 155.9 kB / 468.9 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-05/0.5152, allocations: 28.06 kB / 468.9 MB, free: 11.62 MB / 346.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 () * 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.0001756/0.5154, allocations: 147.1 kB / 469.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.465e-05/0.5155, allocations: 47.44 kB / 469.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001629/0.5171, allocations: 0.8587 MB / 470 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.5171, allocations: 4 kB / 470 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5172, allocations: 0 / 470 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.5172, allocations: 7.984 kB / 470 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.5194, allocations: 1.434 MB / 471.4 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5195, allocations: 0 / 471.4 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004421/0.5199, allocations: 95.88 kB / 471.5 MB, free: 8.945 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009065/0.5208, allocations: 0.524 MB / 472 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.555e-05/0.5209, allocations: 31.95 kB / 472.1 MB, free: 8.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.5221, allocations: 0.9555 MB / 473 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.5221, allocations: 0 / 473 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001887/0.524, allocations: 1.117 MB / 474.1 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002647/0.5242, allocations: 188.4 kB / 474.3 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.5244, allocations: 20 kB / 474.3 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006678/0.525, allocations: 143.9 kB / 474.5 MB, free: 5.906 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/0.5253, allocations: 148.2 kB / 474.6 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-05/0.5254, allocations: 39.95 kB / 474.7 MB, free: 5.723 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002292/0.5257, allocations: 210.2 kB / 474.9 MB, free: 5.516 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5257, allocations: 4 kB / 474.9 MB, free: 5.512 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005918/0.5263, allocations: 156 kB / 475 MB, free: 5.359 MB / 346.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) * 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.0002785/0.5266, allocations: 147.5 kB / 475.2 MB, free: 5.207 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.5279, allocations: 0.7429 MB / 475.9 MB, free: 4.453 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.5279, allocations: 8.062 kB / 475.9 MB, free: 4.445 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006522/0.5286, allocations: 389.8 kB / 476.3 MB, free: 4.066 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005417/0.5292, allocations: 75.2 kB / 476.4 MB, free: 3.992 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.5315, allocations: 1.208 MB / 477.6 MB, free: 2.762 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.5319, allocations: 0.8557 MB / 478.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002051/0.5321, allocations: 48.16 kB / 478.5 MB, free: 1.828 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.5323, allocations: 31.42 kB / 478.5 MB, free: 1.797 MB / 346.7 MB Notification: Performance of SimCode: time 8.31e-07/0.5323, allocations: 0 / 478.5 MB, free: 1.797 MB / 346.7 MB Notification: Performance of Templates: time 0.01809/0.5504, allocations: 11.48 MB / 490 MB, free: 6.305 MB / 362.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/jenkins/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