Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing") translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 195.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000715/0.000715, allocations: 107.1 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002259/0.0002259, allocations: 11.98 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1907, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.001814/0.1925, allocations: 2.044 MB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006702/0.1932, allocations: 0.5773 MB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.1933, allocations: 4 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.1934, allocations: 31.77 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.1936, allocations: 68.06 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001239/0.1937, allocations: 41.52 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.1939, allocations: 282.6 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.1941, allocations: 92.48 kB / 411.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.339e-05/0.1941, allocations: 87.66 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.1943, allocations: 105.6 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.1943, allocations: 16 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.393e-05/0.1943, allocations: 12 kB / 411.4 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.861e-05/0.1944, allocations: 43.83 kB / 411.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.238e-05/0.1944, allocations: 137.1 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.1946, allocations: 220.3 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1946, allocations: 3.562 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1946, allocations: 0 / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.1946, allocations: 3.938 kB / 411.8 MB, free: 23.95 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0005528/0.1952, allocations: 0.4972 MB / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.1952, allocations: 8.031 kB / 412.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.882e-05/0.1953, allocations: 32.56 kB / 412.3 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.1955, allocations: 243.8 kB / 412.6 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.1955, allocations: 24.94 kB / 412.6 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.1955, allocations: 32.11 kB / 412.6 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004058/0.1959, allocations: 224.9 kB / 412.8 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.196, allocations: 4 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.196, allocations: 8 kB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.196, allocations: 8 kB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.1964, allocations: 194.1 kB / 413 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009028/0.1973, allocations: 0.7656 MB / 413.8 MB, free: 21.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/0.1977, allocations: 224.9 kB / 414 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.1979, allocations: 124.7 kB / 414.2 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.1979, allocations: 4 kB / 414.2 MB, free: 21.42 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.226e-05/0.1979, allocations: 34.56 kB / 414.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.453e-06/0.1979, allocations: 0 / 414.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001396/0.1993, allocations: 0.9979 MB / 415.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.993e-05/0.1994, allocations: 55.41 kB / 415.2 MB, free: 20.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.419e-05/0.1995, allocations: 154.7 kB / 415.4 MB, free: 20.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.1995, allocations: 29.7 kB / 415.4 MB, free: 20.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.436e-05/0.1995, allocations: 144.5 kB / 415.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.342e-05/0.1996, allocations: 102.5 kB / 415.7 MB, free: 19.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.081e-05/0.1996, allocations: 8 kB / 415.7 MB, free: 19.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.67e-05/0.1997, allocations: 330.8 kB / 416 MB, free: 19.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.1998, allocations: 87.81 kB / 416.1 MB, free: 19.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.2, allocations: 111.4 kB / 416.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/0.2004, allocations: 208.3 kB / 416.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2004, allocations: 0 / 416.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003998/0.2008, allocations: 269.3 kB / 416.7 MB, free: 18.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2008, allocations: 8 kB / 416.7 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2008, allocations: 3.938 kB / 416.7 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.2008, allocations: 7.984 kB / 416.7 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002607/0.2011, allocations: 76.06 kB / 416.8 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.2011, allocations: 3.938 kB / 416.8 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.2012, allocations: 15.98 kB / 416.8 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.2012, allocations: 12 kB / 416.8 MB, free: 18.62 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.363e-05/0.2013, allocations: 141.7 kB / 416.9 MB, free: 18.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.509e-05/0.2014, allocations: 15.81 kB / 416.9 MB, free: 18.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.132e-05/0.2014, allocations: 34.48 kB / 417 MB, free: 18.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2014, allocations: 8 kB / 417 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2014, allocations: 0 / 417 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2015, allocations: 0 / 417 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007247/0.2022, allocations: 0.6566 MB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2022, allocations: 0 / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003023/0.2025, allocations: 75.91 kB / 417.7 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.2025, allocations: 0 / 417.7 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.2025, allocations: 15.98 kB / 417.7 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.2026, allocations: 7.938 kB / 417.7 MB, free: 17.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2026, allocations: 0 / 417.7 MB, free: 17.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000553/0.2031, allocations: 463 kB / 418.2 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.983e-05/0.2032, allocations: 92.92 kB / 418.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.2032, allocations: 8.047 kB / 418.3 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.2033, allocations: 19.88 kB / 418.3 MB, free: 16.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.01e-05/0.2034, allocations: 19.97 kB / 418.3 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.2034, allocations: 8 kB / 418.3 MB, free: 16.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.502e-05/0.2035, allocations: 123.5 kB / 418.4 MB, free: 16.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2035, allocations: 0 / 418.4 MB, free: 16.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002628/0.2037, allocations: 60 kB / 418.5 MB, free: 16.78 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.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 (28): * Single equations (assignments): 28 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.233e-05/0.2038, allocations: 107.2 kB / 418.6 MB, free: 16.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003666/0.2042, allocations: 215.8 kB / 418.8 MB, free: 16.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2042, allocations: 0 / 418.8 MB, free: 16.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.2044, allocations: 103.9 kB / 418.9 MB, free: 16.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.2048, allocations: 51.78 kB / 419 MB, free: 16.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.2058, allocations: 1.01 MB / 420 MB, free: 15.26 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.206, allocations: 0.7525 MB / 420.7 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.786e-05/0.2061, allocations: 19.44 kB / 420.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2061, allocations: 0 / 420.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of Templates: time 0.003402/0.2095, allocations: 2.731 MB / 423.5 MB, free: 11.73 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches