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.001552/0.001552, allocations: 95.2 kB / 20.43 MB, free: 4.145 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.001853/0.001853, allocations: 165 kB / 23.79 MB, free: 0.7812 MB / 18.57 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.8775/0.8775, allocations: 158.6 MB / 185.7 MB, free: 2.914 MB / 170.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.141/0.141, allocations: 32.38 MB / 270.4 MB, free: 14.71 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.303e-06/1.303e-06, allocations: 0 / 347.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.878e-05/2.008e-05, allocations: 10.19 kB / 347.7 MB, free: 9.461 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001805/0.001825, allocations: 1.482 MB / 349.1 MB, free: 7.977 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005635/0.002389, allocations: 455.8 kB / 349.6 MB, free: 7.523 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.166e-05/0.002421, allocations: 0 / 349.6 MB, free: 7.523 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.176e-05/0.002462, allocations: 0 / 349.6 MB, free: 7.523 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.168e-05/0.002504, allocations: 3.938 kB / 349.6 MB, free: 7.52 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001468/0.002651, allocations: 19.91 kB / 349.6 MB, free: 7.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.327e-05/0.002714, allocations: 35.86 kB / 349.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.948e-05/0.002784, allocations: 7.984 kB / 349.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.96e-05/0.002873, allocations: 27.86 kB / 349.7 MB, free: 7.43 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.686e-05/0.00292, allocations: 15.97 kB / 349.7 MB, free: 7.414 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.645e-05/0.002937, allocations: 4 kB / 349.7 MB, free: 7.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.106e-06/0.002945, allocations: 4 kB / 349.7 MB, free: 7.406 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.387e-05/0.002959, allocations: 7.938 kB / 349.7 MB, free: 7.398 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.022e-05/0.002979, allocations: 11.98 kB / 349.7 MB, free: 7.387 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 6.782e-05/0.003047, allocations: 19.98 kB / 349.7 MB, free: 7.367 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.003048, allocations: 0 / 349.7 MB, free: 7.367 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.003049, allocations: 0 / 349.7 MB, free: 7.367 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.003052, allocations: 0 / 349.7 MB, free: 7.367 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.0002776/0.00333, allocations: 368.6 kB / 350.1 MB, free: 6.973 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.003361, allocations: 12.03 kB / 350.1 MB, free: 6.961 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.222e-05/0.003404, allocations: 8.891 kB / 350.1 MB, free: 6.953 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.081e-05/0.003464, allocations: 124.5 kB / 350.2 MB, free: 6.805 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-06/0.003474, allocations: 4.312 kB / 350.2 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-06/0.003482, allocations: 4.375 kB / 350.2 MB, free: 6.797 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001137/0.003596, allocations: 104 kB / 350.4 MB, free: 6.672 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.003603, allocations: 192 / 350.4 MB, free: 6.672 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.003611, allocations: 384 / 350.4 MB, free: 6.672 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.003618, allocations: 3.938 kB / 350.4 MB, free: 6.668 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.815e-05/0.003646, allocations: 7.984 kB / 350.4 MB, free: 6.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002345/0.00388, allocations: 259.8 kB / 350.6 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.794e-05/0.003928, allocations: 38.98 kB / 350.7 MB, free: 6.32 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.68e-05/0.003945, allocations: 7.688 kB / 350.7 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.003955, allocations: 0 / 350.7 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.00397, allocations: 41.39 kB / 350.7 MB, free: 6.258 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/0.003971, allocations: 0 / 350.7 MB, free: 6.258 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.000131/0.004102, allocations: 41.69 kB / 350.7 MB, free: 6.211 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.006e-05/0.004122, allocations: 85.05 kB / 350.8 MB, free: 6.109 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.854e-05/0.004171, allocations: 165.9 kB / 351 MB, free: 5.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.004182, allocations: 29.83 kB / 351 MB, free: 5.895 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.458e-05/0.004206, allocations: 138.9 kB / 351.2 MB, free: 5.754 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.41e-05/0.00422, allocations: 3.953 kB / 351.2 MB, free: 5.75 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.843e-05/0.004249, allocations: 23.38 kB / 351.2 MB, free: 5.719 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.84e-05/0.004287, allocations: 0.4884 MB / 351.7 MB, free: 5.219 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.543e-05/0.004303, allocations: 4 kB / 351.7 MB, free: 5.215 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.635e-05/0.004329, allocations: 45.08 kB / 351.7 MB, free: 5.156 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.726e-05/0.004356, allocations: 11.69 kB / 351.7 MB, free: 5.141 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.004357, allocations: 0 / 351.7 MB, free: 5.141 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.156e-05/0.004419, allocations: 53.58 kB / 351.8 MB, free: 5.082 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.004429, allocations: 11.94 kB / 351.8 MB, free: 5.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.004433, allocations: 4.031 kB / 351.8 MB, free: 5.066 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.004444, allocations: 0 / 351.8 MB, free: 5.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.628e-05/0.0045, allocations: 7.984 kB / 351.8 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.004505, allocations: 0 / 351.8 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.785e-05/0.004533, allocations: 4 kB / 351.8 MB, free: 5.055 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-06/0.004537, allocations: 0 / 351.8 MB, free: 5.055 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 3.816e-05/0.004575, allocations: 160.6 kB / 352 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.004597, allocations: 7.922 kB / 352 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.663e-05/0.004614, allocations: 7.625 kB / 352 MB, free: 4.875 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.004615, allocations: 3.938 kB / 352 MB, free: 4.871 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.004618, allocations: 4 kB / 352 MB, free: 4.867 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.004621, allocations: 0 / 352 MB, free: 4.867 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.451e-05/0.004705, allocations: 116.6 kB / 352.1 MB, free: 4.719 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.004706, allocations: 0 / 352.1 MB, free: 4.719 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.575e-05/0.004722, allocations: 4 kB / 352.1 MB, free: 4.715 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.004723, allocations: 0 / 352.1 MB, free: 4.715 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.004731, allocations: 11.94 kB / 352.1 MB, free: 4.703 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.004731, allocations: 0 / 352.1 MB, free: 4.703 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.004733, allocations: 4 kB / 352.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.873e-05/0.004802, allocations: 187.8 kB / 352.3 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-06/0.004808, allocations: 8.031 kB / 352.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.004825, allocations: 11.92 kB / 352.3 MB, free: 4.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.128e-05/0.004876, allocations: 4 kB / 352.3 MB, free: 4.473 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.246e-05/0.004909, allocations: 7.984 kB / 352.3 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.004912, allocations: 0 / 352.3 MB, free: 4.465 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.048e-05/0.004932, allocations: 135.5 kB / 352.5 MB, free: 4.332 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004932, allocations: 0 / 352.5 MB, free: 4.332 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002088/0.005141, allocations: 11.94 kB / 352.5 MB, free: 4.32 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 5.149e-05/0.005192, allocations: 91.25 kB / 352.6 MB, free: 4.223 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.422e-05/0.005287, allocations: 27.61 kB / 352.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.005288, allocations: 0 / 352.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.085e-05/0.005309, allocations: 15.69 kB / 352.6 MB, free: 4.172 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001971/0.005506, allocations: 4 kB / 352.6 MB, free: 4.168 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003707/0.005877, allocations: 137.3 kB / 352.7 MB, free: 4.008 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.427e-05/0.005901, allocations: 51.36 kB / 352.8 MB, free: 3.938 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.126e-05/0.005922, allocations: 8.281 kB / 352.8 MB, free: 3.93 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.691e-05/0.005949, allocations: 12.5 kB / 352.8 MB, free: 3.918 MB / 282.7 MB Notification: Performance of SimCode: time 8.72e-07/0.00595, allocations: 0 / 352.8 MB, free: 3.918 MB / 282.7 MB Notification: Performance of Templates: time 0.002198/0.008148, allocations: 0.6723 MB / 353.5 MB, free: 3.25 MB / 282.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 -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: 3.1931124650873244]