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.00171/0.00171, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002317/0.002317, allocations: 211.4 kB / 24.48 MB, free: 3.934 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.511/1.511, allocations: 230.5 MB / 258.1 MB, free: 7.785 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.002071/0.002071, allocations: 55.91 kB / 379 MB, free: 2.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2532, allocations: 53.41 MB / 432.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005509/0.2587, allocations: 2.992 MB / 435.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002552/0.2612, allocations: 1.212 MB / 436.6 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000345/0.2616, allocations: 7.938 kB / 436.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004207/0.262, allocations: 107.1 kB / 436.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006899/0.2627, allocations: 214.4 kB / 436.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007192/0.2634, allocations: 279.5 kB / 437.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001103/0.2645, allocations: 0.8542 MB / 438 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.2647, allocations: 101.2 kB / 438.1 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007059/0.2654, allocations: 390.8 kB / 438.5 MB, free: 356 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006714/0.2661, allocations: 378.7 kB / 438.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001835/0.2663, allocations: 64 kB / 439 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003265/0.2666, allocations: 119.9 kB / 439.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.2669, allocations: 187.4 kB / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004073/0.2673, allocations: 278.8 kB / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.2683, allocations: 0.7968 MB / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2683, allocations: 0 / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2683, allocations: 0 / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.932e-05/0.2684, allocations: 0 / 440.3 MB, free: 14.54 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.002021/0.2704, allocations: 0.8902 MB / 441.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.2704, allocations: 11.98 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003381/0.2708, allocations: 84.53 kB / 441.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007074/0.2715, allocations: 336.4 kB / 441.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.208e-05/0.2715, allocations: 37.38 kB / 441.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.2716, allocations: 56.31 kB / 441.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.2728, allocations: 0.6113 MB / 442.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.2728, allocations: 4 kB / 442.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.834e-05/0.2729, allocations: 16 kB / 442.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.2729, allocations: 11.94 kB / 442.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.2742, allocations: 0.5855 MB / 443 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002447/0.2766, allocations: 1.115 MB / 444.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.2778, allocations: 490.7 kB / 444.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006235/0.2784, allocations: 294.7 kB / 444.8 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.548e-05/0.2785, allocations: 12.64 kB / 444.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.2785, allocations: 47.22 kB / 444.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.166e-06/0.2785, allocations: 0 / 444.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006986/0.2855, allocations: 2.524 MB / 447.4 MB, free: 7.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/0.2856, allocations: 60.06 kB / 447.5 MB, free: 7.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004717/0.286, allocations: 353.6 kB / 447.8 MB, free: 6.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.292e-05/0.2861, allocations: 53.69 kB / 447.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.2863, allocations: 193.6 kB / 448.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/0.2866, allocations: 261.9 kB / 448.3 MB, free: 6.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002588/0.2868, allocations: 142.5 kB / 448.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.287, allocations: 358.8 kB / 448.8 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006649/0.2877, allocations: 309.9 kB / 449.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007212/0.2884, allocations: 365.4 kB / 449.5 MB, free: 5.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.2895, allocations: 0.4932 MB / 450 MB, free: 4.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2895, allocations: 0 / 450 MB, free: 4.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002132/0.2916, allocations: 0.9274 MB / 450.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.2916, allocations: 6.656 kB / 450.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-06/0.2916, allocations: 0 / 450.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/0.2931, allocations: 0.5708 MB / 451.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.2934, allocations: 95.88 kB / 451.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/0.2951, allocations: 1.105 MB / 452.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007324/0.2959, allocations: 111.8 kB / 452.8 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.165e-05/0.2959, allocations: 31.98 kB / 452.8 MB, free: 1.785 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.0003117/0.2963, allocations: 180 kB / 453 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.2964, allocations: 63.56 kB / 453 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.2966, allocations: 76.98 kB / 453.1 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.2966, allocations: 11.94 kB / 453.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.2966, allocations: 0 / 453.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2966, allocations: 3.984 kB / 453.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003006/0.2996, allocations: 1.396 MB / 454.5 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.299e-06/0.2996, allocations: 0 / 454.5 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004438/0.3, allocations: 91.98 kB / 454.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/0.3013, allocations: 0.5356 MB / 455.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.021e-05/0.3014, allocations: 31.95 kB / 455.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001618/0.303, allocations: 1.069 MB / 456.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.303, allocations: 4 kB / 456.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002715/0.3057, allocations: 1.3 MB / 457.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003499/0.3061, allocations: 123.5 kB / 457.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.3062, allocations: 28 kB / 457.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006684/0.3069, allocations: 99.86 kB / 457.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/0.3072, allocations: 136.3 kB / 457.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.266e-05/0.3072, allocations: 35.95 kB / 458 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003059/0.3075, allocations: 247.2 kB / 458.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3075, allocations: 4 kB / 458.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005446/0.3081, allocations: 160 kB / 458.4 MB, free: 12.12 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.001551/0.3096, allocations: 421 kB / 458.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001828/0.3114, allocations: 0.7229 MB / 459.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3114, allocations: 0 / 459.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009254/0.3124, allocations: 416.6 kB / 459.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007783/0.3131, allocations: 116.4 kB / 460 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002845/0.316, allocations: 1.463 MB / 461.5 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.3163, allocations: 263.4 kB / 461.8 MB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.3164, allocations: 55.41 kB / 461.8 MB, free: 8.746 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3164, allocations: 0 / 461.8 MB, free: 8.746 MB / 366.1 MB Notification: Performance of Templates: time 0.01444/0.3309, allocations: 9.487 MB / 471.3 MB, free: 15.27 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.716813526116312]