Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001432/0.001432, allocations: 109.3 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.44/1.44, allocations: 230.4 MB / 251.1 MB, free: 8.5 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 67.83 kB / 368.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2438, allocations: 53.32 MB / 422.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004523/0.2483, allocations: 3.26 MB / 425.5 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.2502, allocations: 1.251 MB / 426.8 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.2504, allocations: 15.88 kB / 426.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.2507, allocations: 91.17 kB / 426.9 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004102/0.2511, allocations: 226.4 kB / 427.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004784/0.2516, allocations: 271.5 kB / 427.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008326/0.2524, allocations: 0.8466 MB / 428.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.2526, allocations: 101.1 kB / 428.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005186/0.2531, allocations: 382.8 kB / 428.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000565/0.2537, allocations: 418.5 kB / 429.1 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.2538, allocations: 60 kB / 429.2 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002243/0.254, allocations: 127.9 kB / 429.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000197/0.2542, allocations: 175.5 kB / 429.4 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003008/0.2545, allocations: 322.4 kB / 429.8 MB, free: 332 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008612/0.2554, allocations: 0.7934 MB / 430.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.2554, allocations: 4 kB / 430.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2554, allocations: 0 / 430.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.2554, allocations: 3.938 kB / 430.6 MB, free: 15.52 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.00187/0.2573, allocations: 0.9655 MB / 431.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.2573, allocations: 8.922 kB / 431.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003336/0.2576, allocations: 84.53 kB / 431.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005821/0.2582, allocations: 402.3 kB / 432 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.786e-05/0.2583, allocations: 33.38 kB / 432 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.2584, allocations: 48.33 kB / 432.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.2596, allocations: 0.6191 MB / 432.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.2596, allocations: 3.984 kB / 432.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.453e-05/0.2597, allocations: 20 kB / 432.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.2597, allocations: 16 kB / 432.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.261, allocations: 0.5855 MB / 433.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.2634, allocations: 1.355 MB / 434.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.2645, allocations: 489.3 kB / 435.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006303/0.2652, allocations: 294.4 kB / 435.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.303e-05/0.2652, allocations: 4.562 kB / 435.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.2653, allocations: 43.12 kB / 435.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 1.633e-06/0.2653, allocations: 0 / 435.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006871/0.2721, allocations: 2.89 MB / 438.4 MB, free: 7.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.2722, allocations: 60.06 kB / 438.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/0.2726, allocations: 369.6 kB / 438.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.197e-05/0.2727, allocations: 49.7 kB / 438.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.2728, allocations: 201.6 kB / 439.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.2731, allocations: 269.8 kB / 439.3 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000236/0.2733, allocations: 130.6 kB / 439.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.2735, allocations: 362.7 kB / 439.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006686/0.2742, allocations: 305.9 kB / 440.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007138/0.2749, allocations: 377.3 kB / 440.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.2759, allocations: 496.7 kB / 441 MB, free: 4.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2759, allocations: 0 / 441 MB, free: 4.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002067/0.278, allocations: 0.9353 MB / 441.9 MB, free: 3.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.278, allocations: 4 kB / 441.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.278, allocations: 0 / 441.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.2794, allocations: 0.5824 MB / 442.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003822/0.2797, allocations: 95.83 kB / 442.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/0.2814, allocations: 1.096 MB / 443.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000681/0.2821, allocations: 107.9 kB / 443.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.038e-05/0.2821, allocations: 27.98 kB / 443.8 MB, free: 1.863 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.0002789/0.2824, allocations: 191.9 kB / 444 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.2826, allocations: 55.67 kB / 444 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.2827, allocations: 81.08 kB / 444.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.2827, allocations: 8 kB / 444.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.2827, allocations: 0 / 444.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.2828, allocations: 3.984 kB / 444.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003297/0.2861, allocations: 1.607 MB / 445.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2861, allocations: 0 / 445.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004231/0.2865, allocations: 87.89 kB / 445.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.2877, allocations: 0.5396 MB / 446.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.093e-05/0.2878, allocations: 27.97 kB / 446.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001636/0.2894, allocations: 1.081 MB / 447.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2894, allocations: 0 / 447.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.292, allocations: 1.297 MB / 448.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/0.2923, allocations: 204.6 kB / 449 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.2924, allocations: 20 kB / 449 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006844/0.2931, allocations: 108 kB / 449.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000327/0.2935, allocations: 132.4 kB / 449.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.576e-05/0.2935, allocations: 31.95 kB / 449.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003061/0.2938, allocations: 259.1 kB / 449.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2938, allocations: 0 / 449.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005389/0.2944, allocations: 156 kB / 449.7 MB, free: 11.87 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.001438/0.2958, allocations: 405.8 kB / 450.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.2976, allocations: 0.723 MB / 450.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2976, allocations: 0 / 450.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008876/0.2985, allocations: 408.6 kB / 451.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007016/0.2992, allocations: 120 kB / 451.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.3019, allocations: 1.455 MB / 452.8 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.3023, allocations: 0.8597 MB / 453.6 MB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.3025, allocations: 48.41 kB / 453.7 MB, free: 7.945 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.3027, allocations: 55.41 kB / 453.7 MB, free: 7.891 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3027, allocations: 0 / 453.7 MB, free: 7.891 MB / 366.1 MB Notification: Performance of Templates: time 0.02325/0.3259, allocations: 14.22 MB / 467.9 MB, free: 9.75 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches