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.00128/0.00128, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001404/0.001404, allocations: 209 kB / 24.47 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.515/1.515, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.2495/0.2495, allocations: 46.96 MB / 361.6 MB, free: 4.129 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.002165/0.002165, allocations: 67.89 kB / 0.4973 GB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.4008, allocations: 66.04 MB / 0.5618 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002839/0.4036, allocations: 1.464 MB / 0.5632 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009361/0.4046, allocations: 451 kB / 0.5637 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.729e-05/0.4046, allocations: 0 / 0.5637 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.161e-05/0.4046, allocations: 3.938 kB / 0.5637 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-05/0.4047, allocations: 7.938 kB / 0.5637 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.405, allocations: 31.89 kB / 0.5637 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.4051, allocations: 39.86 kB / 0.5637 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.337e-05/0.4052, allocations: 3.938 kB / 0.5637 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.4053, allocations: 23.97 kB / 0.5638 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.45e-05/0.4054, allocations: 15.92 kB / 0.5638 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.4054, allocations: 4 kB / 0.5638 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.655e-05/0.4054, allocations: 8 kB / 0.5638 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.706e-05/0.4054, allocations: 11.94 kB / 0.5638 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.803e-05/0.4055, allocations: 15.92 kB / 0.5638 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001206/0.4056, allocations: 34.7 kB / 0.5639 GB, free: 2.074 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4056, allocations: 0 / 0.5639 GB, free: 2.074 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.4056, allocations: 0 / 0.5639 GB, free: 2.074 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.4056, allocations: 0 / 0.5639 GB, free: 2.074 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.0004706/0.4061, allocations: 277.9 kB / 0.5641 GB, free: 1.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.4061, allocations: 12.02 kB / 0.5641 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.4063, allocations: 12.94 kB / 0.5641 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.4065, allocations: 126.4 kB / 0.5643 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.4065, allocations: 384 / 0.5643 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-06/0.4065, allocations: 384 / 0.5643 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.4067, allocations: 89.41 kB / 0.5644 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.4067, allocations: 0 / 0.5644 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.4067, allocations: 0 / 0.5644 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.4067, allocations: 0 / 0.5644 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.665e-05/0.4068, allocations: 19.98 kB / 0.5644 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003602/0.4072, allocations: 220.5 kB / 0.5646 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.228e-05/0.4073, allocations: 34.45 kB / 0.5646 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.043e-05/0.4073, allocations: 16.91 kB / 0.5646 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.4073, allocations: 0 / 0.5646 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.4074, allocations: 34.56 kB / 0.5647 GB, free: 1.129 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.4074, allocations: 0 / 0.5647 GB, free: 1.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002653/0.4076, allocations: 65.61 kB / 0.5647 GB, free: 1.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.4077, allocations: 77.23 kB / 0.5648 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.752e-05/0.4078, allocations: 121.8 kB / 0.5649 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.4078, allocations: 25.7 kB / 0.5649 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.782e-05/0.4079, allocations: 84.14 kB / 0.565 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.4079, allocations: 15.88 kB / 0.565 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.4079, allocations: 17.72 kB / 0.5651 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4081, allocations: 310.8 kB / 0.5654 GB, free: 376 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.225e-05/0.4081, allocations: 15.98 kB / 0.5654 GB, free: 360 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.204e-05/0.4082, allocations: 51.41 kB / 0.5654 GB, free: 296 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.504e-05/0.4083, allocations: 28.78 kB / 0.5654 GB, free: 264 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4083, allocations: 4.031 kB / 0.5654 GB, free: 260 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001327/0.4084, allocations: 57.62 kB / 0.5655 GB, free: 196 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.4084, allocations: 4 kB / 0.5655 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.4084, allocations: 0 / 0.5655 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.4084, allocations: 144 / 0.5655 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.956e-05/0.4085, allocations: 7.984 kB / 0.5655 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.4085, allocations: 0 / 0.5655 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.693e-05/0.4086, allocations: 23.92 kB / 0.5655 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.4086, allocations: 4 kB / 0.5655 GB, free: 156 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 9.317e-05/0.4087, allocations: 117.8 kB / 0.5657 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.4087, allocations: 0 / 0.5657 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.884e-05/0.4087, allocations: 11.62 kB / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.4087, allocations: 0 / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4087, allocations: 0 / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.4088, allocations: 0 / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.4089, allocations: 109.3 kB / 0.5658 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.4089, allocations: 8.312 kB / 0.5658 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.773e-05/0.409, allocations: 7.922 kB / 0.5658 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.409, allocations: 0 / 0.5658 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.409, allocations: 8 kB / 0.5658 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.409, allocations: 3.938 kB / 0.5658 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.409, allocations: 3.984 kB / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001908/0.4092, allocations: 151.5 kB / 0.5659 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.322e-05/0.4092, allocations: 7.938 kB / 0.5659 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.4092, allocations: 0 / 0.5659 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.449e-05/0.4093, allocations: 7.984 kB / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.527e-05/0.4093, allocations: 11.92 kB / 0.566 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.4093, allocations: 0 / 0.566 GB, free: 15.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.476e-05/0.4094, allocations: 91.31 kB / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4094, allocations: 0 / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002245/0.4096, allocations: 8 kB / 0.5661 GB, free: 15.55 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.0001059/0.4097, allocations: 99.17 kB / 0.5662 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001545/0.4099, allocations: 27.98 kB / 0.5662 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4099, allocations: 0 / 0.5662 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.805e-05/0.4099, allocations: 8 kB / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.4101, allocations: 11.92 kB / 0.5662 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003458/0.4105, allocations: 156.7 kB / 0.5664 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.518e-05/0.4106, allocations: 63.34 kB / 0.5664 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.4106, allocations: 11.44 kB / 0.5664 GB, free: 15.12 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4106, allocations: 0 / 0.5664 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Templates: time 0.002458/0.4131, allocations: 0.6755 MB / 0.5671 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 -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: 7.537270926870406]