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.001841/0.001841, allocations: 88.31 kB / 20.96 MB, free: 3.477 MB / 18.57 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.001535/0.001535, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.494/1.494, allocations: 177.2 MB / 204.6 MB, free: 5.574 MB / 186.7 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 1.884e-06/1.884e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.894e-05/3.083e-05, allocations: 6.312 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005497/0.005528, allocations: 3.012 MB / 275.3 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002854/0.008382, allocations: 1.208 MB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003671/0.008749, allocations: 7.938 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004497/0.009199, allocations: 99.08 kB / 276.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007368/0.009935, allocations: 238.2 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000774/0.01071, allocations: 275.5 kB / 277.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.012, allocations: 0.8695 MB / 278 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000291/0.01229, allocations: 89.56 kB / 278.1 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00125/0.01354, allocations: 0.5185 MB / 278.6 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006902/0.01423, allocations: 343.2 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000192/0.01442, allocations: 64 kB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003602/0.01478, allocations: 123.9 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005362/0.01532, allocations: 179.4 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004037/0.01572, allocations: 235.4 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.01697, allocations: 0.8567 MB / 280.4 MB, free: 9.688 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.01698, allocations: 3.938 kB / 280.4 MB, free: 9.684 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.01698, allocations: 0 / 280.4 MB, free: 9.684 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.883e-05/0.01701, allocations: 0 / 280.4 MB, free: 9.684 MB / 266.7 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.002316/0.01932, allocations: 0.8785 MB / 281.3 MB, free: 8.773 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.01936, allocations: 16.03 kB / 281.3 MB, free: 8.758 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005182/0.01988, allocations: 116.5 kB / 281.4 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007979/0.02068, allocations: 339.6 kB / 281.7 MB, free: 8.285 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.437e-05/0.02074, allocations: 37.38 kB / 281.8 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.02088, allocations: 52.33 kB / 281.8 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.0223, allocations: 0.6117 MB / 282.4 MB, free: 7.574 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.902e-05/0.02234, allocations: 8.188 kB / 282.5 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-05/0.02241, allocations: 20.12 kB / 282.5 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.02242, allocations: 8 kB / 282.5 MB, free: 7.539 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.02388, allocations: 0.5855 MB / 283.1 MB, free: 6.957 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.02668, allocations: 1.119 MB / 284.2 MB, free: 5.797 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.02795, allocations: 478.2 kB / 284.6 MB, free: 5.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006969/0.02864, allocations: 298.6 kB / 284.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.029e-05/0.02872, allocations: 16.59 kB / 285 MB, free: 5.008 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/0.02875, allocations: 39.22 kB / 285 MB, free: 4.961 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 2.355e-06/0.02876, allocations: 4 kB / 285 MB, free: 4.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.008109/0.03687, allocations: 2.532 MB / 287.5 MB, free: 2.379 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.085e-05/0.03694, allocations: 67.94 kB / 287.6 MB, free: 2.297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005914/0.03753, allocations: 357.6 kB / 287.9 MB, free: 1.941 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.948e-05/0.03762, allocations: 49.7 kB / 288 MB, free: 1.887 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002096/0.03783, allocations: 201.5 kB / 288.2 MB, free: 1.684 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003127/0.03814, allocations: 265.9 kB / 288.5 MB, free: 1.422 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/0.03844, allocations: 130.6 kB / 288.6 MB, free: 1.285 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002286/0.03867, allocations: 358.8 kB / 288.9 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007511/0.03942, allocations: 305.9 kB / 289.2 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007894/0.04021, allocations: 369.4 kB / 289.6 MB, free: 272 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.122/0.1622, allocations: 494.5 kB / 290.1 MB, free: 28.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.1622, allocations: 0 / 290.1 MB, free: 28.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002286/0.1645, allocations: 0.9538 MB / 291 MB, free: 28.13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.1645, allocations: 7.531 kB / 291 MB, free: 28.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.1645, allocations: 0.5156 kB / 291 MB, free: 28.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/0.1659, allocations: 0.5693 MB / 291.6 MB, free: 28.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/0.1663, allocations: 96.67 kB / 291.7 MB, free: 28.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.1679, allocations: 1.121 MB / 292.8 MB, free: 27.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007597/0.1686, allocations: 109.7 kB / 292.9 MB, free: 27.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-05/0.1687, allocations: 27.78 kB / 293 MB, free: 27.24 MB / 266.7 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.0002594/0.1689, allocations: 188.7 kB / 293.1 MB, free: 27.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.1691, allocations: 77.77 kB / 293.2 MB, free: 27.08 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001632/0.1693, allocations: 75.5 kB / 293.3 MB, free: 27.01 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.1693, allocations: 7.5 kB / 293.3 MB, free: 27.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.1693, allocations: 0 / 293.3 MB, free: 27.01 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.1693, allocations: 7.594 kB / 293.3 MB, free: 27.01 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.1721, allocations: 1.402 MB / 294.7 MB, free: 26.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.1721, allocations: 3.25 kB / 294.7 MB, free: 26.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000414/0.1725, allocations: 89.95 kB / 294.8 MB, free: 26.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.1738, allocations: 0.5375 MB / 295.3 MB, free: 26.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.928e-05/0.1738, allocations: 28.11 kB / 295.4 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.1753, allocations: 1.082 MB / 296.4 MB, free: 25.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1753, allocations: 0 / 296.4 MB, free: 25.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.1779, allocations: 1.323 MB / 297.8 MB, free: 24.85 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003455/0.1782, allocations: 131.1 kB / 297.9 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.1784, allocations: 25.27 kB / 297.9 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000708/0.1791, allocations: 108.2 kB / 298 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003374/0.1794, allocations: 132.8 kB / 298.2 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.887e-05/0.1795, allocations: 33.25 kB / 298.2 MB, free: 24.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002903/0.1798, allocations: 246.1 kB / 298.4 MB, free: 24.62 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1798, allocations: 0 / 298.4 MB, free: 24.62 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006315/0.1804, allocations: 156.7 kB / 298.6 MB, free: 24.61 MB / 266.7 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.001713/0.1821, allocations: 428.5 kB / 299 MB, free: 24.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.1839, allocations: 0.7208 MB / 299.7 MB, free: 24.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1839, allocations: 0.9375 kB / 299.7 MB, free: 24.21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009921/0.1849, allocations: 419.9 kB / 300.1 MB, free: 24.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.186, allocations: 165.4 kB / 300.3 MB, free: 24.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003212/0.1892, allocations: 1.267 MB / 301.6 MB, free: 23.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.1895, allocations: 262 kB / 301.8 MB, free: 23.17 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.1898, allocations: 52.44 kB / 301.9 MB, free: 23.15 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002024/0.19, allocations: 55.64 kB / 301.9 MB, free: 23.13 MB / 266.7 MB Notification: Performance of SimCode: time 1.382e-06/0.19, allocations: 1.375 kB / 301.9 MB, free: 23.13 MB / 266.7 MB Notification: Performance of Templates: time 0.01588/0.2059, allocations: 11.82 MB / 313.7 MB, free: 13.15 MB / 266.7 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 -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/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_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.833201067056507]