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.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.001002/0.001002, allocations: 76.19 kB / 9.911 MB, free: 0.7773 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001458/0.00246, allocations: 447.8 kB / 10.35 MB, free: 348 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.00073/0.00073, allocations: 161.1 kB / 11.23 MB, free: 2.938 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009425/0.001672, allocations: 463.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9216/0.9216, allocations: 158.6 MB / 171 MB, free: 2.188 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2072/1.129, allocations: 49.5 MB / 220.5 MB, free: 5.273 MB / 218.7 MB " [Timeout remaining time 179] 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.131/0.131, allocations: 32.34 MB / 253.6 MB, free: 4.172 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02314/0.1541, allocations: 12.3 MB / 265.9 MB, free: 7.836 MB / 266.7 MB " [Timeout remaining time 180] 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.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_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: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 267.2 MB, free: 6.555 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.683e-05/2.865e-05, allocations: 6.25 kB / 267.2 MB, free: 6.547 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002519/0.002548, allocations: 1.527 MB / 268.7 MB, free: 5.004 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005434/0.003092, allocations: 467.7 kB / 269.2 MB, free: 4.539 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.099e-05/0.003123, allocations: 0 / 269.2 MB, free: 4.539 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.293e-05/0.003145, allocations: 3.938 kB / 269.2 MB, free: 4.535 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 2.648e-05/0.003172, allocations: 3.938 kB / 269.2 MB, free: 4.531 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001008/0.003273, allocations: 15.92 kB / 269.2 MB, free: 4.516 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.13e-05/0.003344, allocations: 35.86 kB / 269.2 MB, free: 4.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.916e-05/0.003423, allocations: 4 kB / 269.2 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.003529, allocations: 35.89 kB / 269.3 MB, free: 4.441 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.126e-05/0.00359, allocations: 7.984 kB / 269.3 MB, free: 4.434 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.381e-05/0.003614, allocations: 8 kB / 269.3 MB, free: 4.426 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.858e-06/0.003624, allocations: 4 kB / 269.3 MB, free: 4.422 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.496e-05/0.003639, allocations: 7.938 kB / 269.3 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.936e-05/0.003658, allocations: 8 kB / 269.3 MB, free: 4.406 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.641e-05/0.003755, allocations: 27.86 kB / 269.3 MB, free: 4.379 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.675e-05/0.003772, allocations: 0 / 269.3 MB, free: 4.379 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.003773, allocations: 0 / 269.3 MB, free: 4.379 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.003784, allocations: 0 / 269.3 MB, free: 4.379 MB / 266.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.0003688/0.004152, allocations: 256.5 kB / 269.6 MB, free: 4.105 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.004184, allocations: 11.97 kB / 269.6 MB, free: 4.094 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.761e-05/0.004211, allocations: 4.938 kB / 269.6 MB, free: 4.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.578e-05/0.004287, allocations: 117.8 kB / 269.7 MB, free: 3.949 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.185e-06/0.004295, allocations: 384 / 269.7 MB, free: 3.949 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.004306, allocations: 4.359 kB / 269.7 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.004443, allocations: 86.38 kB / 269.8 MB, free: 3.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.004449, allocations: 192 / 269.8 MB, free: 3.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-06/0.004456, allocations: 384 / 269.8 MB, free: 3.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.004462, allocations: 7.938 kB / 269.8 MB, free: 3.832 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.314e-05/0.004485, allocations: 11.92 kB / 269.8 MB, free: 3.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002273/0.004712, allocations: 148.3 kB / 270 MB, free: 3.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.209e-05/0.004764, allocations: 26.58 kB / 270 MB, free: 3.625 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.257e-05/0.004777, allocations: 4.859 kB / 270 MB, free: 3.617 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.00479, allocations: 0 / 270 MB, free: 3.617 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.004812, allocations: 38.62 kB / 270 MB, free: 3.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 1.963e-06/0.004814, allocations: 3.984 kB / 270.1 MB, free: 3.566 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001033/0.004918, allocations: 45.61 kB / 270.1 MB, free: 3.516 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.004946, allocations: 51.41 kB / 270.1 MB, free: 3.453 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.136e-05/0.005007, allocations: 114.7 kB / 270.3 MB, free: 3.328 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.005025, allocations: 25.7 kB / 270.3 MB, free: 3.297 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/0.005056, allocations: 84.12 kB / 270.4 MB, free: 3.211 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.005076, allocations: 16.05 kB / 270.4 MB, free: 3.195 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-05/0.005106, allocations: 17.72 kB / 270.4 MB, free: 3.172 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.016e-05/0.005186, allocations: 314.8 kB / 270.7 MB, free: 2.855 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.18e-05/0.005198, allocations: 4 kB / 270.7 MB, free: 2.852 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.927e-05/0.005227, allocations: 43.41 kB / 270.8 MB, free: 2.797 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.688e-05/0.005254, allocations: 16.73 kB / 270.8 MB, free: 2.777 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.005257, allocations: 0 / 270.8 MB, free: 2.777 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.506e-05/0.005312, allocations: 37.69 kB / 270.8 MB, free: 2.734 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.005325, allocations: 8 kB / 270.8 MB, free: 2.727 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.00533, allocations: 0 / 270.8 MB, free: 2.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.887e-06/0.005339, allocations: 3.938 kB / 270.8 MB, free: 2.723 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.47e-05/0.005414, allocations: 12.02 kB / 270.8 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.005417, allocations: 0 / 270.8 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.512e-05/0.005442, allocations: 7.953 kB / 270.8 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.005447, allocations: 0 / 270.8 MB, free: 2.703 MB / 266.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 5.886e-05/0.005506, allocations: 117.8 kB / 271 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/0.005521, allocations: 0 / 271 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.217e-05/0.005543, allocations: 7.625 kB / 271 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.005547, allocations: 3.938 kB / 271 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.005562, allocations: 4 kB / 271 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.005566, allocations: 4 kB / 271 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.793e-05/0.005664, allocations: 77.81 kB / 271 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.005665, allocations: 0 / 271 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.357e-05/0.005699, allocations: 4 kB / 271 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.254e-06/0.005706, allocations: 4 kB / 271.1 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.005708, allocations: 0 / 271.1 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.005713, allocations: 3.984 kB / 271.1 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.005715, allocations: 3.938 kB / 271.1 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.005716, allocations: 0 / 271.1 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.117e-05/0.005808, allocations: 131.5 kB / 271.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.005822, allocations: 0 / 271.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.806e-05/0.00586, allocations: 8.031 kB / 271.2 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.784e-05/0.005898, allocations: 11.92 kB / 271.2 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.005902, allocations: 4 kB / 271.2 MB, free: 2.285 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.517e-05/0.005917, allocations: 12.84 kB / 271.2 MB, free: 2.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005917, allocations: 0 / 271.2 MB, free: 2.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001407/0.006058, allocations: 8 kB / 271.2 MB, free: 2.262 MB / 266.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 7.655e-05/0.006135, allocations: 76.36 kB / 271.3 MB, free: 2.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.741e-05/0.006212, allocations: 20.83 kB / 271.3 MB, free: 2.156 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.006217, allocations: 4 kB / 271.3 MB, free: 2.152 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.684e-05/0.006234, allocations: 8.859 kB / 271.3 MB, free: 2.141 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001099/0.006344, allocations: 11.94 kB / 271.4 MB, free: 2.129 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006604/0.007004, allocations: 127.5 kB / 271.5 MB, free: 1.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.779e-05/0.007042, allocations: 59.3 kB / 271.5 MB, free: 1.902 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.5e-05/0.007067, allocations: 240 / 271.5 MB, free: 1.902 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.228e-05/0.007119, allocations: 63.36 kB / 271.6 MB, free: 1.84 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.00712, allocations: 4.062 kB / 271.6 MB, free: 1.836 MB / 266.7 MB Notification: Performance of Templates: time 0.002331/0.009451, allocations: 0.6874 MB / 272.3 MB, free: 1.152 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.730985068716109]