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.001048/0.001048, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.00116/0.00116, allocations: 163.9 kB / 25.61 MB, free: 8.582 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 0.8849/0.8849, allocations: 177.2 MB / 206.1 MB, free: 4.473 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.1388/0.1388, allocations: 34.26 MB / 296.9 MB, free: 13.91 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.643e-06/1.643e-06, allocations: 0 / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.01e-05/2.174e-05, allocations: 6.25 kB / 379.3 MB, free: 23.42 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001621/0.001643, allocations: 1.486 MB / 380.8 MB, free: 21.92 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005238/0.002166, allocations: 474.6 kB / 381.2 MB, free: 21.45 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.835e-05/0.002215, allocations: 4 kB / 381.2 MB, free: 21.45 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.35e-05/0.002238, allocations: 3.938 kB / 381.2 MB, free: 21.44 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 4.243e-05/0.002281, allocations: 3.938 kB / 381.2 MB, free: 21.44 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.002466, allocations: 27.89 kB / 381.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.086e-05/0.002557, allocations: 35.86 kB / 381.3 MB, free: 21.38 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.674e-05/0.002633, allocations: 8 kB / 381.3 MB, free: 21.37 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.002743, allocations: 31.89 kB / 381.3 MB, free: 21.34 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.093e-05/0.002794, allocations: 15.92 kB / 381.4 MB, free: 21.32 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.002807, allocations: 8 kB / 381.4 MB, free: 21.31 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.377e-05/0.002841, allocations: 4 kB / 381.4 MB, free: 21.31 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.002852, allocations: 7.938 kB / 381.4 MB, free: 21.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.513e-05/0.002867, allocations: 19.91 kB / 381.4 MB, free: 21.28 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 7.851e-05/0.002945, allocations: 19.98 kB / 381.4 MB, free: 21.26 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.002948, allocations: 0 / 381.4 MB, free: 21.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.002949, allocations: 4 kB / 381.4 MB, free: 21.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.002952, allocations: 0 / 381.4 MB, free: 21.26 MB / 314.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.0002444/0.003197, allocations: 376.5 kB / 381.8 MB, free: 20.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.003226, allocations: 8.031 kB / 381.8 MB, free: 20.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.706e-05/0.003323, allocations: 20.88 kB / 381.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.371e-05/0.003416, allocations: 120.6 kB / 381.9 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-06/0.003423, allocations: 384 / 381.9 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-06/0.00343, allocations: 4.375 kB / 381.9 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.764e-05/0.003518, allocations: 99.95 kB / 382 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.42e-06/0.003523, allocations: 192 / 382 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.00353, allocations: 4.375 kB / 382 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.003535, allocations: 7.922 kB / 382.1 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.762e-05/0.003552, allocations: 0 / 382.1 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000171/0.003723, allocations: 248.4 kB / 382.3 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.682e-05/0.00376, allocations: 35 kB / 382.3 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.059e-05/0.003771, allocations: 11.69 kB / 382.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.003781, allocations: 0 / 382.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.299e-05/0.003794, allocations: 37.45 kB / 382.4 MB, free: 20.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.003795, allocations: 0 / 382.4 MB, free: 20.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001046/0.0039, allocations: 45.58 kB / 382.4 MB, free: 20.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.976e-05/0.003919, allocations: 85.11 kB / 382.5 MB, free: 20.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.038e-05/0.00396, allocations: 169.9 kB / 382.7 MB, free: 19.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.003971, allocations: 33.75 kB / 382.7 MB, free: 19.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.52e-05/0.003996, allocations: 138.9 kB / 382.8 MB, free: 19.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.342e-05/0.00401, allocations: 3.938 kB / 382.8 MB, free: 19.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.313e-05/0.004033, allocations: 19.38 kB / 382.9 MB, free: 19.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.566e-05/0.004068, allocations: 0.4884 MB / 383.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.004079, allocations: 4 kB / 383.4 MB, free: 19.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.964e-05/0.004099, allocations: 45.08 kB / 383.4 MB, free: 19.06 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.427e-05/0.004123, allocations: 19.67 kB / 383.4 MB, free: 19.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.004125, allocations: 0 / 383.4 MB, free: 19.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.866e-05/0.004174, allocations: 41.66 kB / 383.5 MB, free: 18.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.004184, allocations: 6.188 kB / 383.5 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.004191, allocations: 15.89 kB / 383.5 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.357e-06/0.0042, allocations: 4 kB / 383.5 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.548e-05/0.004246, allocations: 0 / 383.5 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.265e-06/0.004248, allocations: 0 / 383.5 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.222e-05/0.00427, allocations: 4 kB / 383.5 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-06/0.004275, allocations: 4 kB / 383.5 MB, free: 18.96 MB / 314.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.709e-05/0.004312, allocations: 160.6 kB / 383.6 MB, free: 18.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.677e-05/0.004329, allocations: 7.953 kB / 383.7 MB, free: 18.78 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.633e-05/0.004345, allocations: 7.562 kB / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.004346, allocations: 0 / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.004348, allocations: 4 kB / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.00435, allocations: 4 kB / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.735e-05/0.004418, allocations: 105.2 kB / 383.8 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.22e-07/0.004418, allocations: 0 / 383.8 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.444e-05/0.004433, allocations: 4 kB / 383.8 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.004434, allocations: 0 / 383.8 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-06/0.004438, allocations: 3.938 kB / 383.8 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.004439, allocations: 0 / 383.8 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.00444, allocations: 7.922 kB / 383.8 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.844e-05/0.004499, allocations: 188 kB / 384 MB, free: 18.42 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.863e-06/0.004506, allocations: 11.97 kB / 384 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.004519, allocations: 4 kB / 384 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.593e-05/0.004555, allocations: 11.98 kB / 384 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.38e-05/0.004588, allocations: 7.922 kB / 384 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.466e-06/0.004592, allocations: 4 kB / 384 MB, free: 18.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.799e-05/0.00461, allocations: 135.2 kB / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00461, allocations: 0 / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001373/0.004747, allocations: 4 kB / 384.1 MB, free: 18.24 MB / 314.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.559e-05/0.004803, allocations: 91.25 kB / 384.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.551e-05/0.004868, allocations: 31.61 kB / 384.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.00487, allocations: 0 / 384.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.863e-05/0.004888, allocations: 11.69 kB / 384.3 MB, free: 18.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001489/0.005037, allocations: 4 kB / 384.3 MB, free: 18.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003061/0.005343, allocations: 132.1 kB / 384.4 MB, free: 17.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.996e-05/0.005363, allocations: 63.2 kB / 384.5 MB, free: 17.85 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.998e-05/0.005383, allocations: 64 / 384.5 MB, free: 17.85 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.982e-05/0.005423, allocations: 82.19 kB / 384.6 MB, free: 17.77 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.005424, allocations: 0 / 384.6 MB, free: 17.77 MB / 314.7 MB Notification: Performance of Templates: time 0.001983/0.007406, allocations: 0.7013 MB / 385.3 MB, free: 17.07 MB / 314.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: 2.874408382922411]