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.001672/0.001672, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001993/0.001993, allocations: 217 kB / 24.5 MB, free: 4.133 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.484/1.484, allocations: 230.5 MB / 258.2 MB, free: 7.973 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.001918/0.001918, allocations: 63.83 kB / 379 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2872, allocations: 53.4 MB / 432.4 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005609/0.2928, allocations: 3.286 MB / 435.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003605/0.2965, allocations: 1.259 MB / 437 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.2967, allocations: 11.94 kB / 437 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000404/0.2971, allocations: 99.09 kB / 437.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000477/0.2975, allocations: 222.4 kB / 437.3 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005723/0.2981, allocations: 271.4 kB / 437.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00108/0.2992, allocations: 0.8543 MB / 438.4 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.2994, allocations: 97.56 kB / 438.5 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006736/0.3001, allocations: 394.8 kB / 438.9 MB, free: 244 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005616/0.3007, allocations: 410.6 kB / 439.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.3008, allocations: 68 kB / 439.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.301, allocations: 127.9 kB / 439.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.3012, allocations: 179.5 kB / 439.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003189/0.3016, allocations: 322.5 kB / 440 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009306/0.3025, allocations: 0.8067 MB / 440.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3025, allocations: 0 / 440.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3025, allocations: 0 / 440.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.679e-06/0.3025, allocations: 3.938 kB / 440.8 MB, free: 14.34 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.001872/0.3044, allocations: 0.8862 MB / 441.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3044, allocations: 16.03 kB / 441.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003364/0.3048, allocations: 80.55 kB / 441.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006421/0.3054, allocations: 332.5 kB / 442.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.099e-05/0.3054, allocations: 37.38 kB / 442.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.3055, allocations: 48.33 kB / 442.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.3067, allocations: 0.623 MB / 442.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.409e-05/0.3068, allocations: 3.984 kB / 442.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.346e-05/0.3068, allocations: 16 kB / 442.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.3068, allocations: 12 kB / 442.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.3081, allocations: 0.5855 MB / 443.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002601/0.3107, allocations: 1.321 MB / 444.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.3119, allocations: 482.3 kB / 445.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006122/0.3125, allocations: 294.7 kB / 445.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.037e-05/0.3126, allocations: 12.64 kB / 445.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.3126, allocations: 43.22 kB / 445.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.517e-06/0.3126, allocations: 0 / 445.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007161/0.3198, allocations: 2.52 MB / 448.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.888e-05/0.3199, allocations: 60.06 kB / 448.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008259/0.3207, allocations: 365.6 kB / 448.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001998/0.3209, allocations: 53.7 kB / 448.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.321, allocations: 197.6 kB / 448.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002359/0.3213, allocations: 265.9 kB / 449 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002507/0.3215, allocations: 134.6 kB / 449.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.3217, allocations: 350.8 kB / 449.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006628/0.3224, allocations: 309.9 kB / 449.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007114/0.3231, allocations: 377.4 kB / 450.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.3241, allocations: 0.4892 MB / 450.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3241, allocations: 4 kB / 450.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002037/0.3262, allocations: 0.9196 MB / 451.6 MB, free: 3.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.3262, allocations: 4 kB / 451.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.3262, allocations: 7.984 kB / 451.6 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.3276, allocations: 0.5707 MB / 452.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003787/0.328, allocations: 95.83 kB / 452.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/0.3296, allocations: 1.105 MB / 453.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007095/0.3303, allocations: 111.9 kB / 453.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/0.3304, allocations: 27.98 kB / 453.5 MB, free: 1.375 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.0003397/0.3307, allocations: 183.7 kB / 453.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.3308, allocations: 63.61 kB / 453.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001793/0.331, allocations: 77.09 kB / 453.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.331, allocations: 8 kB / 453.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.331, allocations: 7.938 kB / 453.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.3311, allocations: 3.984 kB / 453.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003075/0.3341, allocations: 1.571 MB / 455.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.3341, allocations: 4 kB / 455.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000448/0.3346, allocations: 91.88 kB / 455.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001246/0.3358, allocations: 0.5318 MB / 456 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-05/0.3359, allocations: 31.95 kB / 456 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001623/0.3375, allocations: 1.069 MB / 457.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3375, allocations: 0 / 457.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002754/0.3403, allocations: 1.312 MB / 458.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/0.3406, allocations: 119.5 kB / 458.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.3407, allocations: 28 kB / 458.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006448/0.3414, allocations: 103.9 kB / 458.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003183/0.3417, allocations: 136.4 kB / 458.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.267e-05/0.3418, allocations: 27.97 kB / 458.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003555/0.3421, allocations: 263.1 kB / 459.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3421, allocations: 0 / 459.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006245/0.3428, allocations: 160 kB / 459.2 MB, free: 11.5 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.001498/0.3442, allocations: 392.7 kB / 459.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00255/0.3468, allocations: 0.723 MB / 460.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3468, allocations: 0 / 460.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009065/0.3477, allocations: 416.6 kB / 460.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007483/0.3485, allocations: 119.6 kB / 460.9 MB, free: 9.988 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002871/0.3513, allocations: 1.471 MB / 462.3 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/0.3519, allocations: 0.8635 MB / 463.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.352, allocations: 55.41 kB / 463.3 MB, free: 7.531 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.352, allocations: 0 / 463.3 MB, free: 7.531 MB / 366.1 MB Notification: Performance of Templates: time 0.01506/0.3671, allocations: 9.318 MB / 472.6 MB, free: 14.23 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/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_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: 8.85044261207804]