Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",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.004729/0.004729, allocations: 97.64 kB / 15.73 MB, free: 6.48 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.001138/0.001138, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.674/2.674, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 67.91 kB / 1.054 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3411, allocations: 157.4 MB / 1.207 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001933/0.3431, allocations: 0.6659 MB / 1.208 GB, free: 9.539 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001406/0.3445, allocations: 1.061 MB / 1.209 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.981e-05/0.3446, allocations: 4 kB / 1.209 GB, free: 8.461 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.051e-05/0.3447, allocations: 3.938 kB / 1.209 GB, free: 8.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.202e-05/0.3447, allocations: 11.92 kB / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.3451, allocations: 47.77 kB / 1.209 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.3452, allocations: 43.91 kB / 1.209 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.3453, allocations: 15.98 kB / 1.209 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.499e-05/0.3454, allocations: 23.86 kB / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.483e-05/0.3454, allocations: 19.92 kB / 1.209 GB, free: 8.297 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.3455, allocations: 8 kB / 1.209 GB, free: 8.289 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.99e-05/0.3455, allocations: 19.98 kB / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.066e-05/0.3456, allocations: 7.984 kB / 1.209 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.972e-05/0.3456, allocations: 31.84 kB / 1.209 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.3457, allocations: 51.84 kB / 1.209 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3458, allocations: 4 kB / 1.209 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3458, allocations: 3.938 kB / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.3458, allocations: 0 / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006097/0.3464, allocations: 371.6 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3464, allocations: 8.625 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.508e-05/0.3465, allocations: 42.73 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.317e-05/0.3465, allocations: 4.844 kB / 1.21 GB, free: 7.695 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.3467, allocations: 172.3 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.3467, allocations: 384 / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.448e-05/0.3467, allocations: 4.375 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002159/0.3469, allocations: 66.22 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.3469, allocations: 7.922 kB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.347, allocations: 8 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.347, allocations: 0 / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.3472, allocations: 39.95 kB / 1.21 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004445/0.3476, allocations: 284.7 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.3478, allocations: 62.55 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.3479, allocations: 28.95 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.348, allocations: 4 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002319/0.3482, allocations: 75.44 kB / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.3482, allocations: 0 / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004187/0.3486, allocations: 125.6 kB / 1.21 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.3487, allocations: 59.41 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.857e-05/0.3488, allocations: 105.8 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.3488, allocations: 25.7 kB / 1.211 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.142e-05/0.3489, allocations: 84.55 kB / 1.211 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.534e-05/0.3489, allocations: 19.75 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.702e-05/0.3489, allocations: 29.7 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3491, allocations: 318.8 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.3492, allocations: 27.97 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.3493, allocations: 60.2 kB / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.3495, allocations: 96.19 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3495, allocations: 0 / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002832/0.3498, allocations: 113.5 kB / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3499, allocations: 13.53 kB / 1.211 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.3499, allocations: 4.188 kB / 1.211 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.3499, allocations: 0 / 1.211 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.35, allocations: 27.92 kB / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.35, allocations: 0 / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.177e-05/0.3501, allocations: 8.188 kB / 1.211 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.3501, allocations: 7.984 kB / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.117e-05/0.3502, allocations: 121.7 kB / 1.212 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.299e-05/0.3502, allocations: 8 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002948/0.3505, allocations: 118.1 kB / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3505, allocations: 0 / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3506, allocations: 0 / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.3506, allocations: 4 kB / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004696/0.351, allocations: 358.4 kB / 1.212 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3511, allocations: 7.984 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.377e-05/0.3511, allocations: 8 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3511, allocations: 0 / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.3512, allocations: 0 / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3512, allocations: 3.984 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3512, allocations: 0 / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.3515, allocations: 195.5 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.219e-05/0.3515, allocations: 93.03 kB / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.3516, allocations: 0 / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.3517, allocations: 11.98 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.05e-05/0.3517, allocations: 11.88 kB / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.3517, allocations: 0 / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.365e-05/0.3518, allocations: 91.27 kB / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3518, allocations: 0 / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002483/0.352, allocations: 15.94 kB / 1.212 GB, free: 4.512 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006262/0.3527, allocations: 0.7358 MB / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002719/0.353, allocations: 68.06 kB / 1.213 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.353, allocations: 4.062 kB / 1.213 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.3531, allocations: 35.92 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.3534, allocations: 21.34 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.3551, allocations: 1.42 MB / 1.215 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.3554, allocations: 0.6808 MB / 1.215 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.102e-05/0.3554, allocations: 15.92 kB / 1.215 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.394e-05/0.3555, allocations: 15.44 kB / 1.215 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of SimCode: time 3.5e-07/0.3555, allocations: 0 / 1.215 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.375, allocations: 1.857 MB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.65/8.025, allocations: 7.375 kB / 1.217 GB, free: 15.62 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches