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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_10_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.006576/0.006576, allocations: 99.34 kB / 15.73 MB, free: 6.039 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.001689/0.001689, allocations: 196 kB / 16.67 MB, free: 5.961 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.485/2.485, allocations: 437.1 MB / 0.7106 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 67.89 kB / 1.018 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2545, allocations: 151.6 MB / 1.166 GB, free: 7.18 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00179/0.2563, allocations: 0.8448 MB / 1.167 GB, free: 6.332 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000956/0.2573, allocations: 0.8819 MB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.807e-05/0.2574, allocations: 4 kB / 1.168 GB, free: 5.434 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.071e-05/0.2574, allocations: 15.81 kB / 1.168 GB, free: 5.418 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.154e-05/0.2575, allocations: 15.8 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001912/0.2577, allocations: 35.94 kB / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001749/0.2579, allocations: 119.6 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.258, allocations: 21.11 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.2582, allocations: 59.77 kB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.2583, allocations: 55.75 kB / 1.168 GB, free: 5.113 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.2583, allocations: 8 kB / 1.168 GB, free: 5.105 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.177e-05/0.2584, allocations: 12 kB / 1.168 GB, free: 5.094 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.046e-05/0.2584, allocations: 23.91 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.154e-05/0.2584, allocations: 47.73 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.2586, allocations: 119.7 kB / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2586, allocations: 0 / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2586, allocations: 7.938 kB / 1.168 GB, free: 4.898 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.2586, allocations: 0 / 1.168 GB, free: 4.898 MB / 0.92 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.0006394/0.2593, allocations: 454.8 kB / 1.169 GB, free: 4.402 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.2593, allocations: 8.031 kB / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.866e-05/0.2594, allocations: 34.75 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.464e-05/0.2594, allocations: 16.84 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.2599, allocations: 258.3 kB / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.2599, allocations: 384 / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.2599, allocations: 12.38 kB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.2602, allocations: 131.3 kB / 1.169 GB, free: 3.895 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.2602, allocations: 0 / 1.169 GB, free: 3.895 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.2602, allocations: 3.984 kB / 1.169 GB, free: 3.891 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.2602, allocations: 4 kB / 1.169 GB, free: 3.887 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000278/0.2605, allocations: 71.88 kB / 1.169 GB, free: 3.816 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005624/0.2611, allocations: 0.4971 MB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.2613, allocations: 115.8 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.2615, allocations: 58.53 kB / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.2615, allocations: 4 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.2615, allocations: 34.56 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.163e-06/0.2615, allocations: 4 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.0005437/0.2621, allocations: 153.5 kB / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/0.2622, allocations: 110.8 kB / 1.17 GB, free: 2.715 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.2623, allocations: 149.4 kB / 1.171 GB, free: 2.562 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.2623, allocations: 33.7 kB / 1.171 GB, free: 2.523 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.468e-05/0.2624, allocations: 108.3 kB / 1.171 GB, free: 2.41 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.044e-05/0.2624, allocations: 27.78 kB / 1.171 GB, free: 2.383 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.145e-05/0.2625, allocations: 29.7 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.2626, allocations: 322.8 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.2628, allocations: 39.97 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.2629, allocations: 85.11 kB / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.2632, allocations: 90.45 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2632, allocations: 3.938 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003484/0.2636, allocations: 145.5 kB / 1.171 GB, free: 1.633 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.2636, allocations: 14.64 kB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.2636, allocations: 0 / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.2636, allocations: 0 / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.2637, allocations: 19.98 kB / 1.171 GB, free: 1.602 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.319e-06/0.2637, allocations: 0 / 1.171 GB, free: 1.602 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.2639, allocations: 15.98 kB / 1.171 GB, free: 1.586 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.2639, allocations: 11.98 kB / 1.171 GB, free: 1.574 MB / 0.92 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 9.151e-05/0.264, allocations: 125.7 kB / 1.172 GB, free: 1.441 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.073e-05/0.264, allocations: 12.23 kB / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002452/0.2643, allocations: 97.81 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2643, allocations: 0 / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2643, allocations: 4 kB / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2643, allocations: 4 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000289/0.2646, allocations: 205.6 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2646, allocations: 0 / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.2647, allocations: 23.91 kB / 1.172 GB, free: 1.043 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.2647, allocations: 0 / 1.172 GB, free: 1.043 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.2648, allocations: 4 kB / 1.172 GB, free: 1.039 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2648, allocations: 0 / 1.172 GB, free: 1.039 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2648, allocations: 0 / 1.172 GB, free: 1.039 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004154/0.2652, allocations: 373.9 kB / 1.172 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.453e-05/0.2652, allocations: 89.02 kB / 1.172 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.2653, allocations: 4 kB / 1.172 GB, free: 0.5469 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.2655, allocations: 19.92 kB / 1.172 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.369e-05/0.2655, allocations: 27.95 kB / 1.172 GB, free: 0.5 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.2656, allocations: 3.938 kB / 1.172 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.617e-05/0.2656, allocations: 115.2 kB / 1.172 GB, free: 392 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2656, allocations: 0 / 1.172 GB, free: 392 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002894/0.2659, allocations: 12 kB / 1.172 GB, free: 380 kB / 0.92 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.0007299/0.2667, allocations: 0.9102 MB / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003432/0.267, allocations: 111.9 kB / 1.173 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.267, allocations: 0 / 1.173 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.2672, allocations: 43.97 kB / 1.174 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003836/0.2676, allocations: 15.94 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.2696, allocations: 1.805 MB / 1.175 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.2699, allocations: 0.6963 MB / 1.176 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.538e-05/0.27, allocations: 16.64 kB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.046e-05/0.2701, allocations: 39.36 kB / 1.176 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of SimCode: time 2.7e-07/0.2701, allocations: 4 kB / 1.176 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.067/1.337, allocations: 2.702 MB / 1.179 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.472/10.81, allocations: 4.656 kB / 1.179 GB, free: 9.973 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > 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