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.002458/0.002458, allocations: 115.6 kB / 20.43 MB, free: 1.465 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.001669/0.001669, allocations: 212 kB / 23.74 MB, free: 4.688 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.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.2525/0.2525, allocations: 46.94 MB / 360.8 MB, free: 4.262 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.00205/0.00205, allocations: 67.89 kB / 0.4966 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3962, allocations: 66.02 MB / 0.5611 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003111/0.3993, allocations: 1.488 MB / 0.5626 GB, free: 2.914 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.4004, allocations: 486.7 kB / 0.563 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.309e-05/0.4005, allocations: 4 kB / 0.563 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.195e-05/0.4005, allocations: 7.938 kB / 0.563 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.671e-05/0.4006, allocations: 7.922 kB / 0.563 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.4009, allocations: 27.91 kB / 0.5631 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001279/0.401, allocations: 39.86 kB / 0.5631 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.4011, allocations: 7.984 kB / 0.5631 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.4012, allocations: 23.92 kB / 0.5631 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.465e-05/0.4013, allocations: 19.92 kB / 0.5632 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.375e-05/0.4013, allocations: 0 / 0.5632 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.841e-05/0.4014, allocations: 8 kB / 0.5632 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.954e-05/0.4014, allocations: 11.92 kB / 0.5632 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.07e-05/0.4014, allocations: 15.94 kB / 0.5632 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.4016, allocations: 39.53 kB / 0.5632 GB, free: 2.227 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.4016, allocations: 0 / 0.5632 GB, free: 2.227 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4016, allocations: 0 / 0.5632 GB, free: 2.227 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.4016, allocations: 4 kB / 0.5632 GB, free: 2.223 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.000535/0.4021, allocations: 272.9 kB / 0.5635 GB, free: 1.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.4021, allocations: 12.03 kB / 0.5635 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.4023, allocations: 16.86 kB / 0.5635 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.4025, allocations: 122.5 kB / 0.5636 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.819e-06/0.4026, allocations: 384 / 0.5636 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.4026, allocations: 384 / 0.5636 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.4028, allocations: 63.66 kB / 0.5637 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.4028, allocations: 0 / 0.5637 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.4028, allocations: 0 / 0.5637 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.4028, allocations: 3.984 kB / 0.5637 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.4029, allocations: 23.98 kB / 0.5637 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004282/0.4033, allocations: 239.9 kB / 0.564 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.4034, allocations: 34.5 kB / 0.564 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.286e-05/0.4035, allocations: 12.92 kB / 0.564 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.4035, allocations: 4 kB / 0.564 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.4035, allocations: 38.55 kB / 0.564 GB, free: 1.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.4035, allocations: 0 / 0.564 GB, free: 1.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003054/0.4038, allocations: 57.69 kB / 0.5641 GB, free: 1.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.4039, allocations: 81.09 kB / 0.5642 GB, free: 1.109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.404, allocations: 117.7 kB / 0.5643 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.4041, allocations: 25.7 kB / 0.5643 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.431e-05/0.4041, allocations: 88.14 kB / 0.5644 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.4041, allocations: 12.02 kB / 0.5644 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.986e-05/0.4042, allocations: 17.72 kB / 0.5644 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002423/0.4044, allocations: 318.8 kB / 0.5647 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.119e-05/0.4045, allocations: 8 kB / 0.5647 GB, free: 0.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.569e-05/0.4045, allocations: 25.7 kB / 0.5648 GB, free: 480 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.801e-05/0.4046, allocations: 28.78 kB / 0.5648 GB, free: 448 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.4046, allocations: 4.031 kB / 0.5648 GB, free: 444 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001373/0.4048, allocations: 61.81 kB / 0.5648 GB, free: 376 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.4048, allocations: 10.59 kB / 0.5649 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.4048, allocations: 0 / 0.5649 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.4048, allocations: 7.984 kB / 0.5649 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.094e-05/0.4049, allocations: 0 / 0.5649 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.4049, allocations: 0 / 0.5649 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.862e-05/0.405, allocations: 15.94 kB / 0.5649 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.405, allocations: 0 / 0.5649 GB, free: 344 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.0001174/0.4051, allocations: 129.7 kB / 0.565 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.4051, allocations: 0 / 0.565 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.162e-05/0.4051, allocations: 15.61 kB / 0.565 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4051, allocations: 0 / 0.565 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4051, allocations: 0 / 0.565 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.4051, allocations: 0 / 0.565 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001916/0.4053, allocations: 140.7 kB / 0.5652 GB, free: 0 / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.4053, allocations: 0 / 0.5652 GB, free: 0 / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.99e-05/0.4054, allocations: 4.047 kB / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.4054, allocations: 0 / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.4054, allocations: 4 kB / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.4054, allocations: 0 / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.4054, allocations: 3.938 kB / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.4056, allocations: 151.4 kB / 0.5653 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.316e-05/0.4056, allocations: 8.375 kB / 0.5653 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.4056, allocations: 0 / 0.5653 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.064e-05/0.4057, allocations: 12.02 kB / 0.5653 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.4058, allocations: 7.984 kB / 0.5653 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.4058, allocations: 3.938 kB / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.779e-05/0.4058, allocations: 91.27 kB / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4058, allocations: 0 / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002292/0.4061, allocations: 8 kB / 0.5654 GB, free: 15.7 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.0001084/0.4062, allocations: 87.25 kB / 0.5655 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001715/0.4063, allocations: 35.92 kB / 0.5656 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4064, allocations: 4 kB / 0.5656 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.788e-05/0.4064, allocations: 7.984 kB / 0.5656 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.4066, allocations: 15.88 kB / 0.5656 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003294/0.407, allocations: 123 kB / 0.5657 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.4073, allocations: 0.6768 MB / 0.5664 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.785e-05/0.4074, allocations: 8.062 kB / 0.5664 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.891e-05/0.4074, allocations: 11.42 kB / 0.5664 GB, free: 14.67 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4074, allocations: 0 / 0.5664 GB, free: 14.67 MB / 414.1 MB Notification: Performance of Templates: time 0.00338/0.4108, allocations: 0.5976 MB / 0.567 GB, free: 14.08 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/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: 5.422419317997992]