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.001292/0.001292, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001444/0.001444, allocations: 211.8 kB / 24.54 MB, free: 4.02 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.451/1.451, allocations: 230.3 MB / 258 MB, free: 8.227 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.002186/0.002186, allocations: 59.89 kB / 378.7 MB, free: 2.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3034, allocations: 53.36 MB / 432.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005608/0.309, allocations: 3.294 MB / 435.4 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002575/0.3116, allocations: 1.259 MB / 436.7 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002315/0.3118, allocations: 15.88 kB / 436.7 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004288/0.3122, allocations: 95.14 kB / 436.8 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004649/0.3127, allocations: 222.4 kB / 437 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005526/0.3132, allocations: 271.5 kB / 437.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009123/0.3142, allocations: 0.8465 MB / 438.1 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.3144, allocations: 105.5 kB / 438.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005503/0.3149, allocations: 390.9 kB / 438.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005379/0.3155, allocations: 426.5 kB / 439 MB, free: 148 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.3156, allocations: 64 kB / 439.1 MB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002799/0.3159, allocations: 120 kB / 439.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.3161, allocations: 171.5 kB / 439.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003532/0.3164, allocations: 334.4 kB / 439.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009545/0.3174, allocations: 0.7955 MB / 440.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3174, allocations: 0 / 440.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.3174, allocations: 4 kB / 440.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.3174, allocations: 0 / 440.5 MB, free: 14.67 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.002048/0.3195, allocations: 0.8901 MB / 441.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3195, allocations: 12.03 kB / 441.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003591/0.3199, allocations: 80.53 kB / 441.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006479/0.3205, allocations: 332.5 kB / 441.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.651e-05/0.3206, allocations: 41.31 kB / 441.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.3207, allocations: 52.31 kB / 441.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.322, allocations: 0.6074 MB / 442.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.322, allocations: 8 kB / 442.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.456e-05/0.3221, allocations: 16 kB / 442.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.3221, allocations: 16 kB / 442.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.3235, allocations: 0.5894 MB / 443.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.3262, allocations: 1.325 MB / 444.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.3274, allocations: 486.3 kB / 444.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006479/0.328, allocations: 290.7 kB / 445.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.786e-05/0.3281, allocations: 8.656 kB / 445.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/0.3281, allocations: 43.16 kB / 445.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.304e-06/0.3281, allocations: 0 / 445.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007257/0.3354, allocations: 2.524 MB / 447.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.3354, allocations: 56.06 kB / 447.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004722/0.3359, allocations: 365.6 kB / 448.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.119e-05/0.336, allocations: 49.7 kB / 448.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.3362, allocations: 205.6 kB / 448.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002614/0.3364, allocations: 265.8 kB / 448.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.3367, allocations: 134.5 kB / 448.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.3369, allocations: 358.8 kB / 449.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006742/0.3376, allocations: 309.9 kB / 449.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000731/0.3383, allocations: 373.3 kB / 449.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.3394, allocations: 489.1 kB / 450.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3394, allocations: 4 kB / 450.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002248/0.3416, allocations: 0.9314 MB / 451.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.3416, allocations: 4 kB / 451.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3416, allocations: 0 / 451.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/0.3431, allocations: 0.5785 MB / 451.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003907/0.3435, allocations: 95.83 kB / 451.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/0.3452, allocations: 1.101 MB / 453 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007865/0.346, allocations: 107.9 kB / 453.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.85e-05/0.3461, allocations: 24 kB / 453.2 MB, free: 1.703 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.0003363/0.3464, allocations: 195.6 kB / 453.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.3466, allocations: 55.72 kB / 453.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.3468, allocations: 81.08 kB / 453.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.3468, allocations: 8 kB / 453.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.3468, allocations: 3.984 kB / 453.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3468, allocations: 0 / 453.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003251/0.35, allocations: 1.582 MB / 455.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.35, allocations: 3.938 kB / 455.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000462/0.3505, allocations: 91.88 kB / 455.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001372/0.3519, allocations: 0.5317 MB / 455.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-05/0.3519, allocations: 23.97 kB / 455.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/0.3537, allocations: 1.084 MB / 456.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3537, allocations: 0 / 456.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002907/0.3566, allocations: 1.297 MB / 458.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003325/0.3569, allocations: 127.5 kB / 458.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.3571, allocations: 24 kB / 458.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007558/0.3578, allocations: 103.9 kB / 458.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003176/0.3581, allocations: 132.4 kB / 458.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.372e-05/0.3582, allocations: 35.95 kB / 458.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000333/0.3586, allocations: 259.1 kB / 458.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3586, allocations: 0 / 458.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006315/0.3592, allocations: 160 kB / 458.9 MB, free: 11.82 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.001493/0.3607, allocations: 398.3 kB / 459.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001922/0.3626, allocations: 0.7191 MB / 460 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3626, allocations: 0 / 460 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.3636, allocations: 424.6 kB / 460.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008053/0.3644, allocations: 123.5 kB / 460.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.3674, allocations: 1.434 MB / 462 MB, free: 8.832 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000571/0.368, allocations: 0.8596 MB / 462.9 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000242/0.3682, allocations: 60.39 kB / 462.9 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.3684, allocations: 43.42 kB / 463 MB, free: 7.84 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3684, allocations: 0 / 463 MB, free: 7.84 MB / 366.1 MB Notification: Performance of Templates: time 0.02466/0.393, allocations: 14.49 MB / 477.5 MB, free: 9.414 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: 5.025017845444381]