Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001723/0.001723, allocations: 121.4 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 213.6 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 59.89 kB / 373.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1044, allocations: 53.32 MB / 427.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.0047/0.1091, allocations: 3.262 MB / 430.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2328/0.342, allocations: 1.252 MB / 431.7 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004653/0.3424, allocations: 10.06 kB / 431.7 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004171/0.3428, allocations: 91.47 kB / 431.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005663/0.3434, allocations: 231.2 kB / 432 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005774/0.344, allocations: 262.3 kB / 432.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007752/0.3448, allocations: 0.8469 MB / 433.1 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.345, allocations: 102.3 kB / 433.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004472/0.3454, allocations: 394.1 kB / 433.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004072/0.3458, allocations: 411 kB / 434 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.3459, allocations: 63.22 kB / 434 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002643/0.3462, allocations: 125.2 kB / 434.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.3464, allocations: 179.2 kB / 434.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002816/0.3467, allocations: 323.7 kB / 434.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008887/0.3475, allocations: 0.7927 MB / 435.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3475, allocations: 5 kB / 435.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3476, allocations: 0.75 kB / 435.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.3476, allocations: 0 / 435.4 MB, free: 7.672 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.001867/0.3494, allocations: 0.9633 MB / 436.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.3495, allocations: 8.25 kB / 436.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003342/0.3498, allocations: 81.81 kB / 436.5 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005786/0.3504, allocations: 398.7 kB / 436.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.3504, allocations: 36.47 kB / 436.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.3505, allocations: 50.08 kB / 437 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.3518, allocations: 0.6213 MB / 437.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.707e-05/0.3518, allocations: 3.906 kB / 437.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.525e-05/0.3518, allocations: 18.59 kB / 437.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.3519, allocations: 11.06 kB / 437.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.3532, allocations: 0.5887 MB / 438.2 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002641/0.3558, allocations: 1.361 MB / 439.6 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.3569, allocations: 484.8 kB / 440.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006146/0.3576, allocations: 299.9 kB / 440.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.967e-05/0.3576, allocations: 7 kB / 440.4 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.3577, allocations: 38.5 kB / 440.4 MB, free: 5.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.695e-06/0.3577, allocations: 0 / 440.4 MB, free: 5.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007011/0.3647, allocations: 2.892 MB / 443.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.3647, allocations: 58.97 kB / 443.3 MB, free: 3.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004122/0.3651, allocations: 363.2 kB / 443.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.987e-05/0.3652, allocations: 56.2 kB / 443.7 MB, free: 3.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.3653, allocations: 198.9 kB / 443.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.3655, allocations: 263.6 kB / 444.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002411/0.3657, allocations: 136.9 kB / 444.3 MB, free: 3.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.338e-05/0.3658, allocations: 361.3 kB / 444.7 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006541/0.3664, allocations: 304.4 kB / 445 MB, free: 2.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006625/0.3671, allocations: 373.2 kB / 445.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.3681, allocations: 498.2 kB / 445.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3681, allocations: 0 / 445.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001974/0.3701, allocations: 0.9346 MB / 446.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3701, allocations: 7.094 kB / 446.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.3701, allocations: 1.219 kB / 446.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.3715, allocations: 0.5718 MB / 447.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/0.3719, allocations: 101.1 kB / 447.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.3733, allocations: 1.094 MB / 448.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007742/0.3741, allocations: 113.7 kB / 448.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.487e-05/0.3742, allocations: 22.81 kB / 448.7 MB, free: 0.9453 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.0002925/0.3744, allocations: 189.7 kB / 448.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.3746, allocations: 62.89 kB / 448.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.3747, allocations: 75.78 kB / 449 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.956e-06/0.3747, allocations: 7.344 kB / 449 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.3747, allocations: 0.5156 kB / 449 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.3747, allocations: 5.234 kB / 449 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003041/0.3778, allocations: 1.614 MB / 450.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3778, allocations: 2.062 kB / 450.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000444/0.3782, allocations: 89.77 kB / 450.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.3795, allocations: 0.5391 MB / 451.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.797e-05/0.3796, allocations: 27.67 kB / 451.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001621/0.3812, allocations: 1.072 MB / 452.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3812, allocations: 4.516 kB / 452.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002782/0.384, allocations: 1.299 MB / 453.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003049/0.3843, allocations: 201.1 kB / 453.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.3845, allocations: 25.62 kB / 453.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006863/0.3851, allocations: 103.4 kB / 454 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003081/0.3854, allocations: 131.1 kB / 454.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.592e-05/0.3855, allocations: 32.31 kB / 454.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003313/0.3859, allocations: 254.8 kB / 454.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3859, allocations: 0 / 454.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006023/0.3865, allocations: 165.4 kB / 454.5 MB, free: 14 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.001392/0.3879, allocations: 407.5 kB / 454.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001718/0.3896, allocations: 0.7158 MB / 455.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.3896, allocations: 0 / 455.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009342/0.3905, allocations: 421.6 kB / 456.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007498/0.3913, allocations: 107.9 kB / 456.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.394, allocations: 1.445 MB / 457.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.3945, allocations: 0.8665 MB / 458.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001933/0.3947, allocations: 53.09 kB / 458.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.3948, allocations: 45.08 kB / 458.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3948, allocations: 0 / 458.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of Templates: time 0.0223/0.4171, allocations: 13.87 MB / 472.5 MB, free: 2.32 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.994881865568459]