Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008725/0.0008725, allocations: 178.8 kB / 17.04 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.182/1.182, allocations: 223.3 MB / 241 MB, free: 11.81 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007246/0.0007247, allocations: 95.92 kB / 292.2 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002253/0.0002253, allocations: 11.94 kB / 351.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1898, allocations: 50.4 MB / 402.2 MB, free: 32.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.001746/0.1916, allocations: 1.972 MB / 404.2 MB, free: 30.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005935/0.1922, allocations: 0.5438 MB / 404.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.909e-05/0.1923, allocations: 4 kB / 404.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.976e-05/0.1924, allocations: 23.78 kB / 404.7 MB, free: 30.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.956e-05/0.1925, allocations: 67.02 kB / 404.8 MB, free: 29.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001465/0.1927, allocations: 39.91 kB / 404.8 MB, free: 29.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001617/0.1928, allocations: 238.8 kB / 405.1 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.193, allocations: 60.66 kB / 405.1 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.742e-05/0.1931, allocations: 87.64 kB / 405.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.675e-05/0.1932, allocations: 93.69 kB / 405.3 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.1932, allocations: 8 kB / 405.3 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.902e-05/0.1932, allocations: 12 kB / 405.3 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.22e-05/0.1933, allocations: 39.83 kB / 405.4 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.493e-05/0.1933, allocations: 61.64 kB / 405.4 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001224/0.1934, allocations: 177.6 kB / 405.6 MB, free: 29.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1935, allocations: 0 / 405.6 MB, free: 29.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1935, allocations: 7.938 kB / 405.6 MB, free: 29.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1935, allocations: 0 / 405.6 MB, free: 29.16 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.0004812/0.194, allocations: 490.8 kB / 406.1 MB, free: 28.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.194, allocations: 12.03 kB / 406.1 MB, free: 28.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.544e-05/0.194, allocations: 31.61 kB / 406.1 MB, free: 28.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001797/0.1942, allocations: 225.1 kB / 406.4 MB, free: 28.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.1943, allocations: 20.44 kB / 406.4 MB, free: 28.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.1943, allocations: 23.94 kB / 406.4 MB, free: 28.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.1946, allocations: 209.9 kB / 406.6 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.1946, allocations: 3.984 kB / 406.6 MB, free: 28.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.1946, allocations: 12 kB / 406.6 MB, free: 28.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1946, allocations: 7.953 kB / 406.6 MB, free: 28.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.1948, allocations: 133.7 kB / 406.8 MB, free: 27.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007288/0.1956, allocations: 0.7171 MB / 407.5 MB, free: 27.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.1958, allocations: 146.5 kB / 407.6 MB, free: 26.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.1959, allocations: 68.84 kB / 407.7 MB, free: 26.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.1959, allocations: 11.98 kB / 407.7 MB, free: 26.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/0.1959, allocations: 30.56 kB / 407.7 MB, free: 26.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.233e-06/0.196, allocations: 0 / 407.7 MB, free: 26.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001196/0.1972, allocations: 0.8968 MB / 408.6 MB, free: 25.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/0.1972, allocations: 59.39 kB / 408.7 MB, free: 25.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.1973, allocations: 171.2 kB / 408.8 MB, free: 25.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.1973, allocations: 25.7 kB / 408.9 MB, free: 25.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.434e-05/0.1974, allocations: 148.3 kB / 409 MB, free: 25.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.1974, allocations: 90.64 kB / 409.1 MB, free: 25.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-06/0.1974, allocations: 8 kB / 409.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.542e-05/0.1975, allocations: 330.8 kB / 409.4 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.8e-05/0.1976, allocations: 55.97 kB / 409.5 MB, free: 24.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.1977, allocations: 100.2 kB / 409.6 MB, free: 24.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.1978, allocations: 71.98 kB / 409.7 MB, free: 24.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1978, allocations: 3.938 kB / 409.7 MB, free: 24.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003381/0.1982, allocations: 255.6 kB / 409.9 MB, free: 24.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.1982, allocations: 4 kB / 409.9 MB, free: 24.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1982, allocations: 4 kB / 409.9 MB, free: 24.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001323/0.1983, allocations: 28.84 kB / 410 MB, free: 24.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.1985, allocations: 55.91 kB / 410 MB, free: 24.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007377/0.1993, allocations: 1.367 MB / 411.4 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.1994, allocations: 8.031 kB / 411.4 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.1994, allocations: 15.94 kB / 411.4 MB, free: 22.91 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 9.699e-05/0.1995, allocations: 145.8 kB / 411.5 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.353e-05/0.1995, allocations: 19.72 kB / 411.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.754e-05/0.1996, allocations: 25.86 kB / 411.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1996, allocations: 3.938 kB / 411.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1996, allocations: 4 kB / 411.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1996, allocations: 0 / 411.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006451/0.2003, allocations: 0.653 MB / 412.2 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2003, allocations: 0 / 412.2 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002082/0.2005, allocations: 47.97 kB / 412.3 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.792e-05/0.2006, allocations: 44.95 kB / 412.3 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.2006, allocations: 8 kB / 412.3 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000669/0.2013, allocations: 1.374 MB / 413.7 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2013, allocations: 3.938 kB / 413.7 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004271/0.2017, allocations: 410.1 kB / 414.1 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.868e-05/0.2018, allocations: 88.92 kB / 414.2 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.2018, allocations: 8 kB / 414.2 MB, free: 19.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.2019, allocations: 4 kB / 414.2 MB, free: 19.83 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.649e-05/0.202, allocations: 23.97 kB / 414.2 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.202, allocations: 4 kB / 414.2 MB, free: 19.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.265e-05/0.2021, allocations: 128.8 kB / 414.4 MB, free: 19.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2021, allocations: 4 kB / 414.4 MB, free: 19.67 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002627/0.2023, allocations: 56 kB / 414.4 MB, free: 19.62 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 8.931e-05/0.2024, allocations: 110.3 kB / 414.5 MB, free: 19.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004205/0.2029, allocations: 301.6 kB / 414.8 MB, free: 19.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2029, allocations: 4 kB / 414.8 MB, free: 19.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.2031, allocations: 210.5 kB / 415 MB, free: 18.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.2035, allocations: 35.92 kB / 415.1 MB, free: 18.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000947/0.2045, allocations: 0.8489 MB / 415.9 MB, free: 18.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001384/0.2046, allocations: 0.7446 MB / 416.7 MB, free: 17.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.499e-05/0.2047, allocations: 23.44 kB / 416.7 MB, free: 17.26 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2047, allocations: 0 / 416.7 MB, free: 17.26 MB / 298.7 MB Notification: Performance of Templates: time 0.003767/0.2084, allocations: 3.403 MB / 420.1 MB, free: 13.86 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches