Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.00131/0.00131, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001433/0.001433, allocations: 168.8 kB / 24.82 MB, free: 9.273 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.9023/0.9023, allocations: 177.1 MB / 205.3 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2489/0.2489, allocations: 32.81 MB / 294.6 MB, free: 1.246 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.012e-06/1.012e-06, allocations: 0 / 376.5 MB, free: 4.434 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.625e-05/1.726e-05, allocations: 2.312 kB / 376.5 MB, free: 4.43 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002255/0.002272, allocations: 1.501 MB / 378 MB, free: 2.922 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006706/0.002942, allocations: 474.7 kB / 378.4 MB, free: 2.453 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.151e-05/0.002984, allocations: 3.938 kB / 378.4 MB, free: 2.449 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.891e-05/0.003003, allocations: 4 kB / 378.4 MB, free: 2.445 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.93e-05/0.003042, allocations: 7.875 kB / 378.4 MB, free: 2.438 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.003192, allocations: 27.95 kB / 378.5 MB, free: 2.41 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.988e-05/0.003271, allocations: 39.8 kB / 378.5 MB, free: 2.371 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.985e-05/0.003331, allocations: 7.938 kB / 378.5 MB, free: 2.363 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.003434, allocations: 31.91 kB / 378.5 MB, free: 2.332 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.408e-05/0.003478, allocations: 15.97 kB / 378.6 MB, free: 2.316 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.003492, allocations: 4 kB / 378.6 MB, free: 2.312 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.121e-05/0.003523, allocations: 4 kB / 378.6 MB, free: 2.309 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.144e-05/0.003535, allocations: 7.938 kB / 378.6 MB, free: 2.301 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.478e-05/0.00355, allocations: 11.98 kB / 378.6 MB, free: 2.289 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 7.934e-05/0.003629, allocations: 31.91 kB / 378.6 MB, free: 2.258 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.003631, allocations: 0 / 378.6 MB, free: 2.258 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.003633, allocations: 7.922 kB / 378.6 MB, free: 2.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.285e-06/0.003635, allocations: 0 / 378.6 MB, free: 2.25 MB / 346.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.0002861/0.003921, allocations: 372.5 kB / 379 MB, free: 1.852 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.003953, allocations: 12.03 kB / 379 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.114e-05/0.004044, allocations: 12.92 kB / 379 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.004148, allocations: 128.4 kB / 379.1 MB, free: 1.676 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.004156, allocations: 8.359 kB / 379.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-06/0.004164, allocations: 4.375 kB / 379.1 MB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.431e-05/0.004258, allocations: 100 kB / 379.2 MB, free: 1.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.707e-06/0.004262, allocations: 192 / 379.2 MB, free: 1.543 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-06/0.004267, allocations: 384 / 379.2 MB, free: 1.543 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.004272, allocations: 3.938 kB / 379.2 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.742e-05/0.004289, allocations: 7.938 kB / 379.3 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001602/0.004449, allocations: 240.4 kB / 379.5 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.324e-05/0.004483, allocations: 27.06 kB / 379.5 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.137e-05/0.004494, allocations: 15.75 kB / 379.5 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.004505, allocations: 3.984 kB / 379.5 MB, free: 1.207 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.672e-05/0.004522, allocations: 37.39 kB / 379.6 MB, free: 1.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 5.31e-07/0.004522, allocations: 0 / 379.6 MB, free: 1.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 8.296e-05/0.004605, allocations: 49.53 kB / 379.6 MB, free: 1.105 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.004631, allocations: 77.11 kB / 379.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.907e-05/0.00469, allocations: 169.9 kB / 379.9 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.004701, allocations: 33.7 kB / 379.9 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.576e-05/0.004737, allocations: 130.9 kB / 380 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.116e-05/0.004748, allocations: 7.953 kB / 380 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.352e-05/0.004771, allocations: 23.5 kB / 380.1 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.718e-05/0.004868, allocations: 0.4884 MB / 380.5 MB, free: 120 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.244e-06/0.004876, allocations: 0 / 380.5 MB, free: 120 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.474e-05/0.0049, allocations: 53.06 kB / 380.6 MB, free: 52 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.023e-05/0.004921, allocations: 19.61 kB / 380.6 MB, free: 28 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.004922, allocations: 0 / 380.6 MB, free: 28 kB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.916e-05/0.004971, allocations: 41.69 kB / 380.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.164e-06/0.004978, allocations: 8 kB / 380.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.004981, allocations: 3.938 kB / 380.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.092e-06/0.004987, allocations: 0 / 380.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.08e-05/0.005018, allocations: 7.938 kB / 380.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-06/0.005019, allocations: 4.031 kB / 380.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.966e-05/0.005039, allocations: 7.984 kB / 380.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.855e-06/0.005042, allocations: 0 / 380.7 MB, free: 15.95 MB / 362.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.025e-05/0.005092, allocations: 156.6 kB / 380.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.231e-05/0.005114, allocations: 3.953 kB / 380.8 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.522e-05/0.00513, allocations: 15.56 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.005131, allocations: 3.938 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.82e-07/0.005132, allocations: 144 / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.005134, allocations: 3.984 kB / 380.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.401e-05/0.005208, allocations: 97.25 kB / 381 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.005209, allocations: 4 kB / 381 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.074e-05/0.00522, allocations: 4 kB / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.005221, allocations: 4 kB / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-06/0.005224, allocations: 0 / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.81e-07/0.005225, allocations: 0 / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.005228, allocations: 11.92 kB / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.959e-05/0.005298, allocations: 183.9 kB / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.732e-06/0.005305, allocations: 11.94 kB / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.178e-06/0.005314, allocations: 0 / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.312e-05/0.005347, allocations: 4.031 kB / 381.2 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.409e-05/0.005371, allocations: 15.92 kB / 381.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-06/0.005373, allocations: 0 / 381.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.169e-05/0.005405, allocations: 135.1 kB / 381.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005405, allocations: 0 / 381.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001281/0.005533, allocations: 8 kB / 381.3 MB, free: 15.25 MB / 362.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 4.67e-05/0.00558, allocations: 91.25 kB / 381.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 4.469e-05/0.005624, allocations: 19.67 kB / 381.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.92e-07/0.005625, allocations: 0 / 381.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.583e-05/0.005641, allocations: 15.69 kB / 381.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.005764, allocations: 8 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002571/0.006021, allocations: 138 kB / 381.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.897e-05/0.00605, allocations: 55.36 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.582e-05/0.006066, allocations: 4 kB / 381.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.489e-05/0.006111, allocations: 82.12 kB / 381.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.006111, allocations: 0 / 381.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of Templates: time 0.001526/0.007637, allocations: 0.6953 MB / 382.4 MB, free: 14.08 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.728634302970022]