Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 111.3 kB / 19.69 MB, free: 2.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001889/0.001889, allocations: 191.9 kB / 22.98 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 207.6 MB / 233.7 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.256/0.256, allocations: 44.23 MB / 330.2 MB, free: 9.562 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002404, allocations: 71.89 kB / 467.9 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1808, allocations: 61.03 MB / 0.5166 GB, free: 6.883 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003367/0.1842, allocations: 1.464 MB / 0.518 GB, free: 5.414 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009522/0.1851, allocations: 471.8 kB / 0.5184 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.845e-05/0.1852, allocations: 0 / 0.5184 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.671e-05/0.1852, allocations: 3.938 kB / 0.5185 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.804e-05/0.1853, allocations: 3.938 kB / 0.5185 GB, free: 4.938 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.1855, allocations: 27.91 kB / 0.5185 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.1856, allocations: 31.86 kB / 0.5185 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.1858, allocations: 11.98 kB / 0.5185 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.1859, allocations: 12 kB / 0.5185 GB, free: 4.855 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.565e-05/0.186, allocations: 19.91 kB / 0.5186 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.478e-05/0.186, allocations: 4 kB / 0.5186 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.413e-05/0.186, allocations: 4 kB / 0.5186 GB, free: 4.828 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.485e-05/0.186, allocations: 11.92 kB / 0.5186 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.025e-05/0.1861, allocations: 15.94 kB / 0.5186 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.1862, allocations: 27.84 kB / 0.5186 GB, free: 4.773 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.1862, allocations: 0 / 0.5186 GB, free: 4.773 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1863, allocations: 3.938 kB / 0.5186 GB, free: 4.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.1863, allocations: 0 / 0.5186 GB, free: 4.77 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0007022/0.187, allocations: 274.3 kB / 0.5189 GB, free: 4.473 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/0.187, allocations: 12.03 kB / 0.5189 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.665e-05/0.1871, allocations: 8.891 kB / 0.5189 GB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.1872, allocations: 110.5 kB / 0.519 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.1872, allocations: 384 / 0.519 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.976e-05/0.1873, allocations: 4.375 kB / 0.519 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.1875, allocations: 59.7 kB / 0.5191 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.1875, allocations: 0 / 0.5191 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.1875, allocations: 4 kB / 0.5191 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.1875, allocations: 0 / 0.5191 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.1876, allocations: 27.92 kB / 0.5191 GB, free: 4.215 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005119/0.1881, allocations: 235.9 kB / 0.5193 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.1882, allocations: 26.58 kB / 0.5193 GB, free: 3.906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.975e-05/0.1883, allocations: 20.91 kB / 0.5194 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.1883, allocations: 0 / 0.5194 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.782e-05/0.1884, allocations: 34.56 kB / 0.5194 GB, free: 3.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 2.695e-06/0.1884, allocations: 3.984 kB / 0.5194 GB, free: 3.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002945/0.1887, allocations: 69.56 kB / 0.5195 GB, free: 3.762 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/0.1887, allocations: 77.11 kB / 0.5195 GB, free: 3.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.1889, allocations: 113.8 kB / 0.5197 GB, free: 3.547 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.1889, allocations: 25.7 kB / 0.5197 GB, free: 3.516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.189, allocations: 96.2 kB / 0.5198 GB, free: 3.418 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.189, allocations: 3.953 kB / 0.5198 GB, free: 3.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-05/0.189, allocations: 21.7 kB / 0.5198 GB, free: 3.387 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1892, allocations: 310.8 kB / 0.5201 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.622e-05/0.1892, allocations: 15.98 kB / 0.5201 GB, free: 3.059 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.307e-05/0.1893, allocations: 21.72 kB / 0.5201 GB, free: 3.031 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.176e-05/0.1894, allocations: 36.75 kB / 0.5202 GB, free: 2.992 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1894, allocations: 0 / 0.5202 GB, free: 2.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001427/0.1895, allocations: 61.67 kB / 0.5202 GB, free: 2.926 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1895, allocations: 4 kB / 0.5202 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1895, allocations: 0 / 0.5202 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1896, allocations: 0 / 0.5202 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.488e-05/0.1896, allocations: 7.984 kB / 0.5202 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1897, allocations: 0 / 0.5202 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.718e-05/0.1897, allocations: 4 kB / 0.5202 GB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.1897, allocations: 8 kB / 0.5202 GB, free: 2.902 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.1898, allocations: 117.8 kB / 0.5204 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.1899, allocations: 7.953 kB / 0.5204 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.167e-05/0.1899, allocations: 7.625 kB / 0.5204 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.1899, allocations: 0 / 0.5204 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.1899, allocations: 4 kB / 0.5204 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1899, allocations: 3.938 kB / 0.5204 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.1901, allocations: 136.7 kB / 0.5205 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1901, allocations: 0 / 0.5205 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.137e-05/0.1901, allocations: 8 kB / 0.5205 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1901, allocations: 0 / 0.5205 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.1901, allocations: 3.984 kB / 0.5205 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1902, allocations: 0 / 0.5205 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1902, allocations: 4 kB / 0.5205 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001803/0.1903, allocations: 143.5 kB / 0.5207 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.115e-05/0.1903, allocations: 3.953 kB / 0.5207 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.361e-05/0.1904, allocations: 12.02 kB / 0.5207 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.446e-05/0.1905, allocations: 4 kB / 0.5207 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.754e-05/0.1905, allocations: 11.98 kB / 0.5207 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.1905, allocations: 0 / 0.5207 GB, free: 2.371 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.668e-05/0.1906, allocations: 87.27 kB / 0.5208 GB, free: 2.285 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1906, allocations: 3.938 kB / 0.5208 GB, free: 2.281 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.1908, allocations: 8 kB / 0.5208 GB, free: 2.273 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001108/0.1909, allocations: 95.19 kB / 0.5209 GB, free: 2.172 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001754/0.1911, allocations: 27.98 kB / 0.5209 GB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1911, allocations: 3.938 kB / 0.5209 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.912e-05/0.1911, allocations: 15.98 kB / 0.5209 GB, free: 2.125 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.1914, allocations: 3.938 kB / 0.5209 GB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003712/0.1917, allocations: 134.7 kB / 0.5211 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.1921, allocations: 0.6813 MB / 0.5217 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.173e-05/0.1921, allocations: 240 / 0.5217 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/0.1921, allocations: 15.42 kB / 0.5217 GB, free: 1.242 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1921, allocations: 0 / 0.5217 GB, free: 1.242 MB / 398.1 MB Notification: Performance of Templates: time 0.003639/0.1958, allocations: 0.6019 MB / 0.5223 GB, free: 0.6406 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.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: 5.431052250787616]