Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_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.007935/0.007935, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001929/0.001929, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.74/2.74, allocations: 469.8 MB / 0.7425 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 71.89 kB / 1.065 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6682/0.6702, allocations: 159.1 MB / 1.22 GB, free: 2.027 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001744/0.672, allocations: 0.6716 MB / 1.221 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001365/0.6733, allocations: 1.061 MB / 1.222 GB, free: 292 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.938e-05/0.6734, allocations: 0 / 1.222 GB, free: 292 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.835e-05/0.6734, allocations: 7.922 kB / 1.222 GB, free: 284 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.18e-05/0.6735, allocations: 7.922 kB / 1.222 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.6738, allocations: 47.84 kB / 1.222 GB, free: 228 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.6739, allocations: 55.77 kB / 1.222 GB, free: 172 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.568e-05/0.674, allocations: 8 kB / 1.222 GB, free: 164 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.52e-05/0.6741, allocations: 19.92 kB / 1.222 GB, free: 144 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.594e-05/0.6741, allocations: 23.92 kB / 1.222 GB, free: 120 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.6741, allocations: 4 kB / 1.222 GB, free: 116 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.382e-05/0.6742, allocations: 15.98 kB / 1.222 GB, free: 100 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.59e-05/0.6742, allocations: 15.97 kB / 1.222 GB, free: 84 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.586e-05/0.6743, allocations: 23.86 kB / 1.222 GB, free: 60 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.6744, allocations: 56.83 kB / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.6744, allocations: 0 / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6744, allocations: 0 / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.6745, allocations: 0 / 1.222 GB, free: 4 kB / 0.9356 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.0006275/0.6751, allocations: 381.9 kB / 1.222 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.6751, allocations: 8.031 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.095e-05/0.6752, allocations: 38.69 kB / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.826e-05/0.6752, allocations: 8.938 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.6753, allocations: 164.3 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.6754, allocations: 4.375 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.6754, allocations: 4.375 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002106/0.6756, allocations: 66.2 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.6756, allocations: 3.938 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.6756, allocations: 3.938 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.6756, allocations: 4 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.6758, allocations: 51.89 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004341/0.6763, allocations: 276.8 kB / 1.223 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.6765, allocations: 58.55 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.6766, allocations: 32.95 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.6766, allocations: 7.984 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.6768, allocations: 83.27 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.6768, allocations: 0 / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004443/0.6773, allocations: 117.6 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.6773, allocations: 51.41 kB / 1.223 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.6774, allocations: 117.8 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.6775, allocations: 25.7 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.6775, allocations: 84.14 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.6775, allocations: 23.86 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.197e-05/0.6776, allocations: 29.7 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.6777, allocations: 318.8 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.6779, allocations: 23.97 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.678, allocations: 68.2 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002321/0.6782, allocations: 92.19 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.6783, allocations: 4 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002976/0.6786, allocations: 117.5 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.6786, allocations: 4 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.6786, allocations: 0 / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.6786, allocations: 4 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.6787, allocations: 20.11 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.6787, allocations: 0 / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.497e-05/0.6788, allocations: 15.92 kB / 1.224 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.6788, allocations: 8 kB / 1.224 GB, free: 13.46 MB / 0.9512 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.956e-05/0.6789, allocations: 121.7 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.492e-05/0.679, allocations: 3.953 kB / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003089/0.6793, allocations: 106 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.6793, allocations: 4 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.6793, allocations: 0 / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.6793, allocations: 0 / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004981/0.6798, allocations: 366.3 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6798, allocations: 192 / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.705e-05/0.6799, allocations: 8 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.6799, allocations: 3.938 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.6799, allocations: 11.98 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.6799, allocations: 0 / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.6799, allocations: 0 / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003218/0.6803, allocations: 199.3 kB / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.6803, allocations: 81.09 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.6804, allocations: 0 / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.6805, allocations: 20.23 kB / 1.225 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.638e-05/0.6805, allocations: 3.938 kB / 1.225 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.6805, allocations: 8 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.949e-05/0.6806, allocations: 87.27 kB / 1.225 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.9e-07/0.6806, allocations: 0 / 1.225 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002533/0.6809, allocations: 12 kB / 1.225 GB, free: 12.34 MB / 0.9512 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.0006569/0.6815, allocations: 0.7369 MB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002718/0.6818, allocations: 71.88 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.6818, allocations: 0 / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.6819, allocations: 40.23 kB / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.6822, allocations: 21.78 kB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/0.6839, allocations: 1.414 MB / 1.228 GB, free: 9.93 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.6842, allocations: 0.6884 MB / 1.228 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.156e-05/0.6842, allocations: 7.938 kB / 1.228 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.97e-05/0.6843, allocations: 15.44 kB / 1.228 GB, free: 9.195 MB / 0.9512 GB Notification: Performance of SimCode: time 2.7e-07/0.6843, allocations: 4 kB / 1.228 GB, free: 9.191 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02212/0.7064, allocations: 1.824 MB / 1.23 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.901/8.607, allocations: 7.875 kB / 1.23 GB, free: 7.473 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches