Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008136/0.0008136, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001231/0.002045, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008549/0.0008549, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001106/0.001961, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.041/1.041, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08805/1.129, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2625/0.2625, allocations: 34.25 MB / 278.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05847/0.321, allocations: 13.11 MB / 291.5 MB, free: 7.336 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 292.8 MB, free: 6.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.224e-05/2.356e-05, allocations: 4.812 kB / 292.8 MB, free: 6.215 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002731/0.002755, allocations: 1.562 MB / 294.4 MB, free: 4.645 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007243/0.003479, allocations: 466.8 kB / 294.8 MB, free: 4.184 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.936e-05/0.003529, allocations: 7.938 kB / 294.9 MB, free: 4.176 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.148e-05/0.00355, allocations: 0 / 294.9 MB, free: 4.176 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.183e-05/0.003582, allocations: 7.875 kB / 294.9 MB, free: 4.168 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001339/0.003716, allocations: 35.83 kB / 294.9 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.138e-05/0.003807, allocations: 35.86 kB / 294.9 MB, free: 4.098 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.094e-05/0.003878, allocations: 4.5 kB / 294.9 MB, free: 4.094 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.004032, allocations: 43.89 kB / 295 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.839e-05/0.00409, allocations: 7.984 kB / 295 MB, free: 4.043 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.624e-05/0.004106, allocations: 4 kB / 295 MB, free: 4.039 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.459e-05/0.004161, allocations: 12 kB / 295 MB, free: 4.027 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.552e-05/0.004176, allocations: 4 kB / 295 MB, free: 4.023 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.916e-05/0.004196, allocations: 11.94 kB / 295 MB, free: 4.012 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.004298, allocations: 23.91 kB / 295 MB, free: 3.988 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/0.004309, allocations: 3.938 kB / 295 MB, free: 3.984 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.00431, allocations: 0 / 295 MB, free: 3.984 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.004319, allocations: 0 / 295 MB, free: 3.984 MB / 282.7 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.0003786/0.004697, allocations: 253.8 kB / 295.3 MB, free: 3.715 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.004732, allocations: 15.97 kB / 295.3 MB, free: 3.699 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.00491, allocations: 90.03 kB / 295.4 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.005058, allocations: 121.7 kB / 295.5 MB, free: 3.449 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.005072, allocations: 8.375 kB / 295.5 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.145e-05/0.005083, allocations: 384 / 295.5 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.005215, allocations: 90.36 kB / 295.6 MB, free: 3.332 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.495e-06/0.005222, allocations: 192 / 295.6 MB, free: 3.332 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-06/0.00523, allocations: 384 / 295.6 MB, free: 3.332 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.005237, allocations: 3.938 kB / 295.6 MB, free: 3.328 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.657e-05/0.005264, allocations: 7.938 kB / 295.6 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002495/0.005513, allocations: 152.3 kB / 295.8 MB, free: 3.156 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.02e-05/0.005563, allocations: 22.58 kB / 295.8 MB, free: 3.125 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.786e-05/0.005581, allocations: 12.95 kB / 295.8 MB, free: 3.109 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.005593, allocations: 0 / 295.8 MB, free: 3.109 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.005617, allocations: 34.56 kB / 295.8 MB, free: 3.066 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.005618, allocations: 0 / 295.8 MB, free: 3.066 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001242/0.005742, allocations: 41.58 kB / 295.9 MB, free: 3.02 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.005772, allocations: 59.39 kB / 295.9 MB, free: 2.949 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.366e-05/0.005845, allocations: 118.6 kB / 296.1 MB, free: 2.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.005865, allocations: 25.7 kB / 296.1 MB, free: 2.789 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.324e-05/0.005899, allocations: 80.14 kB / 296.2 MB, free: 2.707 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.005915, allocations: 8.125 kB / 296.2 MB, free: 2.699 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.521e-05/0.00595, allocations: 21.7 kB / 296.2 MB, free: 2.672 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.942e-05/0.00604, allocations: 314.8 kB / 296.5 MB, free: 2.355 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.477e-05/0.006055, allocations: 4 kB / 296.5 MB, free: 2.352 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.278e-05/0.006087, allocations: 39.42 kB / 296.5 MB, free: 2.301 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.527e-05/0.006123, allocations: 20.86 kB / 296.6 MB, free: 2.277 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.006124, allocations: 0 / 296.6 MB, free: 2.277 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.013e-05/0.006194, allocations: 45.67 kB / 296.6 MB, free: 2.227 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.006209, allocations: 4 kB / 296.6 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.006213, allocations: 3.938 kB / 296.6 MB, free: 2.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.006226, allocations: 3.938 kB / 296.6 MB, free: 2.215 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.891e-05/0.006295, allocations: 8.031 kB / 296.6 MB, free: 2.207 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-06/0.006298, allocations: 0 / 296.6 MB, free: 2.207 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.622e-05/0.006334, allocations: 11.94 kB / 296.6 MB, free: 2.195 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-06/0.006339, allocations: 0 / 296.6 MB, free: 2.195 MB / 282.7 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 6.655e-05/0.006406, allocations: 113.8 kB / 296.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.362e-05/0.006429, allocations: 3.938 kB / 296.7 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.33e-05/0.006453, allocations: 11.61 kB / 296.8 MB, free: 2.059 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.006456, allocations: 3.938 kB / 296.8 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-06/0.006458, allocations: 0 / 296.8 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.00646, allocations: 0 / 296.8 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.006577, allocations: 69.91 kB / 296.8 MB, free: 1.969 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.006581, allocations: 7.984 kB / 296.8 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.087e-05/0.006612, allocations: 0 / 296.8 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-06/0.006618, allocations: 4 kB / 296.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.00662, allocations: 0 / 296.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.468e-06/0.006624, allocations: 0 / 296.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.006627, allocations: 3.938 kB / 296.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.006628, allocations: 0 / 296.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001016/0.00673, allocations: 139.5 kB / 297 MB, free: 1.801 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.006745, allocations: 0 / 297 MB, free: 1.801 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.475e-05/0.00681, allocations: 12.02 kB / 297 MB, free: 1.789 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/0.006848, allocations: 15.86 kB / 297 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.006852, allocations: 0 / 297 MB, free: 1.773 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.41e-05/0.006876, allocations: 20.84 kB / 297 MB, free: 1.75 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.006876, allocations: 0 / 297 MB, free: 1.75 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002002/0.007076, allocations: 4 kB / 297 MB, free: 1.746 MB / 282.7 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 9.467e-05/0.007171, allocations: 72.42 kB / 297.1 MB, free: 1.668 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.539e-05/0.007246, allocations: 12.86 kB / 297.1 MB, free: 1.652 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.007251, allocations: 3.938 kB / 297.1 MB, free: 1.648 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.749e-05/0.007279, allocations: 20.84 kB / 297.1 MB, free: 1.625 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001617/0.007441, allocations: 8.984 kB / 297.2 MB, free: 1.617 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000844/0.008285, allocations: 140.9 kB / 297.3 MB, free: 1.453 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.753e-05/0.008322, allocations: 55.36 kB / 297.3 MB, free: 1.379 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.05e-05/0.008353, allocations: 7.938 kB / 297.4 MB, free: 1.371 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.478e-05/0.008417, allocations: 59.36 kB / 297.4 MB, free: 1.312 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.008418, allocations: 4.094 kB / 297.4 MB, free: 1.309 MB / 282.7 MB Notification: Performance of Templates: time 0.002798/0.01122, allocations: 0.7022 MB / 298.1 MB, free: 0.6211 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.789062046445906]