Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.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.001375/0.001375, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00154/0.00154, allocations: 214.6 kB / 22.25 MB, free: 5.078 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.292/3.292, allocations: 0.49 GB / 0.7951 GB, free: 33.42 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.002038/0.002038, allocations: 69.36 kB / 1.154 GB, free: 25.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3681, allocations: 176.1 MB / 1.326 GB, free: 1.848 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002746/0.3708, allocations: 0.8533 MB / 1.327 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001442/0.3723, allocations: 0.9328 MB / 1.328 GB, free: 52 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.64e-05/0.3724, allocations: 4 kB / 1.328 GB, free: 48 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.484e-05/0.3724, allocations: 7.875 kB / 1.328 GB, free: 40 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.3725, allocations: 19.78 kB / 1.328 GB, free: 20 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.3728, allocations: 43.97 kB / 1.328 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001961/0.373, allocations: 115.6 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.3731, allocations: 13.31 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.3734, allocations: 67.77 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.3735, allocations: 59.69 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.3735, allocations: 12 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.764e-05/0.3736, allocations: 12 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.35e-05/0.3736, allocations: 27.91 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.816e-05/0.3737, allocations: 43.73 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002611/0.3739, allocations: 127.7 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3739, allocations: 0 / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3739, allocations: 0 / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.297e-05/0.3739, allocations: 0 / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007853/0.3747, allocations: 377.7 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.3748, allocations: 8.031 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.134e-05/0.3748, allocations: 38.73 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002764/0.3751, allocations: 36.86 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005358/0.3756, allocations: 200.2 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.3757, allocations: 8.359 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.799e-05/0.3757, allocations: 8.375 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.376, allocations: 122.5 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.376, allocations: 4 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.376, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3761, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002878/0.3763, allocations: 79.86 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008285/0.3772, allocations: 472.2 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.3775, allocations: 115.8 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.3777, allocations: 50.61 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.3777, allocations: 11.94 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/0.3778, allocations: 34.5 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.143e-06/0.3778, allocations: 0 / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0006407/0.3784, allocations: 165.4 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.047e-05/0.3785, allocations: 102.8 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.3786, allocations: 151.8 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/0.3787, allocations: 33.7 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.3788, allocations: 112.5 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.289e-05/0.3788, allocations: 23.8 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.615e-05/0.3789, allocations: 29.7 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000184/0.3791, allocations: 326.8 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.3792, allocations: 39.97 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.3794, allocations: 85.11 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002912/0.3797, allocations: 90.45 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3797, allocations: 0 / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000372/0.3801, allocations: 145.8 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.3801, allocations: 4 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3801, allocations: 4 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.3801, allocations: 3.938 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.3803, allocations: 15.98 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.3803, allocations: 4 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.3804, allocations: 19.92 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.3804, allocations: 12 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001308/0.3806, allocations: 122.2 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.934e-05/0.3806, allocations: 11.95 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002649/0.3809, allocations: 85.98 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.3809, allocations: 4 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3809, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3809, allocations: 4 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003254/0.3812, allocations: 184.7 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3812, allocations: 4 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.3814, allocations: 19.92 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.3814, allocations: 0 / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.942e-05/0.3814, allocations: 4 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3814, allocations: 0 / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3814, allocations: 0 / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004574/0.3819, allocations: 369.9 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.963e-05/0.3819, allocations: 11.89 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.804e-05/0.3819, allocations: 8 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.3821, allocations: 15.97 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.543e-05/0.3822, allocations: 31.89 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.3822, allocations: 7.938 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.886e-05/0.3823, allocations: 113.5 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3823, allocations: 3.938 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003238/0.3826, allocations: 19.95 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0008276/0.3834, allocations: 0.8946 MB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003832/0.3838, allocations: 103.8 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3838, allocations: 0 / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.384, allocations: 47.91 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004876/0.3845, allocations: 15.36 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.3871, allocations: 1.796 MB / 1.335 GB, free: 8.289 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.3874, allocations: 0.7002 MB / 1.335 GB, free: 7.562 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.268e-05/0.3875, allocations: 21 kB / 1.335 GB, free: 7.543 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.811e-05/0.3876, allocations: 35.42 kB / 1.336 GB, free: 7.508 MB / 1.029 GB Notification: Performance of SimCode: time 4.3e-07/0.3876, allocations: 0 / 1.336 GB, free: 7.508 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03158/0.4192, allocations: 2.849 MB / 1.338 GB, free: 4.797 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.77, allocations: 21.59 kB / 1.338 GB, free: 4.781 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.631974208867177]