Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009666/0.0009666, allocations: 196 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.6 MB / 244.3 MB, free: 8.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007644/0.0007644, allocations: 98.81 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000204/0.000204, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1759, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002383/0.1784, allocations: 2.762 MB / 410.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1799, allocations: 1.141 MB / 411.4 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.1801, allocations: 4 kB / 411.4 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002491/0.1804, allocations: 79.45 kB / 411.5 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000303/0.1807, allocations: 185.9 kB / 411.7 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000304/0.181, allocations: 187.3 kB / 411.8 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004005/0.1814, allocations: 0.7218 MB / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1816, allocations: 115.1 kB / 412.7 MB, free: 22.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003145/0.1819, allocations: 330.8 kB / 413 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003015/0.1822, allocations: 358.7 kB / 413.3 MB, free: 21.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.666e-05/0.1823, allocations: 32 kB / 413.4 MB, free: 21.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.1825, allocations: 83.91 kB / 413.5 MB, free: 21.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.1826, allocations: 143.5 kB / 413.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.549e-05/0.1827, allocations: 117.5 kB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.1831, allocations: 0.5426 MB / 414.3 MB, free: 21.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1831, allocations: 0 / 414.3 MB, free: 21.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1831, allocations: 0 / 414.3 MB, free: 21.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1831, allocations: 7.938 kB / 414.3 MB, free: 21.05 MB / 298.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.001327/0.1844, allocations: 0.8651 MB / 415.1 MB, free: 20.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.1845, allocations: 8.031 kB / 415.1 MB, free: 20.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000273/0.1847, allocations: 91.23 kB / 415.2 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.1851, allocations: 372.9 kB / 415.6 MB, free: 19.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.1852, allocations: 33 kB / 415.6 MB, free: 19.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.316e-05/0.1853, allocations: 44 kB / 415.7 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009428/0.1862, allocations: 0.6151 MB / 416.3 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.1863, allocations: 7.844 kB / 416.3 MB, free: 18.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.513e-05/0.1863, allocations: 20 kB / 416.3 MB, free: 18.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.1863, allocations: 12 kB / 416.3 MB, free: 18.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.1874, allocations: 0.5777 MB / 416.9 MB, free: 18.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.1896, allocations: 1.391 MB / 418.3 MB, free: 16.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.1906, allocations: 0.5063 MB / 418.8 MB, free: 16.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006013/0.1913, allocations: 314.4 kB / 419.1 MB, free: 16.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.489e-05/0.1913, allocations: 4.562 kB / 419.1 MB, free: 16.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.1913, allocations: 47.11 kB / 419.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.585e-06/0.1914, allocations: 0 / 419.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.00612/0.1975, allocations: 3.006 MB / 422.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.088e-05/0.1975, allocations: 60.06 kB / 422.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.1978, allocations: 353.7 kB / 422.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.659e-05/0.1979, allocations: 45.7 kB / 422.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.25e-05/0.1979, allocations: 197.4 kB / 422.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.1981, allocations: 252.5 kB / 423 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.1981, allocations: 16 kB / 423.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.607e-05/0.1982, allocations: 362.8 kB / 423.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005096/0.1987, allocations: 301.9 kB / 423.7 MB, free: 11.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/0.1992, allocations: 369.4 kB / 424.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004123/0.1997, allocations: 235 kB / 424.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1997, allocations: 4 kB / 424.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001415/0.2011, allocations: 0.9078 MB / 425.2 MB, free: 9.715 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2011, allocations: 7.938 kB / 425.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.2011, allocations: 0 / 425.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.2021, allocations: 0.5044 MB / 425.7 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003332/0.2025, allocations: 99.89 kB / 425.8 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.2036, allocations: 1.085 MB / 426.9 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006559/0.2043, allocations: 147.9 kB / 427 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.2044, allocations: 27.98 kB / 427.1 MB, free: 7.816 MB / 298.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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of prepare postOptimizeDAE: time 0.0002159/0.2046, allocations: 192.1 kB / 427.3 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.753e-05/0.2047, allocations: 51.44 kB / 427.3 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.2048, allocations: 76.97 kB / 427.4 MB, free: 7.492 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.2048, allocations: 8 kB / 427.4 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.2048, allocations: 0 / 427.4 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.2048, allocations: 3.984 kB / 427.4 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.207, allocations: 1.625 MB / 429 MB, free: 5.797 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.207, allocations: 0 / 429 MB, free: 5.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003806/0.2074, allocations: 87.89 kB / 429.1 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009036/0.2083, allocations: 484.5 kB / 429.6 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.767e-05/0.2084, allocations: 23.97 kB / 429.6 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.2094, allocations: 1.057 MB / 430.7 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2094, allocations: 0 / 430.7 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.2114, allocations: 1.311 MB / 432 MB, free: 2.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001869/0.2116, allocations: 196.4 kB / 432.2 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.475e-05/0.2117, allocations: 24 kB / 432.2 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006237/0.2123, allocations: 147.9 kB / 432.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.2126, allocations: 148.3 kB / 432.5 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.765e-05/0.2126, allocations: 35.95 kB / 432.5 MB, free: 2.242 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000181/0.2128, allocations: 247.2 kB / 432.8 MB, free: 2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2128, allocations: 0 / 432.8 MB, free: 2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004175/0.2132, allocations: 164 kB / 432.9 MB, free: 1.84 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006677/0.2139, allocations: 402.8 kB / 433.3 MB, free: 1.559 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.2152, allocations: 0.7661 MB / 434.1 MB, free: 0.793 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2152, allocations: 0 / 434.1 MB, free: 0.793 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006686/0.2159, allocations: 428.6 kB / 434.5 MB, free: 384 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006135/0.2165, allocations: 103.1 kB / 434.6 MB, free: 280 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.2189, allocations: 1.74 MB / 436.3 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.2193, allocations: 0.8561 MB / 437.2 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.2194, allocations: 43.42 kB / 437.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2194, allocations: 0 / 437.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of Templates: time 0.01047/0.2299, allocations: 9.052 MB / 446.3 MB, free: 4.543 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches