Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",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.008662/0.008662, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.002215/0.002216, allocations: 199.3 kB / 16.68 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.713/2.713, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 63.89 kB / 1.054 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9592/0.9607, allocations: 157.4 MB / 1.207 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003771/0.9645, allocations: 1.785 MB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001895/0.9664, allocations: 0.8299 MB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.9666, allocations: 4 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.9668, allocations: 15.8 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003376/0.9672, allocations: 39.72 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005828/0.9678, allocations: 159.1 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004217/0.9682, allocations: 219.6 kB / 1.21 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.9684, allocations: 37.44 kB / 1.21 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.9686, allocations: 79.75 kB / 1.21 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002318/0.9688, allocations: 83.67 kB / 1.21 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.041e-05/0.9689, allocations: 16 kB / 1.21 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.969, allocations: 31.98 kB / 1.21 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.515e-05/0.9691, allocations: 39.83 kB / 1.21 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.9692, allocations: 63.72 kB / 1.211 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.9695, allocations: 217.5 kB / 1.211 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.9695, allocations: 0 / 1.211 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.9696, allocations: 4 kB / 1.211 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.9696, allocations: 0 / 1.211 GB, free: 9.965 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001003/0.9706, allocations: 476.5 kB / 1.211 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.9706, allocations: 8.031 kB / 1.211 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.118e-05/0.9707, allocations: 38.75 kB / 1.211 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.966e-05/0.9708, allocations: 16.75 kB / 1.211 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.9712, allocations: 244.7 kB / 1.212 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.9712, allocations: 8.375 kB / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.224e-05/0.9713, allocations: 12.31 kB / 1.212 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.9715, allocations: 89.59 kB / 1.212 GB, free: 8.984 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.9715, allocations: 0 / 1.212 GB, free: 8.984 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.9715, allocations: 0 / 1.212 GB, free: 8.984 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.9715, allocations: 8 kB / 1.212 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.9717, allocations: 59.06 kB / 1.212 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007921/0.9725, allocations: 444.4 kB / 1.212 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.9727, allocations: 90.5 kB / 1.212 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.629e-05/0.9727, allocations: 28.89 kB / 1.212 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.9727, allocations: 7.984 kB / 1.212 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.9729, allocations: 91.28 kB / 1.212 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.9729, allocations: 0 / 1.212 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0003107/0.9732, allocations: 133.5 kB / 1.212 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.9733, allocations: 55.34 kB / 1.212 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.9735, allocations: 179.3 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.9736, allocations: 33.7 kB / 1.213 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.151e-05/0.9736, allocations: 108 kB / 1.213 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.244e-05/0.9737, allocations: 27.7 kB / 1.213 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.963e-05/0.9738, allocations: 41.7 kB / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.9739, allocations: 330.8 kB / 1.213 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.974, allocations: 47.98 kB / 1.213 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.9742, allocations: 78.53 kB / 1.213 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/0.9744, allocations: 132.1 kB / 1.213 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.9744, allocations: 4 kB / 1.213 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003843/0.9748, allocations: 203.2 kB / 1.214 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/0.9748, allocations: 37.69 kB / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.9748, allocations: 0 / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.9749, allocations: 480 / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.975, allocations: 27.92 kB / 1.214 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.975, allocations: 0 / 1.214 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002418/0.9753, allocations: 47.86 kB / 1.214 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.9753, allocations: 4 kB / 1.214 GB, free: 6.637 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: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * 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.0001172/0.9754, allocations: 137.7 kB / 1.214 GB, free: 6.492 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.458e-05/0.9755, allocations: 11.81 kB / 1.214 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.9755, allocations: 17.39 kB / 1.214 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.9755, allocations: 3.938 kB / 1.214 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.9755, allocations: 0 / 1.214 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.9755, allocations: 0 / 1.214 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.9758, allocations: 233.7 kB / 1.214 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.9758, allocations: 4 kB / 1.214 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.613e-05/0.9758, allocations: 8 kB / 1.214 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.135e-06/0.9759, allocations: 0 / 1.214 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.9759, allocations: 0 / 1.214 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.9759, allocations: 3.938 kB / 1.214 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.9759, allocations: 0 / 1.214 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002648/0.9762, allocations: 172.9 kB / 1.214 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.348e-05/0.9763, allocations: 96.94 kB / 1.214 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.9763, allocations: 8.047 kB / 1.214 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.286e-05/0.9764, allocations: 15.94 kB / 1.214 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.616e-05/0.9764, allocations: 3.984 kB / 1.214 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.9765, allocations: 7.938 kB / 1.214 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001517/0.9766, allocations: 128 kB / 1.215 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9766, allocations: 0 / 1.215 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002492/0.9769, allocations: 35.94 kB / 1.215 GB, free: 5.664 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007581/0.9776, allocations: 0.7099 MB / 1.215 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003591/0.978, allocations: 175.4 kB / 1.215 GB, free: 4.742 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.978, allocations: 0 / 1.215 GB, free: 4.742 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 7.505e-05/0.9781, allocations: 43.92 kB / 1.215 GB, free: 4.699 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.9784, allocations: 38.31 kB / 1.216 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.981, allocations: 1.901 MB / 1.217 GB, free: 2.672 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.9815, allocations: 0.708 MB / 1.218 GB, free: 1.938 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.029e-05/0.9816, allocations: 24.86 kB / 1.218 GB, free: 1.91 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.225e-05/0.9817, allocations: 35.42 kB / 1.218 GB, free: 1.875 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.9817, allocations: 0 / 1.218 GB, free: 1.875 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/1.009, allocations: 3.706 MB / 1.222 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.186/9.195, allocations: 12.19 kB / 1.222 GB, free: 14.31 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches