Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 195.9 kB / 16.79 MB, free: 6.809 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.416/1.416, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.665/2.665, allocations: 437 MB / 0.7106 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002591/0.002591, allocations: 67.91 kB / 0.8692 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7519/0.7545, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00251/0.757, allocations: 0.9146 MB / 1.018 GB, free: 1.867 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001214/0.7583, allocations: 0.8856 MB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.167e-05/0.7584, allocations: 0 / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 6.799e-05/0.7585, allocations: 3.938 kB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.7586, allocations: 19.86 kB / 1.019 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.7588, allocations: 31.97 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.759, allocations: 111.7 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.7592, allocations: 25.09 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.7593, allocations: 51.8 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.707e-05/0.7595, allocations: 51.73 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.7595, allocations: 8 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 2.096e-05/0.7595, allocations: 4 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.375e-05/0.7596, allocations: 19.92 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.335e-05/0.7596, allocations: 51.7 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.7598, allocations: 81.8 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.7598, allocations: 0 / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.256e-05/0.7598, allocations: 0 / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.7598, allocations: 3.938 kB / 1.019 GB, free: 0.5117 MB / 0.7637 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.0007637/0.7606, allocations: 442.9 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.7606, allocations: 8.031 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.326e-05/0.7607, allocations: 12.84 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005505/0.7612, allocations: 263.9 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.7613, allocations: 12.38 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.7613, allocations: 4.375 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.7616, allocations: 116.8 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.7616, allocations: 7.875 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.7617, allocations: 4 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.7617, allocations: 4 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000266/0.762, allocations: 79.84 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006715/0.7626, allocations: 0.4971 MB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000272/0.7629, allocations: 111.8 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.7631, allocations: 62.59 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.7631, allocations: 0 / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.7632, allocations: 30.56 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.7632, allocations: 0 / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0006067/0.7638, allocations: 169.4 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.7638, allocations: 102.8 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.764, allocations: 151.8 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.764, allocations: 29.69 kB / 1.022 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/0.7641, allocations: 108.6 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.682e-05/0.7641, allocations: 23.64 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.744e-05/0.7642, allocations: 29.7 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.7643, allocations: 322.8 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.7645, allocations: 39.97 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.7647, allocations: 85.11 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.7649, allocations: 98.45 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.7649, allocations: 3.938 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003646/0.7653, allocations: 137.5 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.7653, allocations: 9.562 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.7654, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.7654, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.7655, allocations: 19.92 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.7655, allocations: 4 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.7657, allocations: 19.89 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.7657, allocations: 11.98 kB / 1.022 GB, free: 13.23 MB / 0.7794 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.0001118/0.7658, allocations: 130.2 kB / 1.023 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.7659, allocations: 7.906 kB / 1.023 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002763/0.7662, allocations: 90.16 kB / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.7662, allocations: 4.031 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.7662, allocations: 0 / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.7662, allocations: 4 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.7665, allocations: 205.5 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.7665, allocations: 4 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.7667, allocations: 19.97 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.7667, allocations: 0 / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.7667, allocations: 8 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.7667, allocations: 0 / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.7667, allocations: 3.938 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004379/0.7671, allocations: 373.8 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.464e-05/0.7672, allocations: 85.02 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.7672, allocations: 4 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.7675, allocations: 19.98 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.818e-05/0.7675, allocations: 19.95 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.7676, allocations: 8.047 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.345e-05/0.7677, allocations: 113.2 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.4e-07/0.7677, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003148/0.768, allocations: 12 kB / 1.023 GB, free: 12.04 MB / 0.7794 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.0001575/0.7682, allocations: 111.2 kB / 1.024 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003869/0.7685, allocations: 103.9 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7686, allocations: 0 / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.7687, allocations: 47.91 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.7692, allocations: 15.94 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004908/0.7697, allocations: 263 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.7701, allocations: 0.7043 MB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.163e-05/0.7701, allocations: 23.36 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of SimCode: time 4.11e-07/0.7701, allocations: 0 / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of Templates: time 0.003491/0.7736, allocations: 1.481 MB / 1.026 GB, free: 9.227 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches