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.001062/0.001062, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001202/0.001202, allocations: 170.3 kB / 24.82 MB, free: 9.266 MB / 18.57 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.218/1.218, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.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.4485/0.4485, allocations: 34.26 MB / 296.1 MB, free: 0.6445 MB / 266.7 MB " [Timeout remaining time 179] 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 3.536e-06/3.536e-06, allocations: 0 / 378.5 MB, free: 2.363 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.481e-05/4.835e-05, allocations: 2.312 kB / 378.5 MB, free: 2.359 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003263/0.003312, allocations: 1.493 MB / 380 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009283/0.00424, allocations: 466.7 kB / 380.4 MB, free: 404 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.057e-05/0.00431, allocations: 0 / 380.4 MB, free: 404 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.565e-05/0.004346, allocations: 3.938 kB / 380.4 MB, free: 400 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.889e-05/0.004415, allocations: 7.938 kB / 380.5 MB, free: 392 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.004703, allocations: 39.83 kB / 380.5 MB, free: 352 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.004831, allocations: 31.86 kB / 380.5 MB, free: 320 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.00494, allocations: 4 kB / 380.5 MB, free: 316 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.005098, allocations: 35.89 kB / 380.6 MB, free: 280 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.452e-05/0.005162, allocations: 15.92 kB / 380.6 MB, free: 264 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.005181, allocations: 4 kB / 380.6 MB, free: 260 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.827e-05/0.005229, allocations: 4 kB / 380.6 MB, free: 256 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.427e-05/0.005243, allocations: 4 kB / 380.6 MB, free: 252 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.059e-05/0.005264, allocations: 11.94 kB / 380.6 MB, free: 240 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.00538, allocations: 39.89 kB / 380.6 MB, free: 200 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.005383, allocations: 0 / 380.6 MB, free: 200 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.005384, allocations: 0 / 380.6 MB, free: 200 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.005388, allocations: 0 / 380.6 MB, free: 200 kB / 346.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.0004475/0.005836, allocations: 372.5 kB / 381 MB, free: 15.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.005887, allocations: 8.031 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.006022, allocations: 16.92 kB / 381 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.006174, allocations: 128.4 kB / 381.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-06/0.006182, allocations: 384 / 381.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-06/0.00619, allocations: 8.312 kB / 381.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.006339, allocations: 104 kB / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.006349, allocations: 4.172 kB / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.006357, allocations: 384 / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.006364, allocations: 3.938 kB / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.554e-05/0.00639, allocations: 7.984 kB / 381.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002791/0.006669, allocations: 240.5 kB / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.54e-05/0.006725, allocations: 35 kB / 381.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.598e-05/0.00674, allocations: 11.75 kB / 381.6 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.006761, allocations: 0 / 381.6 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.006789, allocations: 37.39 kB / 381.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.00679, allocations: 0 / 381.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001447/0.006935, allocations: 49.58 kB / 381.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.006978, allocations: 77.11 kB / 381.7 MB, free: 14.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.003e-05/0.007068, allocations: 173.8 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.007089, allocations: 33.69 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.588e-05/0.007145, allocations: 130.9 kB / 382.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.007165, allocations: 7.953 kB / 382.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.007194, allocations: 19.38 kB / 382.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.007355, allocations: 0.4923 MB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.238e-05/0.007367, allocations: 4.125 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.673e-05/0.007404, allocations: 45.08 kB / 382.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.846e-05/0.007432, allocations: 19.67 kB / 382.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.007434, allocations: 0 / 382.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.661e-05/0.007491, allocations: 41.64 kB / 382.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.007504, allocations: 8 kB / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.007512, allocations: 7.922 kB / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.007525, allocations: 0 / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.502e-05/0.00759, allocations: 4 kB / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.617e-06/0.007593, allocations: 0 / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.612e-05/0.007619, allocations: 8.031 kB / 382.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-06/0.007624, allocations: 0 / 382.7 MB, free: 13.89 MB / 362.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 8.256e-05/0.007707, allocations: 160.6 kB / 382.9 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.007721, allocations: 3.953 kB / 382.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.007749, allocations: 15.56 kB / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.00775, allocations: 0 / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.007752, allocations: 3.938 kB / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.007756, allocations: 0 / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.958e-05/0.007856, allocations: 101.2 kB / 383 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.007857, allocations: 0 / 383 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.449e-05/0.007871, allocations: 8 kB / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.007872, allocations: 0 / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.007879, allocations: 4 kB / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.01e-07/0.007879, allocations: 0 / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.007881, allocations: 3.938 kB / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.00799, allocations: 187.9 kB / 383.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.966e-06/0.007999, allocations: 8.094 kB / 383.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.008013, allocations: 0 / 383.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.316e-05/0.008047, allocations: 7.984 kB / 383.2 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.00809, allocations: 19.91 kB / 383.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.008093, allocations: 8.031 kB / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.566e-05/0.008139, allocations: 127.2 kB / 383.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008139, allocations: 0 / 383.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001324/0.008271, allocations: 8 kB / 383.4 MB, free: 13.19 MB / 362.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 8.503e-05/0.008356, allocations: 91.25 kB / 383.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.399e-05/0.00844, allocations: 23.61 kB / 383.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.008442, allocations: 0 / 383.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.318e-05/0.008465, allocations: 19.67 kB / 383.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.008616, allocations: 0 / 383.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004338/0.00905, allocations: 142.1 kB / 383.6 MB, free: 12.87 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.977e-05/0.0091, allocations: 59.34 kB / 383.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.601e-05/0.009126, allocations: 0 / 383.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.456e-05/0.00919, allocations: 78.19 kB / 383.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.009191, allocations: 0 / 383.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of Templates: time 0.002393/0.01158, allocations: 0.6917 MB / 384.5 MB, free: 12.02 MB / 362.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.507337454240769]