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.001733/0.001733, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002195/0.002195, allocations: 214.7 kB / 24.48 MB, free: 3.941 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.468/1.468, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.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.2346/0.2346, allocations: 46.97 MB / 361.6 MB, free: 4.094 MB / 286.1 MB " [Timeout remaining time 179] 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 0.00201/0.00201, allocations: 67.89 kB / 0.4973 GB, free: 7.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4034/0.4054, allocations: 66.04 MB / 0.5618 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003186/0.4086, allocations: 1.461 MB / 0.5632 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.4096, allocations: 455 kB / 0.5637 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.125e-05/0.4096, allocations: 0 / 0.5637 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.113e-05/0.4097, allocations: 3.938 kB / 0.5637 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.812e-05/0.4097, allocations: 7.922 kB / 0.5637 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.41, allocations: 27.92 kB / 0.5637 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001248/0.4101, allocations: 39.84 kB / 0.5637 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.4102, allocations: 7.984 kB / 0.5638 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.4103, allocations: 19.94 kB / 0.5638 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.288e-05/0.4104, allocations: 23.92 kB / 0.5638 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.4104, allocations: 3.938 kB / 0.5638 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.03e-05/0.4105, allocations: 15.97 kB / 0.5638 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/0.4105, allocations: 4 kB / 0.5638 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.825e-05/0.4105, allocations: 11.94 kB / 0.5638 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.4106, allocations: 39.53 kB / 0.5639 GB, free: 2.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4106, allocations: 0 / 0.5639 GB, free: 2.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4106, allocations: 0 / 0.5639 GB, free: 2.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.4106, allocations: 0 / 0.5639 GB, free: 2.016 MB / 398.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.0005302/0.4112, allocations: 281 kB / 0.5641 GB, free: 1.715 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.4112, allocations: 12.03 kB / 0.5641 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.4114, allocations: 12.92 kB / 0.5642 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.4116, allocations: 122.4 kB / 0.5643 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.667e-06/0.4116, allocations: 4.375 kB / 0.5643 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.4117, allocations: 4.375 kB / 0.5643 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.4119, allocations: 89.41 kB / 0.5644 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.4119, allocations: 0 / 0.5644 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.4119, allocations: 0 / 0.5644 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.4119, allocations: 0 / 0.5644 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.38e-05/0.412, allocations: 23.98 kB / 0.5644 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003885/0.4124, allocations: 208.5 kB / 0.5646 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.4125, allocations: 38.5 kB / 0.5646 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.08e-05/0.4125, allocations: 12.92 kB / 0.5646 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.4126, allocations: 3.984 kB / 0.5646 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.4126, allocations: 38.55 kB / 0.5647 GB, free: 1.062 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.4126, allocations: 0 / 0.5647 GB, free: 1.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002802/0.4129, allocations: 65.62 kB / 0.5647 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.4129, allocations: 81.09 kB / 0.5648 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.4131, allocations: 109.8 kB / 0.5649 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.4131, allocations: 29.7 kB / 0.565 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.76e-05/0.4132, allocations: 84.14 kB / 0.565 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.4132, allocations: 11.89 kB / 0.565 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.4132, allocations: 13.72 kB / 0.5651 GB, free: 0.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.4134, allocations: 318.8 kB / 0.5654 GB, free: 312 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.825e-05/0.4134, allocations: 8 kB / 0.5654 GB, free: 304 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.038e-05/0.4135, allocations: 51.53 kB / 0.5654 GB, free: 240 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.278e-05/0.4136, allocations: 28.88 kB / 0.5654 GB, free: 208 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4136, allocations: 0 / 0.5654 GB, free: 208 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001375/0.4137, allocations: 69.55 kB / 0.5655 GB, free: 132 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.4138, allocations: 4 kB / 0.5655 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.4138, allocations: 4 kB / 0.5655 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.4138, allocations: 0 / 0.5655 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.752e-05/0.4138, allocations: 4 kB / 0.5655 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.4139, allocations: 0 / 0.5655 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.14e-05/0.4139, allocations: 16.31 kB / 0.5655 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.4139, allocations: 0 / 0.5655 GB, free: 104 kB / 398.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 0.000138/0.4141, allocations: 121.8 kB / 0.5657 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.4141, allocations: 7.984 kB / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.4141, allocations: 7.562 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.4141, allocations: 0 / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.4141, allocations: 0 / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.4141, allocations: 0 / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.4143, allocations: 109.3 kB / 0.5658 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.4143, allocations: 3.938 kB / 0.5658 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.144e-05/0.4143, allocations: 8 kB / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.4143, allocations: 7.938 kB / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.4144, allocations: 7.922 kB / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.4144, allocations: 0 / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.4144, allocations: 0 / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001901/0.4145, allocations: 147.5 kB / 0.5659 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-06/0.4146, allocations: 3.938 kB / 0.5659 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.4146, allocations: 7.984 kB / 0.566 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.206e-05/0.4147, allocations: 4 kB / 0.566 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.623e-05/0.4147, allocations: 12.02 kB / 0.566 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.4147, allocations: 4 kB / 0.566 GB, free: 15.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.907e-05/0.4148, allocations: 91.27 kB / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4148, allocations: 0 / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000213/0.415, allocations: 4 kB / 0.5661 GB, free: 15.5 MB / 414.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.0001052/0.4151, allocations: 91.25 kB / 0.5661 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000164/0.4153, allocations: 27.92 kB / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.265e-05/0.4153, allocations: 4 kB / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.217e-05/0.4153, allocations: 15.98 kB / 0.5662 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.4156, allocations: 7.938 kB / 0.5662 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003729/0.4159, allocations: 123 kB / 0.5663 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.072e-05/0.416, allocations: 67.28 kB / 0.5664 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.167e-05/0.4161, allocations: 8.219 kB / 0.5664 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.574e-05/0.4161, allocations: 7.438 kB / 0.5664 GB, free: 15.11 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4161, allocations: 0 / 0.5664 GB, free: 15.11 MB / 414.1 MB Notification: Performance of Templates: time 0.003661/0.4198, allocations: 0.6646 MB / 0.567 GB, free: 14.45 MB / 414.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/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: 5.044079683997552]