Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded") translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009596/0.0009596, allocations: 197.3 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.231/1.231, allocations: 226.6 MB / 244.4 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007534/0.0007533, allocations: 101 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002481/0.0002482, allocations: 8 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1892/0.1895, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.001711/0.1912, allocations: 1.978 MB / 409.5 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006431/0.1919, allocations: 0.583 MB / 410.1 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.607e-05/0.192, allocations: 4 kB / 410.1 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.538e-05/0.1921, allocations: 27.78 kB / 410.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.615e-05/0.1922, allocations: 57.44 kB / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.1924, allocations: 47.88 kB / 410.2 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.1925, allocations: 234.9 kB / 410.4 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.1927, allocations: 72.8 kB / 410.5 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.1928, allocations: 91.64 kB / 410.6 MB, free: 24.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.613e-05/0.1929, allocations: 87.56 kB / 410.7 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.193, allocations: 8 kB / 410.7 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.481e-05/0.193, allocations: 27.97 kB / 410.7 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.193, allocations: 27.86 kB / 410.7 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.495e-05/0.1931, allocations: 69.58 kB / 410.8 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.1932, allocations: 176.5 kB / 411 MB, free: 24.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1932, allocations: 0 / 411 MB, free: 24.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1932, allocations: 0 / 411 MB, free: 24.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.1933, allocations: 0 / 411 MB, free: 24.37 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0004843/0.1937, allocations: 494.8 kB / 411.5 MB, free: 23.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.837e-05/0.1938, allocations: 12.03 kB / 411.5 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.1939, allocations: 39.66 kB / 411.5 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.1941, allocations: 227.4 kB / 411.7 MB, free: 23.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.1941, allocations: 16.44 kB / 411.7 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.1942, allocations: 27.95 kB / 411.8 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.1945, allocations: 205.8 kB / 412 MB, free: 23.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.1945, allocations: 4 kB / 412 MB, free: 23.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.1945, allocations: 12 kB / 412 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.1945, allocations: 4 kB / 412 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002079/0.1947, allocations: 133.6 kB / 412.1 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007437/0.1955, allocations: 0.7132 MB / 412.8 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.1957, allocations: 146.5 kB / 413 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.1958, allocations: 76.84 kB / 413.1 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.1958, allocations: 4 kB / 413.1 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.267e-05/0.1959, allocations: 38.48 kB / 413.1 MB, free: 22.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.333e-06/0.1959, allocations: 0 / 413.1 MB, free: 22.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001195/0.1971, allocations: 0.8959 MB / 414 MB, free: 21.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.025e-05/0.1971, allocations: 63.39 kB / 414.1 MB, free: 21.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.1972, allocations: 168 kB / 414.2 MB, free: 20.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.1972, allocations: 29.7 kB / 414.2 MB, free: 20.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.411e-05/0.1973, allocations: 144.2 kB / 414.4 MB, free: 20.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.702e-05/0.1973, allocations: 86.66 kB / 414.5 MB, free: 20.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-06/0.1973, allocations: 8 kB / 414.5 MB, free: 20.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.56e-05/0.1974, allocations: 334.8 kB / 414.8 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.937e-05/0.1975, allocations: 59.95 kB / 414.9 MB, free: 20.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.1976, allocations: 104.5 kB / 415 MB, free: 20.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.1977, allocations: 75.86 kB / 415 MB, free: 19.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-06/0.1977, allocations: 0 / 415 MB, free: 19.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003402/0.1981, allocations: 250.1 kB / 415.3 MB, free: 19.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1981, allocations: 4 kB / 415.3 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1981, allocations: 4 kB / 415.3 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000138/0.1982, allocations: 32.84 kB / 415.3 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.1984, allocations: 55.86 kB / 415.4 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007296/0.1992, allocations: 1.37 MB / 416.7 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.1993, allocations: 12.09 kB / 416.8 MB, free: 18.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.1993, allocations: 8 kB / 416.8 MB, free: 18.1 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.464e-05/0.1994, allocations: 141.7 kB / 416.9 MB, free: 17.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.1995, allocations: 19.72 kB / 416.9 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.526e-05/0.1995, allocations: 25.86 kB / 417 MB, free: 17.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1995, allocations: 3.953 kB / 417 MB, free: 17.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1995, allocations: 4 kB / 417 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1995, allocations: 0 / 417 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006359/0.2002, allocations: 0.6492 MB / 417.6 MB, free: 17.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2002, allocations: 8.141 kB / 417.6 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001884/0.2004, allocations: 51.91 kB / 417.7 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.51e-05/0.2005, allocations: 36.81 kB / 417.7 MB, free: 17.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.2005, allocations: 8 kB / 417.7 MB, free: 17.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006443/0.2011, allocations: 1.378 MB / 419.1 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.2012, allocations: 3.953 kB / 419.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004254/0.2016, allocations: 414.2 kB / 419.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.831e-05/0.2016, allocations: 88.92 kB / 419.6 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.2017, allocations: 11.95 kB / 419.6 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.2018, allocations: 8 kB / 419.6 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.079e-05/0.2018, allocations: 19.97 kB / 419.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.2018, allocations: 8 kB / 419.6 MB, free: 14.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.965e-05/0.2019, allocations: 127.2 kB / 419.8 MB, free: 14.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2019, allocations: 0 / 419.8 MB, free: 14.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002662/0.2022, allocations: 56 kB / 419.8 MB, free: 14.79 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.946e-05/0.2023, allocations: 108.5 kB / 419.9 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004075/0.2027, allocations: 294.3 kB / 420.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2027, allocations: 0 / 420.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002586/0.203, allocations: 218.4 kB / 420.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.2033, allocations: 41.09 kB / 420.5 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009299/0.2043, allocations: 0.8387 MB / 421.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.2044, allocations: 0.7485 MB / 422 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.467e-05/0.2045, allocations: 19.44 kB / 422.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2045, allocations: 0 / 422.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of Templates: time 0.003582/0.2081, allocations: 3.415 MB / 425.5 MB, free: 9.035 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches