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.001609/0.001609, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.001949/0.001949, allocations: 205.1 kB / 24.48 MB, free: 3.695 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.548/1.548, allocations: 230.6 MB / 258.2 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.00158/0.00158, allocations: 55.91 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2503, allocations: 53.36 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004734/0.2551, allocations: 3.003 MB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002241/0.2573, allocations: 1.212 MB / 436.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.2575, allocations: 11.94 kB / 436.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003365/0.2578, allocations: 87.17 kB / 436.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004635/0.2583, allocations: 230.4 kB / 436.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005635/0.2589, allocations: 279.5 kB / 437.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008813/0.2597, allocations: 0.8464 MB / 438 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002325/0.26, allocations: 109.8 kB / 438.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000588/0.2606, allocations: 398.8 kB / 438.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005675/0.2611, allocations: 414.6 kB / 438.9 MB, free: 120 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.2612, allocations: 64 kB / 438.9 MB, free: 56 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.2615, allocations: 128 kB / 439.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.2617, allocations: 175.5 kB / 439.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002991/0.262, allocations: 278.8 kB / 439.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000941/0.263, allocations: 0.7968 MB / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.263, allocations: 0 / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.263, allocations: 0 / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.263, allocations: 0 / 440.3 MB, free: 14.69 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.001999/0.265, allocations: 0.8979 MB / 441.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.265, allocations: 8.031 kB / 441.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003465/0.2654, allocations: 84.55 kB / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007073/0.2661, allocations: 332.4 kB / 441.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.2661, allocations: 37.38 kB / 441.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.2662, allocations: 56.27 kB / 441.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.2674, allocations: 0.6191 MB / 442.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.2675, allocations: 4 kB / 442.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.2675, allocations: 16 kB / 442.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.2675, allocations: 12 kB / 442.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.2688, allocations: 0.5816 MB / 442.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002389/0.2712, allocations: 1.123 MB / 444.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.2723, allocations: 486.8 kB / 444.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006052/0.2729, allocations: 290.7 kB / 444.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.095e-05/0.273, allocations: 12.66 kB / 444.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.273, allocations: 43.22 kB / 444.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.735e-06/0.273, allocations: 0 / 444.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006898/0.2799, allocations: 2.524 MB / 447.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.28, allocations: 64.06 kB / 447.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004597/0.2805, allocations: 349.6 kB / 447.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.619e-05/0.2805, allocations: 49.7 kB / 447.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.2807, allocations: 197.6 kB / 448.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002469/0.2809, allocations: 261.9 kB / 448.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.2812, allocations: 134.6 kB / 448.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.2814, allocations: 354.8 kB / 448.8 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006534/0.282, allocations: 309.9 kB / 449.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007016/0.2827, allocations: 377.4 kB / 449.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.2838, allocations: 0.4892 MB / 449.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2838, allocations: 0 / 449.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002123/0.2859, allocations: 0.9236 MB / 450.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.2859, allocations: 4 kB / 450.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.2859, allocations: 4 kB / 450.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.2874, allocations: 0.5708 MB / 451.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004064/0.2878, allocations: 91.89 kB / 451.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/0.2895, allocations: 1.105 MB / 452.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007483/0.2902, allocations: 115.8 kB / 452.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.65e-05/0.2903, 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.0003276/0.2906, allocations: 176 kB / 453 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.2908, allocations: 67.56 kB / 453 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001679/0.2909, allocations: 76.97 kB / 453.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.291, allocations: 12 kB / 453.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.291, allocations: 0 / 453.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.291, allocations: 3.984 kB / 453.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003011/0.294, allocations: 1.4 MB / 454.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.294, allocations: 4 kB / 454.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000448/0.2944, allocations: 87.89 kB / 454.6 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001317/0.2958, allocations: 0.5435 MB / 455.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.091e-05/0.2958, allocations: 27.91 kB / 455.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001607/0.2974, allocations: 1.069 MB / 456.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2974, allocations: 0 / 456.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002759/0.3002, allocations: 1.304 MB / 457.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003583/0.3006, allocations: 123.5 kB / 457.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.3007, allocations: 28.09 kB / 457.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006624/0.3013, allocations: 99.88 kB / 457.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003034/0.3017, allocations: 136.4 kB / 457.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-05/0.3017, allocations: 35.95 kB / 458 MB, free: 12.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003062/0.302, allocations: 247.2 kB / 458.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.302, allocations: 0 / 458.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005904/0.3026, allocations: 164 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.001577/0.3042, allocations: 427.3 kB / 458.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001832/0.306, allocations: 0.7192 MB / 459.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.306, allocations: 4 kB / 459.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009486/0.307, allocations: 416.5 kB / 459.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008343/0.3078, allocations: 125.1 kB / 460 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.3107, allocations: 1.46 MB / 461.5 MB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.311, allocations: 263.4 kB / 461.7 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.3111, allocations: 51.42 kB / 461.8 MB, free: 8.906 MB / 366.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3111, allocations: 0 / 461.8 MB, free: 8.906 MB / 366.1 MB Notification: Performance of Templates: time 0.01404/0.3252, allocations: 9.489 MB / 471.3 MB, free: 15.44 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 -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: 8.548019930982264]