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.001879/0.001879, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 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.002031/0.002031, allocations: 168.6 kB / 24.5 MB, free: 3.453 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.512/1.512, allocations: 177.2 MB / 204.9 MB, free: 9.043 MB / 190.1 MB " [Timeout remaining time 178] 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.2059/0.2059, allocations: 32.81 MB / 294.1 MB, free: 48 kB / 270.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 71.89 kB / 440.6 MB, free: 9.477 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3865/0.3888, allocations: 65.44 MB / 0.4941 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002525/0.3913, allocations: 1.466 MB / 0.4956 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007502/0.3921, allocations: 455.2 kB / 0.496 GB, free: 30.13 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.56e-05/0.3921, allocations: 4 kB / 0.496 GB, free: 30.13 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.862e-05/0.3921, allocations: 3.938 kB / 0.496 GB, free: 30.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.986e-05/0.3922, allocations: 7.406 kB / 0.496 GB, free: 30.12 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.3924, allocations: 33.17 kB / 0.496 GB, free: 30.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 9.961e-05/0.3925, allocations: 34.89 kB / 0.4961 GB, free: 30.09 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.481e-05/0.3926, allocations: 2.938 kB / 0.4961 GB, free: 30.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.3928, allocations: 24.98 kB / 0.4961 GB, free: 30.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.488e-05/0.3928, allocations: 25.69 kB / 0.4961 GB, free: 30.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.3928, allocations: 0 / 0.4961 GB, free: 30.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.365e-05/0.3929, allocations: 10.28 kB / 0.4961 GB, free: 30.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.722e-05/0.3929, allocations: 11.31 kB / 0.4962 GB, free: 30.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.722e-05/0.3929, allocations: 13.84 kB / 0.4962 GB, free: 30.04 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.393, allocations: 35.27 kB / 0.4962 GB, free: 30.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3931, allocations: 0 / 0.4962 GB, free: 30.02 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3931, allocations: 0 / 0.4962 GB, free: 30.02 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.3931, allocations: 3.094 kB / 0.4962 GB, free: 30.02 MB / 446.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.0004139/0.3935, allocations: 279.4 kB / 0.4965 GB, free: 29.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.3935, allocations: 6.469 kB / 0.4965 GB, free: 29.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.3937, allocations: 17.33 kB / 0.4965 GB, free: 29.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.3938, allocations: 119.8 kB / 0.4966 GB, free: 29.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.3938, allocations: 384 / 0.4966 GB, free: 29.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.3939, allocations: 3.438 kB / 0.4966 GB, free: 29.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001589/0.394, allocations: 92.89 kB / 0.4967 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.394, allocations: 0 / 0.4967 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.394, allocations: 3 kB / 0.4967 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.394, allocations: 0 / 0.4967 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.512e-05/0.3941, allocations: 19.67 kB / 0.4967 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003065/0.3944, allocations: 211.3 kB / 0.4969 GB, free: 29.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.777e-05/0.3945, allocations: 39 kB / 0.497 GB, free: 29.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.121e-05/0.3946, allocations: 10.61 kB / 0.497 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.3946, allocations: 6.578 kB / 0.497 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.3946, allocations: 34.56 kB / 0.497 GB, free: 29.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3946, allocations: 0 / 0.497 GB, free: 29.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.000226/0.3948, allocations: 57.7 kB / 0.4971 GB, free: 29.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.3949, allocations: 77.23 kB / 0.4971 GB, free: 29.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.258e-05/0.3949, allocations: 117.5 kB / 0.4972 GB, free: 28.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.3949, allocations: 32.64 kB / 0.4973 GB, free: 28.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.925e-05/0.395, allocations: 87.66 kB / 0.4974 GB, free: 28.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.395, allocations: 10.89 kB / 0.4974 GB, free: 28.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.395, allocations: 20.91 kB / 0.4974 GB, free: 28.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.553e-05/0.3951, allocations: 318.1 kB / 0.4977 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.575e-05/0.3951, allocations: 13.09 kB / 0.4977 GB, free: 28.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.854e-05/0.3952, allocations: 51.84 kB / 0.4978 GB, free: 28.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.103e-05/0.3952, allocations: 24.25 kB / 0.4978 GB, free: 28.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3952, allocations: 4.031 kB / 0.4978 GB, free: 28.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001062/0.3953, allocations: 58.3 kB / 0.4978 GB, free: 28.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.3954, allocations: 5.969 kB / 0.4978 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3954, allocations: 0 / 0.4978 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3954, allocations: 3.938 kB / 0.4978 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.256e-05/0.3954, allocations: 6.109 kB / 0.4979 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.3954, allocations: 0 / 0.4979 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.51e-05/0.3955, allocations: 13.59 kB / 0.4979 GB, free: 28.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3955, allocations: 3.219 kB / 0.4979 GB, free: 28.39 MB / 446.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 5.435e-05/0.3956, allocations: 120.8 kB / 0.498 GB, free: 28.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.3956, allocations: 0 / 0.498 GB, free: 28.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.369e-05/0.3956, allocations: 10.72 kB / 0.498 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3956, allocations: 3.469 kB / 0.498 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3956, allocations: 0 / 0.498 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.3956, allocations: 0 / 0.498 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.71e-05/0.3957, allocations: 107 kB / 0.4981 GB, free: 28.13 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3957, allocations: 3.938 kB / 0.4981 GB, free: 28.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.3957, allocations: 7.094 kB / 0.4981 GB, free: 28.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.3957, allocations: 0 / 0.4981 GB, free: 28.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.3958, allocations: 10.53 kB / 0.4981 GB, free: 28.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3958, allocations: 0 / 0.4981 GB, free: 28.12 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3958, allocations: 0 / 0.4981 GB, free: 28.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001316/0.3959, allocations: 152.4 kB / 0.4983 GB, free: 27.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.546e-06/0.3959, allocations: 8.078 kB / 0.4983 GB, free: 27.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.3959, allocations: 3.094 kB / 0.4983 GB, free: 27.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.95e-05/0.396, allocations: 6.562 kB / 0.4983 GB, free: 27.97 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.483e-05/0.396, allocations: 10.34 kB / 0.4983 GB, free: 27.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.396, allocations: 3.031 kB / 0.4983 GB, free: 27.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.578e-05/0.3961, allocations: 96.64 kB / 0.4984 GB, free: 27.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3961, allocations: 0 / 0.4984 GB, free: 27.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002163/0.3963, allocations: 6.062 kB / 0.4984 GB, free: 27.88 MB / 446.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 7.966e-05/0.3964, allocations: 95.81 kB / 0.4985 GB, free: 27.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.3965, allocations: 30.28 kB / 0.4985 GB, free: 27.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3965, allocations: 0 / 0.4985 GB, free: 27.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.386e-05/0.3966, allocations: 13.25 kB / 0.4985 GB, free: 27.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.3968, allocations: 7.938 kB / 0.4985 GB, free: 27.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002608/0.397, allocations: 134.7 kB / 0.4987 GB, free: 27.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.381e-05/0.3971, allocations: 64.05 kB / 0.4987 GB, free: 27.58 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.876e-05/0.3971, allocations: 0 / 0.4987 GB, free: 27.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.967e-05/0.3972, allocations: 15 kB / 0.4987 GB, free: 27.57 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3972, allocations: 0 / 0.4987 GB, free: 27.57 MB / 446.1 MB Notification: Performance of Templates: time 0.002857/0.4, allocations: 0.6223 MB / 0.4993 GB, free: 27.49 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.0809296648949385]