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.001326/0.001326, allocations: 89.77 kB / 20.69 MB, free: 1.02 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.001409/0.001409, allocations: 157.7 kB / 23.95 MB, free: 4.152 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.525/1.525, allocations: 177 MB / 204.1 MB, free: 9.152 MB / 190.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 1.623e-06/1.623e-06, allocations: 0 / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.46e-05/3.622e-05, allocations: 3.375 kB / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004479/0.004515, allocations: 3.008 MB / 328 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002368/0.006883, allocations: 1.214 MB / 329.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001865/0.007069, allocations: 10.12 kB / 329.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003371/0.007406, allocations: 96.67 kB / 329.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005001/0.007906, allocations: 236.1 kB / 329.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006054/0.008512, allocations: 289 kB / 329.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009417/0.009454, allocations: 0.8614 MB / 330.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.009686, allocations: 98.12 kB / 330.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007228/0.01041, allocations: 0.5101 MB / 331.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005027/0.01091, allocations: 338.3 kB / 331.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.01103, allocations: 64.56 kB / 331.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002594/0.01129, allocations: 126.9 kB / 331.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002361/0.01152, allocations: 182.1 kB / 332 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003117/0.01184, allocations: 234.2 kB / 332.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001009/0.01284, allocations: 0.8556 MB / 333.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.01285, allocations: 4 kB / 333.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01285, allocations: 1.312 kB / 333.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.01286, allocations: 0 / 333.1 MB, free: 11.31 MB / 302.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.002066/0.01492, allocations: 0.8834 MB / 334 MB, free: 10.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.01496, allocations: 13.05 kB / 334 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003585/0.01532, allocations: 82.5 kB / 334.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006572/0.01598, allocations: 334.7 kB / 334.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.01602, allocations: 37.53 kB / 334.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.01613, allocations: 57.48 kB / 334.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.0174, allocations: 0.6106 MB / 335.1 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.01742, allocations: 9.719 kB / 335.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.608e-05/0.01749, allocations: 19.62 kB / 335.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.0175, allocations: 10.5 kB / 335.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.01888, allocations: 0.5794 MB / 335.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/0.02139, allocations: 1.118 MB / 336.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.02255, allocations: 481.4 kB / 337.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006659/0.02322, allocations: 304.5 kB / 337.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.505e-05/0.02327, allocations: 7.406 kB / 337.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.02331, allocations: 43.19 kB / 337.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.655e-06/0.02332, allocations: 0 / 337.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.00755/0.03087, allocations: 2.52 MB / 340.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.03092, allocations: 67.98 kB / 340.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005/0.03142, allocations: 353.6 kB / 340.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.631e-05/0.03152, allocations: 49.7 kB / 340.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.03171, allocations: 205.6 kB / 340.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002491/0.03195, allocations: 257.9 kB / 341.1 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002629/0.03222, allocations: 134.6 kB / 341.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.03241, allocations: 358.8 kB / 341.6 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007071/0.03311, allocations: 305.9 kB / 341.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007548/0.03387, allocations: 373.4 kB / 342.2 MB, free: 3.602 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.035, allocations: 493 kB / 342.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.035, allocations: 0 / 342.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002252/0.03725, allocations: 0.9353 MB / 343.7 MB, free: 2.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.03728, allocations: 4 kB / 343.7 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.03728, allocations: 0 / 343.7 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.03878, allocations: 0.5708 MB / 344.2 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003998/0.03918, allocations: 103.8 kB / 344.3 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.0409, allocations: 1.093 MB / 345.4 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008277/0.04173, allocations: 107.9 kB / 345.5 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.069e-05/0.0418, allocations: 23.98 kB / 345.5 MB, free: 240 kB / 302.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.0003486/0.04215, allocations: 196 kB / 345.7 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.04231, allocations: 55.67 kB / 345.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.04251, allocations: 80.88 kB / 345.9 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.04252, allocations: 8 kB / 345.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.04253, allocations: 0 / 345.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.04254, allocations: 3.984 kB / 345.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003099/0.04564, allocations: 1.404 MB / 347.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.04565, allocations: 0 / 347.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.04609, allocations: 91.88 kB / 347.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.04746, allocations: 0.5434 MB / 347.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.931e-05/0.04754, allocations: 31.95 kB / 348 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001722/0.04926, allocations: 1.066 MB / 349 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.04926, allocations: 3.938 kB / 349 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002965/0.05223, allocations: 1.297 MB / 350.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003961/0.05262, allocations: 127.5 kB / 350.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.05277, allocations: 27.94 kB / 350.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007527/0.05352, allocations: 103.9 kB / 350.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003481/0.05387, allocations: 132.4 kB / 350.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-05/0.05395, allocations: 31.95 kB / 350.7 MB, free: 10.94 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003388/0.05429, allocations: 251.2 kB / 351 MB, free: 10.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.05429, allocations: 0 / 351 MB, free: 10.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006364/0.05492, allocations: 156 kB / 351.1 MB, free: 10.54 MB / 318.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.001597/0.05652, allocations: 424.2 kB / 351.5 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00192/0.05844, allocations: 0.723 MB / 352.3 MB, free: 9.531 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.05844, allocations: 0 / 352.3 MB, free: 9.531 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009898/0.05943, allocations: 412.6 kB / 352.7 MB, free: 9.125 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009039/0.06034, allocations: 124.1 kB / 352.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.06325, allocations: 1.247 MB / 354 MB, free: 7.734 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.06355, allocations: 263.5 kB / 354.3 MB, free: 7.449 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002473/0.06379, allocations: 52.39 kB / 354.3 MB, free: 7.395 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/0.06398, allocations: 56.41 kB / 354.4 MB, free: 7.336 MB / 318.1 MB Notification: Performance of SimCode: time 8.31e-07/0.06398, allocations: 0 / 354.4 MB, free: 7.336 MB / 318.1 MB Notification: Performance of Templates: time 0.02249/0.08647, allocations: 11.78 MB / 366.2 MB, free: 11.68 MB / 334.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: 4.792723935097456]