Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002143/0.002143, allocations: 211.4 kB / 24.48 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.97/1.97, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 47.92 kB / 379 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3484, allocations: 53.37 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.007052/0.3554, allocations: 3 MB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003422/0.3588, allocations: 1.212 MB / 436.5 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002841/0.3591, allocations: 11.94 kB / 436.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004434/0.3596, allocations: 95.14 kB / 436.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007801/0.3603, allocations: 230.4 kB / 436.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008942/0.3612, allocations: 267.6 kB / 437.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001341/0.3626, allocations: 0.8542 MB / 438 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.3629, allocations: 109.8 kB / 438.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007941/0.3637, allocations: 398.8 kB / 438.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007668/0.3644, allocations: 418.5 kB / 438.9 MB, free: 116 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.3646, allocations: 64 kB / 438.9 MB, free: 52 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004018/0.365, allocations: 120 kB / 439.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003051/0.3653, allocations: 175.4 kB / 439.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004521/0.3658, allocations: 282.7 kB / 439.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001427/0.3672, allocations: 0.7968 MB / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3672, allocations: 0 / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3672, allocations: 0 / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.3672, allocations: 4 kB / 440.3 MB, free: 14.68 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.002961/0.3702, allocations: 0.894 MB / 441.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.3702, allocations: 8.031 kB / 441.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005386/0.3708, allocations: 84.53 kB / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.3718, allocations: 336.4 kB / 441.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.839e-05/0.3719, allocations: 37.38 kB / 441.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.3721, allocations: 56.31 kB / 441.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001907/0.374, allocations: 0.6152 MB / 442.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/0.374, allocations: 4 kB / 442.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.752e-05/0.3741, allocations: 16 kB / 442.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.3741, allocations: 8 kB / 442.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/0.3763, allocations: 0.5894 MB / 442.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003719/0.38, allocations: 1.111 MB / 444.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.3818, allocations: 486.8 kB / 444.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.3828, allocations: 290.7 kB / 444.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-05/0.3829, allocations: 12.66 kB / 444.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/0.3829, allocations: 39.2 kB / 444.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.556e-06/0.3829, allocations: 0 / 444.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.011/0.3939, allocations: 2.52 MB / 447.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.394, allocations: 60.06 kB / 447.4 MB, free: 7.363 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006547/0.3947, allocations: 361.5 kB / 447.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.3948, allocations: 53.69 kB / 447.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.395, allocations: 197.6 kB / 448 MB, free: 6.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003634/0.3954, allocations: 261.8 kB / 448.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003946/0.3958, allocations: 130.6 kB / 448.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002465/0.396, allocations: 358.8 kB / 448.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.3971, allocations: 309.9 kB / 449.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.3983, allocations: 377.4 kB / 449.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/0.4, allocations: 497 kB / 449.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4, allocations: 0 / 449.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003357/0.4033, allocations: 0.9314 MB / 450.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.4034, allocations: 4 kB / 450.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.4034, allocations: 4 kB / 450.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002216/0.4056, allocations: 0.5668 MB / 451.4 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007265/0.4063, allocations: 95.88 kB / 451.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002575/0.4089, allocations: 1.105 MB / 452.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.4101, allocations: 115.8 kB / 452.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.4102, allocations: 27.98 kB / 452.8 MB, free: 1.938 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 (61): * Single equations (assignments): 60 * 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,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0004533/0.4107, allocations: 184 kB / 453 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.4109, allocations: 63.56 kB / 453 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.4111, allocations: 80.98 kB / 453.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.4112, allocations: 8 kB / 453.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.4112, allocations: 0 / 453.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.4112, allocations: 3.984 kB / 453.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004715/0.4159, allocations: 1.404 MB / 454.5 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.4159, allocations: 0 / 454.5 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007457/0.4166, allocations: 91.88 kB / 454.6 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002181/0.4188, allocations: 0.5356 MB / 455.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.4189, allocations: 31.95 kB / 455.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/0.4215, allocations: 1.073 MB / 456.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4215, allocations: 0 / 456.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00462/0.4262, allocations: 1.304 MB / 457.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005129/0.4267, allocations: 119.5 kB / 457.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.4269, allocations: 28 kB / 457.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.428, allocations: 99.86 kB / 457.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004758/0.4284, allocations: 136.4 kB / 457.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.4286, allocations: 31.97 kB / 458 MB, free: 12.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004717/0.429, allocations: 247.2 kB / 458.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.429, allocations: 0 / 458.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009721/0.43, allocations: 163.9 kB / 458.4 MB, free: 12.26 MB / 366.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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002131/0.4321, allocations: 429.5 kB / 458.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002819/0.4349, allocations: 0.7231 MB / 459.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.4349, allocations: 0 / 459.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.4364, allocations: 424.6 kB / 459.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.4377, allocations: 115.3 kB / 460 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004293/0.442, allocations: 1.423 MB / 461.4 MB, free: 9.289 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.4424, allocations: 263.4 kB / 461.7 MB, free: 9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003636/0.4428, allocations: 52.39 kB / 461.8 MB, free: 8.949 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/0.443, allocations: 47.42 kB / 461.8 MB, free: 8.902 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.443, allocations: 0 / 461.8 MB, free: 8.902 MB / 366.1 MB Notification: Performance of Templates: time 0.03327/0.4763, allocations: 12.48 MB / 474.3 MB, free: 12.54 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.033258833995205]