Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001573/0.001573, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 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.00175/0.00175, allocations: 208.2 kB / 24.48 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 258.2 MB, free: 7.785 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+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_4.1.0_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_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 51.92 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2085, allocations: 53.37 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004547/0.213, allocations: 2.992 MB / 435.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.2151, allocations: 1.216 MB / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.2152, allocations: 7.938 kB / 436.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003092/0.2155, allocations: 99.14 kB / 436.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004545/0.216, allocations: 226.4 kB / 436.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005222/0.2165, allocations: 279.5 kB / 437.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008564/0.2174, allocations: 0.8503 MB / 438 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.2176, allocations: 101.8 kB / 438.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005094/0.2181, allocations: 394.8 kB / 438.5 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005027/0.2186, allocations: 422.5 kB / 438.9 MB, free: 148 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.2187, allocations: 64 kB / 438.9 MB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.219, allocations: 124 kB / 439.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.2192, allocations: 179.4 kB / 439.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.2195, allocations: 278.7 kB / 439.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008561/0.2203, allocations: 0.7968 MB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2203, allocations: 0 / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2203, allocations: 0 / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.2203, allocations: 0 / 440.3 MB, free: 14.71 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.001931/0.2223, allocations: 0.894 MB / 441.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.2223, allocations: 16.03 kB / 441.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000352/0.2226, allocations: 80.55 kB / 441.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006146/0.2232, allocations: 336.4 kB / 441.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.855e-05/0.2233, allocations: 37.38 kB / 441.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.2234, allocations: 48.33 kB / 441.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.2247, allocations: 0.6152 MB / 442.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/0.2247, allocations: 7.984 kB / 442.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.085e-05/0.2247, allocations: 16 kB / 442.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.2248, allocations: 12 kB / 442.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.2261, allocations: 0.5816 MB / 442.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002391/0.2285, allocations: 1.119 MB / 444.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.2297, allocations: 478.8 kB / 444.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006474/0.2303, allocations: 298.7 kB / 444.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.971e-05/0.2304, allocations: 16.64 kB / 444.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.2304, allocations: 39.22 kB / 444.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 1.983e-06/0.2304, allocations: 0 / 444.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007083/0.2375, allocations: 2.516 MB / 447.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.2376, allocations: 64 kB / 447.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004964/0.2381, allocations: 365.6 kB / 447.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.591e-05/0.2381, allocations: 49.7 kB / 447.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.2383, allocations: 193.6 kB / 448 MB, free: 6.773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002616/0.2386, allocations: 269.8 kB / 448.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002555/0.2388, allocations: 130.6 kB / 448.4 MB, free: 6.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.239, allocations: 358.8 kB / 448.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000676/0.2397, allocations: 305.9 kB / 449.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007189/0.2404, allocations: 369.4 kB / 449.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.2415, allocations: 0.4893 MB / 449.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2415, allocations: 0 / 449.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002076/0.2436, allocations: 0.9275 MB / 450.9 MB, free: 3.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.2436, allocations: 4 kB / 450.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2436, allocations: 0 / 450.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001428/0.245, allocations: 0.5824 MB / 451.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003942/0.2454, allocations: 91.89 kB / 451.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.247, allocations: 1.109 MB / 452.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006958/0.2477, allocations: 107.8 kB / 452.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.691e-05/0.2478, allocations: 24 kB / 452.8 MB, free: 1.969 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.000273/0.2481, allocations: 190.1 kB / 453 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.2482, allocations: 59.56 kB / 453 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001858/0.2484, allocations: 76.98 kB / 453.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.2484, allocations: 4 kB / 453.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2484, allocations: 8 kB / 453.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.2484, allocations: 3.984 kB / 453.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.2514, allocations: 1.4 MB / 454.5 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2514, allocations: 0 / 454.5 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004484/0.2518, allocations: 91.89 kB / 454.6 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/0.2532, allocations: 0.5396 MB / 455.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.841e-05/0.2532, allocations: 23.97 kB / 455.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001603/0.2548, allocations: 1.077 MB / 456.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.2548, allocations: 4 kB / 456.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002733/0.2576, allocations: 1.296 MB / 457.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.2579, allocations: 123.5 kB / 457.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.258, allocations: 24 kB / 457.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000665/0.2587, allocations: 103.9 kB / 457.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/0.259, allocations: 136.4 kB / 457.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.699e-05/0.2591, allocations: 27.97 kB / 457.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002985/0.2593, allocations: 255.2 kB / 458.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2593, allocations: 0 / 458.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005749/0.2599, allocations: 160 kB / 458.4 MB, free: 12.29 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.001528/0.2615, allocations: 437.1 kB / 458.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.2632, allocations: 0.7231 MB / 459.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2632, allocations: 0 / 459.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009383/0.2641, allocations: 416.6 kB / 459.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007507/0.2649, allocations: 119.9 kB / 460 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002718/0.2676, allocations: 1.419 MB / 461.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.2679, allocations: 263.4 kB / 461.7 MB, free: 9.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.2681, allocations: 56.38 kB / 461.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.2682, allocations: 51.42 kB / 461.8 MB, free: 8.934 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2682, allocations: 0 / 461.8 MB, free: 8.934 MB / 366.1 MB Notification: Performance of Templates: time 0.02064/0.2889, allocations: 12.48 MB / 474.3 MB, free: 12.57 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.743499527001404]