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.002149/0.002149, allocations: 96.97 kB / 20.21 MB, free: 4.211 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.002141/0.002141, allocations: 169.6 kB / 23.53 MB, free: 0.8984 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 1.404/1.404, allocations: 158.6 MB / 185.3 MB, free: 2.902 MB / 170.7 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.2099/0.2099, allocations: 32.37 MB / 270 MB, free: 14.78 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.603e-06/1.603e-06, allocations: 0 / 346.9 MB, free: 9.832 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.925e-05/2.085e-05, allocations: 6.312 kB / 346.9 MB, free: 9.824 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001839/0.00186, allocations: 1.456 MB / 348.4 MB, free: 8.363 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005822/0.002442, allocations: 451.8 kB / 348.8 MB, free: 7.914 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.266e-05/0.002475, allocations: 0 / 348.8 MB, free: 7.914 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.111e-05/0.002496, allocations: 0 / 348.8 MB, free: 7.914 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.729e-05/0.002544, allocations: 7.875 kB / 348.8 MB, free: 7.906 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001522/0.002696, allocations: 11.98 kB / 348.8 MB, free: 7.895 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.13e-05/0.002757, allocations: 35.86 kB / 348.9 MB, free: 7.859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.581e-05/0.002833, allocations: 11.97 kB / 348.9 MB, free: 7.848 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.64e-05/0.002929, allocations: 27.86 kB / 348.9 MB, free: 7.82 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.995e-05/0.002979, allocations: 15.98 kB / 348.9 MB, free: 7.805 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.002996, allocations: 0 / 348.9 MB, free: 7.805 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.053e-05/0.003007, allocations: 4 kB / 348.9 MB, free: 7.801 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.639e-05/0.003023, allocations: 4 kB / 348.9 MB, free: 7.797 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.209e-05/0.003045, allocations: 19.86 kB / 348.9 MB, free: 7.777 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.558e-05/0.003121, allocations: 27.95 kB / 349 MB, free: 7.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.003123, allocations: 0 / 349 MB, free: 7.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.003123, allocations: 0 / 349 MB, free: 7.75 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.003126, allocations: 4 kB / 349 MB, free: 7.746 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.0003324/0.003458, allocations: 372.2 kB / 349.3 MB, free: 7.348 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/0.003488, allocations: 12.03 kB / 349.4 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.969e-05/0.003528, allocations: 8.891 kB / 349.4 MB, free: 7.328 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.132e-05/0.003589, allocations: 116.5 kB / 349.5 MB, free: 7.188 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.0036, allocations: 384 / 349.5 MB, free: 7.188 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-06/0.003609, allocations: 384 / 349.5 MB, free: 7.188 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.003742, allocations: 99.25 kB / 349.6 MB, free: 7.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.00375, allocations: 4.188 kB / 349.6 MB, free: 7.066 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.00376, allocations: 4.375 kB / 349.6 MB, free: 7.062 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.003764, allocations: 3.938 kB / 349.6 MB, free: 7.059 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.369e-05/0.003838, allocations: 19.98 kB / 349.6 MB, free: 7.039 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002613/0.004099, allocations: 259.8 kB / 349.9 MB, free: 6.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.26e-05/0.004182, allocations: 43.05 kB / 349.9 MB, free: 6.695 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.004228, allocations: 15.75 kB / 349.9 MB, free: 6.676 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.004248, allocations: 7.875 kB / 349.9 MB, free: 6.668 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.004265, allocations: 41.33 kB / 350 MB, free: 6.617 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.004266, allocations: 0 / 350 MB, free: 6.617 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002028/0.004468, allocations: 53.67 kB / 350 MB, free: 6.559 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/0.004492, allocations: 85.11 kB / 350.1 MB, free: 6.457 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.79e-05/0.00455, allocations: 178 kB / 350.3 MB, free: 6.266 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.898e-06/0.00456, allocations: 29.7 kB / 350.3 MB, free: 6.23 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.89e-05/0.004588, allocations: 130.9 kB / 350.4 MB, free: 6.098 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.373e-05/0.004602, allocations: 7.953 kB / 350.4 MB, free: 6.09 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.004633, allocations: 19.38 kB / 350.5 MB, free: 6.062 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.156e-05/0.004685, allocations: 0.4884 MB / 350.9 MB, free: 5.562 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.974e-05/0.004725, allocations: 12 kB / 351 MB, free: 5.551 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.196e-05/0.004767, allocations: 61 kB / 351 MB, free: 5.477 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.77e-05/0.004824, allocations: 23.69 kB / 351 MB, free: 5.449 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.004826, allocations: 0 / 351 MB, free: 5.449 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.579e-05/0.004922, allocations: 61.66 kB / 351.1 MB, free: 5.383 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.004933, allocations: 11.94 kB / 351.1 MB, free: 5.371 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.004937, allocations: 0 / 351.1 MB, free: 5.371 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.00495, allocations: 0 / 351.1 MB, free: 5.371 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.877e-05/0.005009, allocations: 4 kB / 351.1 MB, free: 5.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.005014, allocations: 3.938 kB / 351.1 MB, free: 5.363 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.583e-05/0.00506, allocations: 11.98 kB / 351.1 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.005065, allocations: 0 / 351.1 MB, free: 5.352 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 5.953e-05/0.005125, allocations: 156.6 kB / 351.3 MB, free: 5.188 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.612e-05/0.005151, allocations: 3.938 kB / 351.3 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.113e-05/0.005172, allocations: 15.62 kB / 351.3 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.005173, allocations: 0 / 351.3 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.005176, allocations: 0 / 351.3 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.005178, allocations: 0 / 351.3 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.204e-05/0.00527, allocations: 120.6 kB / 351.4 MB, free: 5.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.005271, allocations: 0 / 351.4 MB, free: 5.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.862e-05/0.00531, allocations: 4 kB / 351.4 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.005312, allocations: 3.984 kB / 351.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.00532, allocations: 3.938 kB / 351.4 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.005321, allocations: 0 / 351.4 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.005322, allocations: 0 / 351.4 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/0.005444, allocations: 211.8 kB / 351.6 MB, free: 4.781 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.254e-06/0.005451, allocations: 4 kB / 351.6 MB, free: 4.777 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/0.005468, allocations: 7.938 kB / 351.7 MB, free: 4.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-05/0.005541, allocations: 7.984 kB / 351.7 MB, free: 4.762 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.005588, allocations: 7.984 kB / 351.7 MB, free: 4.754 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-06/0.005592, allocations: 0 / 351.7 MB, free: 4.754 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.149e-05/0.005624, allocations: 139.5 kB / 351.8 MB, free: 4.617 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005624, allocations: 0 / 351.8 MB, free: 4.617 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002079/0.005832, allocations: 8 kB / 351.8 MB, free: 4.609 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.874e-05/0.00589, allocations: 95.28 kB / 351.9 MB, free: 4.508 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.006025, allocations: 31.67 kB / 351.9 MB, free: 4.473 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.006026, allocations: 0 / 351.9 MB, free: 4.473 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.501e-05/0.006071, allocations: 23.62 kB / 352 MB, free: 4.445 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.006273, allocations: 4 kB / 352 MB, free: 4.441 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002238/0.006497, allocations: 141.2 kB / 352.1 MB, free: 4.277 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.641e-05/0.006533, allocations: 71.31 kB / 352.2 MB, free: 4.188 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.715e-05/0.006561, allocations: 4.219 kB / 352.2 MB, free: 4.184 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.063e-05/0.006591, allocations: 12.5 kB / 352.2 MB, free: 4.172 MB / 282.7 MB Notification: Performance of SimCode: time 4.3e-07/0.006592, allocations: 0 / 352.2 MB, free: 4.172 MB / 282.7 MB Notification: Performance of Templates: time 0.002861/0.009453, allocations: 0.624 MB / 352.8 MB, free: 3.555 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","/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: 4.9645898749586195]