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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 187 kB / 24.46 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.674/1.674, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,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=1500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002616/0.002616, allocations: 43.88 kB / 371.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3594, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004352/0.3638, allocations: 2.877 MB / 426.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.3655, allocations: 1.001 MB / 427.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.3657, allocations: 7.938 kB / 427.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00023/0.3659, allocations: 79.23 kB / 427.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003019/0.3662, allocations: 162.7 kB / 427.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000678/0.3669, allocations: 287.5 kB / 428.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007446/0.3676, allocations: 0.7996 MB / 429 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.3678, allocations: 88.55 kB / 429.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004802/0.3683, allocations: 370.8 kB / 429.5 MB, free: 8.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004822/0.3688, allocations: 354.7 kB / 429.8 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.3689, allocations: 60 kB / 429.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002111/0.3691, allocations: 108 kB / 430 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.3693, allocations: 163.5 kB / 430.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002539/0.3695, allocations: 258.8 kB / 430.4 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008499/0.3704, allocations: 0.7236 MB / 431.1 MB, free: 7.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3704, allocations: 0 / 431.1 MB, free: 7.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3704, allocations: 0 / 431.1 MB, free: 7.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.3704, allocations: 7.984 kB / 431.1 MB, free: 7.129 MB / 334.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.001695/0.3721, allocations: 0.8204 MB / 431.9 MB, free: 6.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3721, allocations: 12.86 kB / 432 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.3722, allocations: 64.56 kB / 432 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005396/0.3728, allocations: 306.1 kB / 432.3 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.3728, allocations: 37.38 kB / 432.4 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.3729, allocations: 44.33 kB / 432.4 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.374, allocations: 0.6191 MB / 433 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.3741, allocations: 4 kB / 433 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.335e-05/0.3741, allocations: 20 kB / 433 MB, free: 5.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.3741, allocations: 8 kB / 433 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.3753, allocations: 0.6011 MB / 433.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.3776, allocations: 1.092 MB / 434.7 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009758/0.3786, allocations: 445.4 kB / 435.2 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005753/0.3792, allocations: 286.2 kB / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.996e-05/0.3792, allocations: 8.5 kB / 435.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.3792, allocations: 35.06 kB / 435.5 MB, free: 2.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 1.924e-06/0.3792, allocations: 0 / 435.5 MB, free: 2.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.006174/0.3854, allocations: 2.493 MB / 438 MB, free: 88 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.3855, allocations: 60.06 kB / 438 MB, free: 12 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003474/0.3858, allocations: 316.5 kB / 438.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.287e-05/0.3859, allocations: 49.69 kB / 438.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.386, allocations: 205.5 kB / 438.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.3862, allocations: 234.1 kB / 438.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.3864, allocations: 126.6 kB / 439 MB, free: 15.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3866, allocations: 358.8 kB / 439.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006285/0.3872, allocations: 321.8 kB / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006884/0.3879, allocations: 381 kB / 440 MB, free: 14.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009961/0.3889, allocations: 0.5028 MB / 440.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.3889, allocations: 7.938 kB / 440.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001732/0.3907, allocations: 0.9117 MB / 441.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3907, allocations: 8 kB / 441.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3907, allocations: 0 / 441.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.3919, allocations: 0.7268 MB / 442.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.3923, allocations: 95.89 kB / 442.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.3938, allocations: 1.089 MB / 443.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006541/0.3945, allocations: 116 kB / 443.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.3e-05/0.3945, allocations: 23.98 kB / 443.5 MB, free: 10.5 MB / 350.1 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 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002516/0.3948, allocations: 187.6 kB / 443.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.3949, allocations: 51.67 kB / 443.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001618/0.3951, allocations: 76.75 kB / 443.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.3951, allocations: 4 kB / 443.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3951, allocations: 0 / 443.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.3951, allocations: 3.984 kB / 443.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00281/0.3979, allocations: 1.383 MB / 445.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3979, allocations: 4 kB / 445.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004369/0.3983, allocations: 91.88 kB / 445.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/0.3995, allocations: 0.7033 MB / 446 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-05/0.3996, allocations: 23.97 kB / 446 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001437/0.401, allocations: 1.058 MB / 447 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.401, allocations: 0 / 447 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002551/0.4036, allocations: 1.304 MB / 448.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002794/0.4039, allocations: 111.6 kB / 448.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.404, allocations: 24 kB / 448.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006243/0.4046, allocations: 103.9 kB / 448.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/0.4049, allocations: 136.3 kB / 448.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.445e-05/0.4049, allocations: 27.97 kB / 448.7 MB, free: 5.113 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.4052, allocations: 223 kB / 449 MB, free: 4.898 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4052, allocations: 0 / 449 MB, free: 4.898 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005156/0.4057, allocations: 160 kB / 449.1 MB, free: 4.742 MB / 350.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,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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002399/0.4059, allocations: 146.3 kB / 449.3 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.4075, allocations: 0.7303 MB / 450 MB, free: 3.859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4075, allocations: 0 / 450 MB, free: 3.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008483/0.4084, allocations: 410.1 kB / 450.4 MB, free: 3.465 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006532/0.409, allocations: 99.05 kB / 450.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002676/0.4117, allocations: 1.436 MB / 451.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.412, allocations: 245.6 kB / 452.2 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.4122, allocations: 51.41 kB / 452.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4122, allocations: 0 / 452.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of Templates: time 0.01374/0.4259, allocations: 8.852 MB / 461.1 MB, free: 8.758 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.772670636884868]