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.001851/0.001851, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002446/0.002446, allocations: 163.9 kB / 23.95 MB, free: 4.156 MB / 14.72 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.497/1.497, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] 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.2322/0.2322, allocations: 34.28 MB / 295 MB, free: 14.57 MB / 286.1 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.493e-06/1.493e-06, allocations: 0 / 442.7 MB, free: 5.426 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.789e-05/2.939e-05, allocations: 9.172 kB / 442.7 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00257/0.002599, allocations: 1.467 MB / 444.1 MB, free: 3.941 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009139/0.003513, allocations: 454.8 kB / 444.6 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.287e-05/0.003576, allocations: 0 / 444.6 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.805e-05/0.003604, allocations: 7.938 kB / 444.6 MB, free: 3.484 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.284e-05/0.003657, allocations: 7.875 kB / 444.6 MB, free: 3.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.003892, allocations: 23.97 kB / 444.6 MB, free: 3.453 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001133/0.004005, allocations: 43.84 kB / 444.7 MB, free: 3.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.594e-05/0.004101, allocations: 7.938 kB / 444.7 MB, free: 3.402 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.004246, allocations: 23.98 kB / 444.7 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.493e-05/0.004311, allocations: 11.92 kB / 444.7 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.00433, allocations: 4 kB / 444.7 MB, free: 3.363 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.778e-05/0.004378, allocations: 15.97 kB / 444.7 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.336e-05/0.004392, allocations: 0 / 444.7 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.948e-05/0.004421, allocations: 11.94 kB / 444.7 MB, free: 3.336 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.004548, allocations: 43.88 kB / 444.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.004551, allocations: 0 / 444.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.004552, allocations: 4 kB / 444.8 MB, free: 3.289 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.004556, allocations: 0 / 444.8 MB, free: 3.289 MB / 366.1 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.0005014/0.005058, allocations: 278.2 kB / 445 MB, free: 2.988 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.005096, allocations: 8.031 kB / 445.1 MB, free: 2.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.005256, allocations: 12.92 kB / 445.1 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.005446, allocations: 125.7 kB / 445.2 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.005459, allocations: 4.375 kB / 445.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-06/0.005469, allocations: 384 / 445.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/0.005678, allocations: 93.59 kB / 445.3 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.005688, allocations: 192 / 445.3 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.0057, allocations: 384 / 445.3 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.00571, allocations: 3.938 kB / 445.3 MB, free: 2.703 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.788e-05/0.005808, allocations: 19.98 kB / 445.3 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003762/0.006184, allocations: 208.5 kB / 445.5 MB, free: 2.449 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.006294, allocations: 34.52 kB / 445.5 MB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.135e-05/0.006346, allocations: 12.91 kB / 445.6 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.006366, allocations: 4 kB / 445.6 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.006403, allocations: 38.5 kB / 445.6 MB, free: 2.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.006405, allocations: 0 / 445.6 MB, free: 2.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002753/0.00668, allocations: 69.56 kB / 445.7 MB, free: 2.266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.006741, allocations: 77.11 kB / 445.7 MB, free: 2.172 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.752e-05/0.006839, allocations: 109.8 kB / 445.9 MB, free: 2.055 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.006862, allocations: 29.7 kB / 445.9 MB, free: 2.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.645e-05/0.006918, allocations: 84.14 kB / 446 MB, free: 1.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.625e-05/0.006955, allocations: 7.953 kB / 446 MB, free: 1.926 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.006995, allocations: 21.83 kB / 446 MB, free: 1.898 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.007139, allocations: 314.8 kB / 446.3 MB, free: 1.582 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.453e-05/0.007194, allocations: 15.98 kB / 446.3 MB, free: 1.566 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.401e-05/0.007268, allocations: 55.39 kB / 446.4 MB, free: 1.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.262e-05/0.007361, allocations: 28.84 kB / 446.4 MB, free: 1.469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.007362, allocations: 0 / 446.4 MB, free: 1.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001361/0.007498, allocations: 53.62 kB / 446.4 MB, free: 1.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.007517, allocations: 14.44 kB / 446.5 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.007521, allocations: 0 / 446.5 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.007536, allocations: 4.031 kB / 446.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.129e-05/0.007607, allocations: 7.984 kB / 446.5 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.007612, allocations: 0 / 446.5 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.934e-05/0.007672, allocations: 4 kB / 446.5 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.00768, allocations: 3.984 kB / 446.5 MB, free: 1.379 MB / 366.1 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 9.169e-05/0.007772, allocations: 113.8 kB / 446.6 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.007804, allocations: 12.27 kB / 446.6 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.007841, allocations: 7.625 kB / 446.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.007843, allocations: 0 / 446.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.007846, allocations: 4 kB / 446.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.007849, allocations: 3.938 kB / 446.6 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001389/0.007988, allocations: 113.2 kB / 446.7 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.007992, allocations: 4 kB / 446.7 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.376e-05/0.008035, allocations: 7.984 kB / 446.7 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.008037, allocations: 3.938 kB / 446.7 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.008047, allocations: 3.938 kB / 446.8 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.008048, allocations: 0 / 446.8 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.008049, allocations: 3.938 kB / 446.8 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001887/0.008238, allocations: 151.5 kB / 446.9 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.377e-06/0.008247, allocations: 3.953 kB / 446.9 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.265e-05/0.00827, allocations: 7.938 kB / 446.9 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.921e-05/0.008359, allocations: 7.984 kB / 446.9 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.00841, allocations: 11.98 kB / 446.9 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.008414, allocations: 0 / 446.9 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.488e-05/0.008469, allocations: 87.28 kB / 447 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.008469, allocations: 0 / 447 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002269/0.008696, allocations: 4 kB / 447 MB, free: 0.7773 MB / 366.1 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 0.0001156/0.008812, allocations: 99.27 kB / 447.1 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001493/0.008961, allocations: 27.92 kB / 447.1 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.008963, allocations: 0 / 447.1 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.24e-05/0.009015, allocations: 12 kB / 447.2 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.009238, allocations: 4 kB / 447.2 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003184/0.009557, allocations: 132.7 kB / 447.3 MB, free: 484 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.716e-05/0.009624, allocations: 63.34 kB / 447.4 MB, free: 400 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.254e-05/0.009656, allocations: 8.062 kB / 447.4 MB, free: 392 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.009691, allocations: 8.5 kB / 447.4 MB, free: 384 kB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.009692, allocations: 3.938 kB / 447.4 MB, free: 380 kB / 366.1 MB Notification: Performance of Templates: time 0.2044/0.2141, allocations: 0.6357 MB / 448 MB, free: 19.19 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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.908084604889154]