Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008596/0.008596, allocations: 99.97 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 193 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.621/2.621, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 71.91 kB / 1.054 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.035/1.036, allocations: 157.4 MB / 1.207 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002444/1.039, allocations: 0.8535 MB / 1.208 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001258/1.04, allocations: 0.8857 MB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.025e-05/1.04, allocations: 0 / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.682e-05/1.04, allocations: 11.81 kB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000122/1.041, allocations: 19.8 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000229/1.041, allocations: 39.94 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001718/1.041, allocations: 119.6 kB / 1.209 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/1.041, allocations: 21.11 kB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/1.041, allocations: 51.83 kB / 1.209 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/1.041, allocations: 55.77 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.45e-05/1.041, allocations: 12 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 2.049e-05/1.042, allocations: 12 kB / 1.209 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.322e-05/1.042, allocations: 23.89 kB / 1.209 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.78e-05/1.042, allocations: 47.73 kB / 1.209 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001875/1.042, allocations: 125.8 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/1.042, allocations: 0 / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.014e-06/1.042, allocations: 0 / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.54e-06/1.042, allocations: 0 / 1.21 GB, free: 11.27 MB / 0.9356 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.0007145/1.043, allocations: 446.9 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/1.043, allocations: 8.031 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.642e-05/1.043, allocations: 30.75 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.706e-05/1.043, allocations: 16.75 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006178/1.043, allocations: 260.1 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.096e-05/1.043, allocations: 12.36 kB / 1.21 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/1.043, allocations: 16.25 kB / 1.21 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003314/1.044, allocations: 119.9 kB / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/1.044, allocations: 0 / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/1.044, allocations: 4 kB / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/1.044, allocations: 4 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/1.044, allocations: 71.88 kB / 1.21 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008404/1.045, allocations: 0.497 MB / 1.211 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/1.045, allocations: 111.8 kB / 1.211 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/1.045, allocations: 58.59 kB / 1.211 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/1.046, allocations: 4 kB / 1.211 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/1.046, allocations: 34.56 kB / 1.211 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.993e-06/1.046, allocations: 0 / 1.211 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.0006207/1.046, allocations: 157.6 kB / 1.211 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/1.046, allocations: 114.7 kB / 1.211 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/1.046, allocations: 146.1 kB / 1.212 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/1.046, allocations: 25.7 kB / 1.212 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.621e-05/1.047, allocations: 112.3 kB / 1.212 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.777e-05/1.047, allocations: 23.73 kB / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.554e-05/1.047, allocations: 29.64 kB / 1.212 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001155/1.047, allocations: 326.8 kB / 1.212 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/1.047, allocations: 39.97 kB / 1.212 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/1.047, allocations: 81.11 kB / 1.212 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/1.047, allocations: 98.45 kB / 1.212 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.047, allocations: 0 / 1.212 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003512/1.048, allocations: 133.7 kB / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/1.048, allocations: 9.875 kB / 1.212 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/1.048, allocations: 4 kB / 1.212 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/1.048, allocations: 4.031 kB / 1.212 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/1.048, allocations: 32.03 kB / 1.212 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/1.048, allocations: 0 / 1.212 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/1.048, allocations: 11.98 kB / 1.212 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/1.048, allocations: 4 kB / 1.212 GB, free: 7.965 MB / 0.9356 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.0001148/1.048, allocations: 137.6 kB / 1.213 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.373e-05/1.048, allocations: 15.81 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002476/1.049, allocations: 85.89 kB / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/1.049, allocations: 0 / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/1.049, allocations: 0 / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/1.049, allocations: 4 kB / 1.213 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002969/1.049, allocations: 197.6 kB / 1.213 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/1.049, allocations: 0 / 1.213 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/1.049, allocations: 23.91 kB / 1.213 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/1.049, allocations: 4 kB / 1.213 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/1.049, allocations: 11.94 kB / 1.213 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.049, allocations: 0 / 1.213 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/1.049, allocations: 0 / 1.213 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004074/1.049, allocations: 377.9 kB / 1.213 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/1.05, allocations: 88.92 kB / 1.213 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/1.05, allocations: 7.875 kB / 1.213 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/1.05, allocations: 15.98 kB / 1.213 GB, free: 6.902 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.758e-05/1.05, allocations: 27.95 kB / 1.213 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/1.05, allocations: 3.938 kB / 1.213 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.628e-05/1.05, allocations: 115.2 kB / 1.214 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3e-07/1.05, allocations: 0 / 1.214 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003215/1.05, allocations: 16 kB / 1.214 GB, free: 6.742 MB / 0.9356 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.0007352/1.051, allocations: 0.9023 MB / 1.214 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003562/1.051, allocations: 99.86 kB / 1.215 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/1.051, allocations: 0 / 1.215 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001572/1.052, allocations: 43.97 kB / 1.215 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004762/1.052, allocations: 19.88 kB / 1.215 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/1.054, allocations: 1.808 MB / 1.216 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/1.055, allocations: 0.7002 MB / 1.217 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.672e-05/1.055, allocations: 20.91 kB / 1.217 GB, free: 2.992 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.354e-05/1.055, allocations: 39.36 kB / 1.217 GB, free: 2.953 MB / 0.9356 GB Notification: Performance of SimCode: time 3.41e-07/1.055, allocations: 4 kB / 1.217 GB, free: 2.949 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02118/1.076, allocations: 2.719 MB / 1.22 GB, free: 340 kB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/8.72, allocations: 3.969 kB / 1.22 GB, free: 340 kB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hysteresis.u,hysteresis.y,hysteresis1.u,hysteresis1.y,hysteresis2.u,hysteresis2.y Variables in the result:hysteresis.pre_y_start,hysteresis.u,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,hysteresis1.pre_y_start,hysteresis1.u,hysteresis1.uHigh,hysteresis1.uLow,hysteresis1.y,hysteresis2.pre_y_start,hysteresis2.u,hysteresis2.uHigh,hysteresis2.uLow,hysteresis2.y,time