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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001739/0.001739, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.00226/0.00226, allocations: 213.7 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 258.3 MB, free: 8.062 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-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] "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.002209/0.002209, allocations: 60.77 kB / 379 MB, free: 2.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2945, allocations: 53.38 MB / 432.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005355/0.2999, allocations: 3.278 MB / 435.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.3023, allocations: 1.275 MB / 437 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001923/0.3025, allocations: 11.94 kB / 437 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000383/0.3029, allocations: 87.17 kB / 437.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004486/0.3034, allocations: 230.3 kB / 437.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.3039, allocations: 279.5 kB / 437.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000909/0.3048, allocations: 0.8465 MB / 438.4 MB, free: 1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002381/0.3051, allocations: 101.6 kB / 438.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005789/0.3056, allocations: 390.9 kB / 438.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005762/0.3062, allocations: 414.5 kB / 439.3 MB, free: 108 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.3063, allocations: 64 kB / 439.3 MB, free: 44 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002623/0.3066, allocations: 128 kB / 439.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002365/0.3068, allocations: 179.5 kB / 439.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003295/0.3072, allocations: 326.4 kB / 440 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009661/0.3081, allocations: 0.7994 MB / 440.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3081, allocations: 0 / 440.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3081, allocations: 0 / 440.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.3081, allocations: 0 / 440.8 MB, free: 14.62 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.001897/0.31, allocations: 0.8941 MB / 441.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.3101, allocations: 8.031 kB / 441.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000373/0.3105, allocations: 80.55 kB / 441.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006386/0.3111, allocations: 340.4 kB / 442.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/0.3111, allocations: 37.38 kB / 442.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.3112, allocations: 48.33 kB / 442.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.3125, allocations: 0.6152 MB / 442.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.3125, allocations: 4 kB / 442.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.44e-05/0.3126, allocations: 20 kB / 442.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.3126, allocations: 12 kB / 442.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.3139, allocations: 0.5855 MB / 443.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.3164, allocations: 1.321 MB / 444.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.3176, allocations: 490.2 kB / 445.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006263/0.3182, allocations: 286.7 kB / 445.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.708e-05/0.3183, allocations: 12.64 kB / 445.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.3184, allocations: 43.22 kB / 445.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.174e-06/0.3184, allocations: 0 / 445.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.00684/0.3252, allocations: 2.52 MB / 448.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3252, allocations: 64 kB / 448.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/0.3257, allocations: 361.6 kB / 448.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.304e-05/0.3258, allocations: 53.69 kB / 448.5 MB, free: 6.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/0.326, allocations: 201.6 kB / 448.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.3262, allocations: 265.9 kB / 449 MB, free: 6.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.3264, allocations: 130.6 kB / 449.1 MB, free: 6.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.3266, allocations: 362.8 kB / 449.5 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007011/0.3273, allocations: 305.9 kB / 449.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007398/0.3281, allocations: 373.3 kB / 450.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.3292, allocations: 497 kB / 450.6 MB, free: 4.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3292, allocations: 0 / 450.6 MB, free: 4.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002186/0.3314, allocations: 0.9275 MB / 451.5 MB, free: 3.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.3314, allocations: 7.938 kB / 451.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3314, allocations: 0 / 451.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001401/0.3328, allocations: 0.5746 MB / 452.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/0.3332, allocations: 95.88 kB / 452.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.335, allocations: 1.105 MB / 453.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000715/0.3357, allocations: 107.9 kB / 453.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.818e-05/0.3357, allocations: 23.98 kB / 453.4 MB, free: 1.656 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.000331/0.3361, allocations: 201.5 kB / 453.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.3362, allocations: 55.62 kB / 453.7 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001844/0.3364, allocations: 77.09 kB / 453.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3364, allocations: 8 kB / 453.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3364, allocations: 0 / 453.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3364, allocations: 3.984 kB / 453.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00311/0.3395, allocations: 1.578 MB / 455.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.3395, allocations: 4 kB / 455.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004293/0.34, allocations: 79.89 kB / 455.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/0.3412, allocations: 0.5395 MB / 456 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.359e-05/0.3413, allocations: 27.97 kB / 456 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/0.3429, allocations: 1.084 MB / 457.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3429, allocations: 0 / 457.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002729/0.3456, allocations: 1.3 MB / 458.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003096/0.3459, allocations: 127.5 kB / 458.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.3461, allocations: 24 kB / 458.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006522/0.3467, allocations: 99.88 kB / 458.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003254/0.347, allocations: 136.4 kB / 458.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.903e-05/0.3471, allocations: 27.97 kB / 458.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003323/0.3474, allocations: 263.1 kB / 459.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3474, allocations: 0 / 459.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005896/0.348, allocations: 156 kB / 459.2 MB, free: 11.78 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.001416/0.3494, allocations: 395.2 kB / 459.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001827/0.3513, allocations: 0.723 MB / 460.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3513, allocations: 4 kB / 460.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009489/0.3522, allocations: 424.5 kB / 460.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000817/0.353, allocations: 121.5 kB / 460.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.356, allocations: 1.434 MB / 462.3 MB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005712/0.3566, allocations: 0.8635 MB / 463.2 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.3568, allocations: 52.41 kB / 463.2 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.357, allocations: 47.41 kB / 463.2 MB, free: 7.805 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.357, allocations: 0 / 463.2 MB, free: 7.805 MB / 366.1 MB Notification: Performance of Templates: time 0.02411/0.3811, allocations: 14.49 MB / 477.7 MB, free: 9.402 MB / 382.1 MB " [Timeout remaining time 660] 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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.140774689614773]