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.001514/0.001514, allocations: 180.7 kB / 16.38 MB, free: 5.762 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.253/1.253, allocations: 223.2 MB / 240.3 MB, free: 11.86 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.0009252/0.0009252, allocations: 96.59 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000328/0.0003279, allocations: 8 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2239, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09267/0.3166, allocations: 79.76 MB / 481.3 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.3169, allocations: 67.97 kB / 481.3 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02724/0.3441, allocations: 9.349 MB / 490.7 MB, free: 7.289 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.367e-06/0.3442, allocations: 4 kB / 490.7 MB, free: 7.285 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.1e-05/0.3442, allocations: 12 kB / 490.7 MB, free: 7.273 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.001735/0.3459, allocations: 0.8145 MB / 491.5 MB, free: 6.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.346, allocations: 12.03 kB / 491.5 MB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.3461, allocations: 59.25 kB / 491.6 MB, free: 6.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.3466, allocations: 338.7 kB / 491.9 MB, free: 5.973 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.3466, allocations: 37 kB / 491.9 MB, free: 5.934 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.22e-05/0.3467, allocations: 43.91 kB / 492 MB, free: 5.891 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.3478, allocations: 0.5878 MB / 492.6 MB, free: 5.293 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.3478, allocations: 4 kB / 492.6 MB, free: 5.289 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.794e-05/0.3479, allocations: 19.95 kB / 492.6 MB, free: 5.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.3479, allocations: 16 kB / 492.6 MB, free: 5.254 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.349, allocations: 0.5503 MB / 493.2 MB, free: 4.699 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002323/0.3513, allocations: 1.351 MB / 494.5 MB, free: 3.293 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009645/0.3523, allocations: 481.2 kB / 495 MB, free: 2.812 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.216e-05/0.3524, allocations: 12.56 kB / 495 MB, free: 2.801 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.3524, allocations: 43.06 kB / 495 MB, free: 2.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=61): time 2.755e-06/0.3524, allocations: 0 / 495 MB, free: 2.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.00624/0.3587, allocations: 2.928 MB / 498 MB, free: 15.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.3587, allocations: 59.97 kB / 498 MB, free: 15.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.359, allocations: 251.7 kB / 498.3 MB, free: 15.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.33e-05/0.3591, allocations: 49.69 kB / 498.3 MB, free: 15.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.3592, allocations: 185.4 kB / 498.5 MB, free: 15.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.3594, allocations: 232.9 kB / 498.7 MB, free: 14.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.3595, allocations: 16 kB / 498.7 MB, free: 14.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3597, allocations: 354.7 kB / 499.1 MB, free: 14.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005681/0.3602, allocations: 289.9 kB / 499.4 MB, free: 14.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006059/0.3608, allocations: 361 kB / 499.7 MB, free: 13.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004725/0.3613, allocations: 223.2 kB / 499.9 MB, free: 13.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3613, allocations: 4 kB / 499.9 MB, free: 13.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001633/0.363, allocations: 0.8495 MB / 0.489 GB, free: 12.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.363, allocations: 8.031 kB / 0.4891 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.363, allocations: 15.88 kB / 0.4891 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.3642, allocations: 0.5759 MB / 0.4896 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.3646, allocations: 103.8 kB / 0.4897 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.3658, allocations: 0.9703 MB / 0.4907 GB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007313/0.3666, allocations: 151.9 kB / 0.4908 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/0.3667, allocations: 31.98 kB / 0.4909 GB, free: 10.92 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.0003237/0.367, allocations: 193.6 kB / 0.491 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.3671, allocations: 51.44 kB / 0.4911 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.369, allocations: 0.9172 MB / 0.492 GB, free: 9.727 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3691, allocations: 8 kB / 0.492 GB, free: 9.719 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3691, allocations: 4 kB / 0.492 GB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3691, allocations: 0 / 0.492 GB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.3716, allocations: 1.489 MB / 0.4935 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3717, allocations: 3.938 kB / 0.4935 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004391/0.3721, allocations: 91.89 kB / 0.4935 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009637/0.3731, allocations: 0.5472 MB / 0.4941 GB, free: 7.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-05/0.3732, allocations: 27.97 kB / 0.4941 GB, free: 7.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.3743, allocations: 0.9561 MB / 0.495 GB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3744, allocations: 0 / 0.495 GB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.3767, allocations: 1.21 MB / 0.4962 GB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.377, allocations: 184.4 kB / 0.4964 GB, free: 5.082 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.3771, allocations: 24 kB / 0.4964 GB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006317/0.3777, allocations: 147.8 kB / 0.4966 GB, free: 4.914 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002828/0.378, allocations: 152.2 kB / 0.4967 GB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-05/0.3781, allocations: 31.97 kB / 0.4967 GB, free: 4.734 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002454/0.3784, allocations: 223.1 kB / 0.4969 GB, free: 4.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3784, allocations: 0 / 0.4969 GB, free: 4.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006046/0.379, allocations: 160 kB / 0.4971 GB, free: 4.363 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.0002561/0.3793, allocations: 147.2 kB / 0.4972 GB, free: 4.211 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.3809, allocations: 0.8045 MB / 0.498 GB, free: 3.391 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3809, allocations: 4.062 kB / 0.498 GB, free: 3.387 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007716/0.3817, allocations: 409.9 kB / 0.4984 GB, free: 2.984 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005439/0.3823, allocations: 89.33 kB / 0.4985 GB, free: 2.895 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.3849, allocations: 1.678 MB / 0.5001 GB, free: 1.195 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.3853, allocations: 0.8598 MB / 0.501 GB, free: 316 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002257/0.3855, allocations: 44.16 kB / 0.501 GB, free: 268 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.3856, allocations: 35.42 kB / 0.5011 GB, free: 232 kB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.3856, allocations: 0 / 0.5011 GB, free: 232 kB / 378.7 MB Notification: Performance of Templates: time 0.1857/0.5713, allocations: 11.46 MB / 0.5122 GB, free: 97.27 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/jenkins/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