Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001334/0.001334, allocations: 88.86 kB / 21.44 MB, free: 272 kB / 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.001433/0.001433, allocations: 163 kB / 24.71 MB, free: 3.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 158.6 MB / 186.5 MB, free: 6.387 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 298.9 MB, free: 8.836 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.371e-05/3.565e-05, allocations: 6.281 kB / 298.9 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004553/0.004589, allocations: 2.87 MB / 301.8 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.006618, allocations: 1.041 MB / 302.8 MB, free: 4.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000183/0.006801, allocations: 7.938 kB / 302.9 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000281/0.007082, allocations: 79.3 kB / 302.9 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003882/0.00747, allocations: 166.5 kB / 303.1 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007336/0.008204, allocations: 307.3 kB / 303.4 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008632/0.009067, allocations: 0.8188 MB / 304.2 MB, free: 3.512 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.00928, allocations: 89.33 kB / 304.3 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006694/0.00995, allocations: 487 kB / 304.8 MB, free: 2.949 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004631/0.01041, allocations: 323.2 kB / 305.1 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.01053, allocations: 60 kB / 305.2 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.01076, allocations: 111.9 kB / 305.3 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.01097, allocations: 159.5 kB / 305.4 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003085/0.01128, allocations: 215.5 kB / 305.6 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009765/0.01225, allocations: 0.7906 MB / 306.4 MB, free: 1.305 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.01226, allocations: 4 kB / 306.4 MB, free: 1.301 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.01226, allocations: 0 / 306.4 MB, free: 1.301 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.01227, allocations: 0 / 306.4 MB, free: 1.301 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001958/0.01423, allocations: 0.8204 MB / 307.2 MB, free: 460 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.01427, allocations: 15.98 kB / 307.3 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.01441, allocations: 60.56 kB / 307.3 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005787/0.01499, allocations: 309.3 kB / 307.6 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.161e-05/0.01503, allocations: 33.31 kB / 307.7 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.01516, allocations: 44.42 kB / 307.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.01637, allocations: 0.6195 MB / 308.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.989e-05/0.0164, allocations: 12.08 kB / 308.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.197e-05/0.01647, allocations: 24.12 kB / 308.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.01648, allocations: 8 kB / 308.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.01779, allocations: 0.5934 MB / 309 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.02024, allocations: 1.088 MB / 310 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.02126, allocations: 441.5 kB / 310.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005996/0.02186, allocations: 290.2 kB / 310.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.935e-05/0.02191, allocations: 8.5 kB / 310.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.02194, allocations: 39.06 kB / 310.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.813e-06/0.02195, allocations: 0 / 310.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.006853/0.0288, allocations: 2.485 MB / 313.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.02886, allocations: 64.06 kB / 313.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003986/0.02926, allocations: 320.4 kB / 313.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.707e-05/0.02934, allocations: 49.69 kB / 313.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.02952, allocations: 201.5 kB / 313.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.02974, allocations: 234.1 kB / 314.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002513/0.02999, allocations: 138.6 kB / 314.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.03017, allocations: 346.8 kB / 314.6 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006868/0.03086, allocations: 321.8 kB / 314.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000715/0.03158, allocations: 385 kB / 315.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.03262, allocations: 0.5028 MB / 315.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.03262, allocations: 0 / 315.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001943/0.03456, allocations: 0.9156 MB / 316.7 MB, free: 6.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.03459, allocations: 16.02 kB / 316.7 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.0346, allocations: 0 / 316.7 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0014/0.036, allocations: 0.7229 MB / 317.5 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004132/0.03641, allocations: 107.8 kB / 317.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.03798, allocations: 1.087 MB / 318.6 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007613/0.03875, allocations: 115.9 kB / 318.8 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.801e-05/0.03881, allocations: 23.98 kB / 318.8 MB, free: 4.645 MB / 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 (64): * Single equations (assignments): 63 * 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,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0003026/0.03912, allocations: 179.7 kB / 319 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.03924, allocations: 51.66 kB / 319 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001585/0.03939, allocations: 68.75 kB / 319.1 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.0394, allocations: 8 kB / 319.1 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.03941, allocations: 0 / 319.1 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.03942, allocations: 7.984 kB / 319.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/0.04231, allocations: 1.383 MB / 320.5 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.04232, allocations: 0 / 320.5 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005026/0.04282, allocations: 95.88 kB / 320.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.04411, allocations: 0.6995 MB / 321.3 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.991e-05/0.04418, allocations: 23.97 kB / 321.3 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/0.04571, allocations: 1.068 MB / 322.4 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.04571, allocations: 0 / 322.4 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1787/0.2244, allocations: 1.296 MB / 323.7 MB, free: 34.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000406/0.2248, allocations: 114.4 kB / 323.8 MB, free: 34.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.2249, allocations: 21.78 kB / 323.8 MB, free: 34.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007027/0.2256, allocations: 101.1 kB / 323.9 MB, free: 34.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/0.226, allocations: 129 kB / 324 MB, free: 34.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-05/0.226, allocations: 29.75 kB / 324 MB, free: 34.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002265/0.2263, allocations: 224.2 kB / 324.3 MB, free: 34.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2263, allocations: 0 / 324.3 MB, free: 34.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005622/0.2268, allocations: 161.5 kB / 324.4 MB, free: 34.73 MB / 302.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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002799/0.2271, allocations: 139.4 kB / 324.6 MB, free: 34.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.2288, allocations: 0.7273 MB / 325.3 MB, free: 34.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2288, allocations: 0 / 325.3 MB, free: 34.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000884/0.2296, allocations: 417.1 kB / 325.7 MB, free: 34.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007105/0.2304, allocations: 102 kB / 325.8 MB, free: 34.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002485/0.2328, allocations: 1.216 MB / 327 MB, free: 33.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.2331, allocations: 243.5 kB / 327.2 MB, free: 33.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001743/0.2333, allocations: 45.89 kB / 327.3 MB, free: 33.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.2334, allocations: 42.03 kB / 327.3 MB, free: 33.61 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2334, allocations: 4 kB / 327.3 MB, free: 33.6 MB / 302.1 MB Notification: Performance of Templates: time 0.01892/0.2523, allocations: 11.45 MB / 338.8 MB, free: 29.41 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.010239098221064]