Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.007633/0.007633, allocations: 102.8 kB / 15.73 MB, free: 6 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.001863/0.001863, allocations: 191.7 kB / 16.67 MB, free: 5.926 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.511/2.511, allocations: 461.9 MB / 0.7348 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001349, allocations: 67.89 kB / 1.054 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8103/0.8117, allocations: 157.4 MB / 1.207 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002041/0.8138, allocations: 0.6828 MB / 1.208 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.8153, allocations: 1.069 MB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.069e-05/0.8154, allocations: 4 kB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.349e-05/0.8154, allocations: 3.938 kB / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.585e-05/0.8155, allocations: 11.86 kB / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.8158, allocations: 51.88 kB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.816, allocations: 67.78 kB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.19e-05/0.8161, allocations: 12 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.8162, allocations: 27.91 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.462e-05/0.8162, allocations: 35.89 kB / 1.209 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.8163, allocations: 4 kB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.264e-05/0.8163, allocations: 19.98 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.24e-05/0.8164, allocations: 15.94 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.731e-05/0.8164, allocations: 35.84 kB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001377/0.8166, allocations: 71.81 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.8166, allocations: 7.922 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.002e-06/0.8166, allocations: 0 / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.8166, allocations: 0 / 1.209 GB, free: 11.57 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006121/0.8172, allocations: 385.7 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.8173, allocations: 12.03 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.845e-05/0.8173, allocations: 34.69 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.669e-05/0.8174, allocations: 16.84 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.8175, allocations: 168.3 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.8175, allocations: 4.375 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.8175, allocations: 8.375 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/0.8178, allocations: 82.2 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.8178, allocations: 3.938 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.8178, allocations: 0 / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.8178, allocations: 0 / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002111/0.8181, allocations: 63.89 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000534/0.8186, allocations: 308.7 kB / 1.21 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.8188, allocations: 74.55 kB / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.8189, allocations: 45.12 kB / 1.21 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.819, allocations: 11.88 kB / 1.21 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002742/0.8193, allocations: 87.36 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.8193, allocations: 0 / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0005121/0.8198, allocations: 173.5 kB / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.8199, allocations: 59.41 kB / 1.211 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.466e-05/0.8199, allocations: 105.8 kB / 1.211 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.82, allocations: 33.7 kB / 1.211 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.82, allocations: 88.36 kB / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.8201, allocations: 27.64 kB / 1.211 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.642e-05/0.8202, allocations: 33.7 kB / 1.211 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.8203, allocations: 318.8 kB / 1.211 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.8204, allocations: 35.97 kB / 1.211 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.8206, allocations: 72.83 kB / 1.211 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000239/0.8208, allocations: 98.86 kB / 1.212 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.8208, allocations: 4 kB / 1.212 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003308/0.8212, allocations: 145.4 kB / 1.212 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.8212, allocations: 4 kB / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.8212, allocations: 7.922 kB / 1.212 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.8212, allocations: 4 kB / 1.212 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.8214, allocations: 23.92 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.8214, allocations: 4 kB / 1.212 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.183e-05/0.8215, allocations: 7.906 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.8215, allocations: 8.062 kB / 1.212 GB, free: 8.805 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: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001323/0.8216, allocations: 129.8 kB / 1.212 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.8217, allocations: 7.922 kB / 1.212 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003692/0.822, allocations: 142 kB / 1.212 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.822, allocations: 0 / 1.212 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.822, allocations: 0 / 1.212 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.8221, allocations: 0 / 1.212 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005458/0.8226, allocations: 426.2 kB / 1.212 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8226, allocations: 0 / 1.212 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.769e-05/0.8227, allocations: 11.98 kB / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.8227, allocations: 0 / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.8227, allocations: 0 / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.8227, allocations: 0 / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.8228, allocations: 3.984 kB / 1.212 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003562/0.8231, allocations: 243.3 kB / 1.213 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.8232, allocations: 77.11 kB / 1.213 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.8232, allocations: 4 kB / 1.213 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.8233, allocations: 8.266 kB / 1.213 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/0.8234, allocations: 15.92 kB / 1.213 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-06/0.8234, allocations: 4 kB / 1.213 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.488e-05/0.8234, allocations: 91.2 kB / 1.213 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9.1e-08/0.8234, allocations: 0 / 1.213 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000253/0.8237, allocations: 20 kB / 1.213 GB, free: 7.535 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006506/0.8243, allocations: 0.7708 MB / 1.214 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003077/0.8247, allocations: 107.8 kB / 1.214 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.8247, allocations: 0 / 1.214 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.8248, allocations: 47.97 kB / 1.214 GB, free: 6.586 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.8251, allocations: 16.11 kB / 1.214 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.8269, allocations: 1.504 MB / 1.215 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.8272, allocations: 0.6851 MB / 1.216 GB, free: 4.266 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.997e-05/0.8273, allocations: 12.42 kB / 1.216 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.8273, allocations: 15.44 kB / 1.216 GB, free: 4.238 MB / 0.9356 GB Notification: Performance of SimCode: time 4.71e-07/0.8273, allocations: 0 / 1.216 GB, free: 4.238 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.8468, allocations: 2.108 MB / 1.218 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.726/8.573, allocations: 5.969 kB / 1.218 GB, free: 2.25 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches