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.001337/0.001337, allocations: 106.2 kB / 19.8 MB, free: 2.5 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.001427/0.001427, allocations: 216.8 kB / 22.99 MB, free: 5.574 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.422/1.422, allocations: 230.2 MB / 256.2 MB, free: 8.543 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.001883/0.001883, allocations: 71.88 kB / 376.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2503, allocations: 53.31 MB / 429.8 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005/0.2553, allocations: 3.287 MB / 433.1 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.2576, allocations: 1.255 MB / 434.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.2577, allocations: 11.94 kB / 434.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003442/0.2581, allocations: 95.16 kB / 434.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004498/0.2585, allocations: 218.4 kB / 434.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005215/0.259, allocations: 275.5 kB / 434.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009402/0.26, allocations: 0.8506 MB / 435.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.2602, allocations: 101.1 kB / 435.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005491/0.2608, allocations: 386.8 kB / 436.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005374/0.2613, allocations: 414.5 kB / 436.6 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.2614, allocations: 68 kB / 436.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002325/0.2616, allocations: 120 kB / 436.8 MB, free: 484 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002244/0.2619, allocations: 179.4 kB / 437 MB, free: 304 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003351/0.2622, allocations: 318.6 kB / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008882/0.2631, allocations: 0.7989 MB / 438.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2631, allocations: 0 / 438.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2631, allocations: 3.938 kB / 438.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.2631, allocations: 0 / 438.1 MB, free: 15.18 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.00195/0.265, allocations: 0.9733 MB / 439.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.2651, allocations: 8.031 kB / 439.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003287/0.2654, allocations: 88.53 kB / 439.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005816/0.266, allocations: 390.3 kB / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.249e-05/0.266, allocations: 41.31 kB / 439.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.2661, allocations: 52.33 kB / 439.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.2673, allocations: 0.6152 MB / 440.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.2674, allocations: 0 / 440.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.205e-05/0.2674, allocations: 23.98 kB / 440.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.2674, allocations: 12 kB / 440.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.2688, allocations: 0.5855 MB / 440.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00246/0.2712, allocations: 1.363 MB / 442.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.2724, allocations: 481.2 kB / 442.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006087/0.273, allocations: 294.4 kB / 443 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.428e-05/0.2731, allocations: 12.55 kB / 443 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/0.2731, allocations: 43.06 kB / 443.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 1.884e-06/0.2731, allocations: 0 / 443.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006794/0.2799, allocations: 2.886 MB / 446 MB, free: 7.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.2799, allocations: 56.06 kB / 446 MB, free: 6.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004435/0.2804, allocations: 373.6 kB / 446.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.935e-05/0.2804, allocations: 49.7 kB / 446.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.2806, allocations: 201.6 kB / 446.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002329/0.2808, allocations: 261.9 kB / 446.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002419/0.2811, allocations: 130.6 kB / 447 MB, free: 5.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.2813, allocations: 358.8 kB / 447.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006494/0.2819, allocations: 309.9 kB / 447.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006967/0.2826, allocations: 373.3 kB / 448 MB, free: 4.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.2836, allocations: 492.7 kB / 448.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2836, allocations: 7.938 kB / 448.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002033/0.2857, allocations: 0.9274 MB / 449.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.2857, allocations: 4 kB / 449.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2857, allocations: 0 / 449.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.2872, allocations: 0.5824 MB / 450 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004038/0.2876, allocations: 95.83 kB / 450.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.2892, allocations: 1.096 MB / 451.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006949/0.2899, allocations: 111.9 kB / 451.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.226e-05/0.29, allocations: 31.98 kB / 451.4 MB, free: 1.527 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.0002827/0.2903, allocations: 187.9 kB / 451.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.2904, allocations: 51.67 kB / 451.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001689/0.2906, allocations: 81.08 kB / 451.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.2906, allocations: 11.94 kB / 451.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2906, allocations: 0 / 451.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2906, allocations: 7.984 kB / 451.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003047/0.2936, allocations: 1.603 MB / 453.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.2936, allocations: 3.984 kB / 453.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004307/0.2941, allocations: 91.98 kB / 453.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00127/0.2953, allocations: 0.5317 MB / 453.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.583e-05/0.2954, allocations: 31.95 kB / 453.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001584/0.297, allocations: 1.082 MB / 455 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.297, allocations: 0 / 455 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002653/0.2997, allocations: 1.297 MB / 456.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003053/0.3, allocations: 204.6 kB / 456.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.3001, allocations: 24 kB / 456.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006025/0.3007, allocations: 103.9 kB / 456.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002973/0.301, allocations: 128.4 kB / 456.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.47e-05/0.301, allocations: 31.97 kB / 456.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002984/0.3013, allocations: 259.1 kB / 457.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3013, allocations: 4 kB / 457.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005321/0.3019, allocations: 163.9 kB / 457.2 MB, free: 11.52 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.00132/0.3032, allocations: 385.8 kB / 457.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.3049, allocations: 0.7113 MB / 458.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3049, allocations: 0 / 458.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008986/0.3058, allocations: 420.7 kB / 458.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006957/0.3065, allocations: 116.6 kB / 458.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.3091, allocations: 1.456 MB / 460.3 MB, free: 8.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005054/0.3096, allocations: 0.8636 MB / 461.2 MB, free: 7.645 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.3098, allocations: 48.41 kB / 461.2 MB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.3099, allocations: 51.41 kB / 461.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3099, allocations: 0 / 461.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of Templates: time 0.02394/0.3339, allocations: 14.3 MB / 475.6 MB, free: 9.305 MB / 382.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.831360713578761]