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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008481/0.0008481, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.005381/0.005381, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.283/1.283, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.49/2.49, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003436/0.0003436, allocations: 15.12 kB / 0.9029 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2585, allocations: 159.6 MB / 1.059 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.000891/0.2594, allocations: 0.5662 MB / 1.059 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008336/0.2603, allocations: 0.8819 MB / 1.06 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.072e-05/0.2603, allocations: 4 kB / 1.06 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.954e-05/0.2604, allocations: 3.938 kB / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.823e-05/0.2604, allocations: 15.84 kB / 1.06 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001499/0.2606, allocations: 35.91 kB / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.2607, allocations: 103.7 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.413e-05/0.2608, allocations: 29.09 kB / 1.06 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.2609, allocations: 39.84 kB / 1.06 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.569e-05/0.261, allocations: 51.75 kB / 1.06 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.261, allocations: 8 kB / 1.06 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.442e-05/0.2611, allocations: 4 kB / 1.06 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.289e-05/0.2611, allocations: 15.92 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.315e-05/0.2611, allocations: 69.36 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.2613, allocations: 115.8 kB / 1.061 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2613, allocations: 4 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.365e-06/0.2613, allocations: 0 / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.397e-06/0.2613, allocations: 3.938 kB / 1.061 GB, free: 2.863 MB / 0.8106 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.0005528/0.2618, allocations: 435.1 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.2619, allocations: 15.97 kB / 1.061 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.28e-05/0.2619, allocations: 34.75 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.458e-05/0.262, allocations: 16.84 kB / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004517/0.2624, allocations: 269.9 kB / 1.061 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.2625, allocations: 8.375 kB / 1.061 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.2625, allocations: 4.375 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002584/0.2627, allocations: 133.7 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.2628, allocations: 4 kB / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2628, allocations: 0 / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2628, allocations: 0 / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002857/0.2631, allocations: 95.86 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005305/0.2636, allocations: 0.4971 MB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.2639, allocations: 119.8 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.264, allocations: 70.59 kB / 1.062 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.264, allocations: 3.938 kB / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.2641, allocations: 34.56 kB / 1.062 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.2641, allocations: 0 / 1.062 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005717/0.2647, allocations: 193.5 kB / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.2647, allocations: 102.8 kB / 1.063 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.728e-05/0.2648, allocations: 139.7 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.2648, allocations: 41.62 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.2e-05/0.2649, allocations: 104.2 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.2649, allocations: 27.64 kB / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.909e-05/0.265, allocations: 17.72 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.734e-05/0.2651, allocations: 330.8 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001553/0.2652, allocations: 55.92 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.2654, allocations: 93.05 kB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.2657, allocations: 118.7 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2657, allocations: 0 / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003599/0.2661, allocations: 153.4 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.2661, allocations: 4 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2661, allocations: 4 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.2661, allocations: 0 / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.2663, allocations: 27.97 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.2663, allocations: 0 / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.2664, allocations: 23.98 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.2664, allocations: 4 kB / 1.064 GB, free: 15.42 MB / 0.8262 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 8.641e-05/0.2665, allocations: 129.7 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.989e-05/0.2666, allocations: 7.906 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002537/0.2668, allocations: 97.89 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2668, allocations: 0 / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2669, allocations: 4 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.2669, allocations: 0 / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002711/0.2671, allocations: 205.5 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2671, allocations: 0 / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.2673, allocations: 32.03 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.2673, allocations: 8 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.2673, allocations: 0 / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2673, allocations: 3.938 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2673, allocations: 4 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004022/0.2677, allocations: 385.9 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.682e-05/0.2678, allocations: 92.94 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.2678, allocations: 0 / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.268, allocations: 23.98 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.176e-05/0.2681, allocations: 19.95 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.2681, allocations: 7.938 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.238e-05/0.2682, allocations: 126 kB / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2682, allocations: 0 / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002942/0.2685, allocations: 12 kB / 1.065 GB, free: 14.18 MB / 0.8262 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.0006367/0.2691, allocations: 0.9296 MB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003433/0.2695, allocations: 119.8 kB / 1.066 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2695, allocations: 0 / 1.066 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.2697, allocations: 60.36 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.2701, allocations: 22.59 kB / 1.066 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.272, allocations: 1.854 MB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.2722, allocations: 0.6965 MB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.16e-05/0.2723, allocations: 16.64 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.403e-05/0.2724, allocations: 39.42 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2724, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.034/1.307, allocations: 2.25 MB / 1.071 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002567/1.307, allocations: 206 kB / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.51/2.817, allocations: 8 kB / 1.071 GB, free: 7.922 MB / 0.8262 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) Reference file matches