Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_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.0007445/0.0007446, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.004383/0.004383, allocations: 170.5 kB / 16.27 MB, free: 6.652 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.251/1.251, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.235/2.235, allocations: 437.8 MB / 0.7121 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002818/0.0002818, allocations: 8 kB / 0.873 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5048/0.5051, allocations: 153.8 MB / 1.023 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0006979/0.5058, allocations: 404.9 kB / 1.024 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001079/0.5069, allocations: 1.054 MB / 1.025 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.5069, allocations: 0 / 1.025 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.256e-05/0.507, allocations: 7.938 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.988e-05/0.507, allocations: 3.938 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00019/0.5072, allocations: 39.89 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.37e-05/0.5073, allocations: 43.92 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.253e-05/0.5074, allocations: 7.984 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.511e-05/0.5074, allocations: 19.92 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.405e-05/0.5075, allocations: 19.91 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.5075, allocations: 4 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.923e-05/0.5076, allocations: 19.98 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.563e-05/0.5076, allocations: 4 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.04e-05/0.5076, allocations: 49.56 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.541e-05/0.5077, allocations: 55.77 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.5077, allocations: 0 / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5077, allocations: 0 / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.247e-06/0.5078, allocations: 4 kB / 1.025 GB, free: 14.16 MB / 0.7794 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.0004712/0.5082, allocations: 369.7 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.5083, allocations: 8.031 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.5083, allocations: 38.69 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.388e-05/0.5083, allocations: 8.844 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.701e-05/0.5084, allocations: 172.4 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.927e-06/0.5085, allocations: 384 / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.5085, allocations: 8.375 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.5087, allocations: 74.22 kB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.5087, allocations: 3.938 kB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.5087, allocations: 7.875 kB / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.5087, allocations: 0 / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.5089, allocations: 51.95 kB / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.5093, allocations: 280.8 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.5094, allocations: 62.53 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.5095, allocations: 40.95 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.5095, allocations: 7.938 kB / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001866/0.5097, allocations: 79.36 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.5098, allocations: 4 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003869/0.5101, allocations: 141.7 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.5102, allocations: 51.41 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.545e-05/0.5103, allocations: 113.8 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.5103, allocations: 29.7 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.425e-05/0.5103, allocations: 88.08 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.5104, allocations: 19.73 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.5104, allocations: 13.72 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.006e-05/0.5105, allocations: 322.8 kB / 1.027 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.5106, allocations: 35.97 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.5107, allocations: 60.27 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.5109, allocations: 108.2 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.511, allocations: 0 / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002728/0.5112, allocations: 129.4 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.5112, allocations: 8 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.5113, allocations: 0 / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.897e-06/0.5113, allocations: 0 / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.5114, allocations: 24.11 kB / 1.027 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.5114, allocations: 4 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.65e-05/0.5115, allocations: 8.234 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.5115, allocations: 8 kB / 1.027 GB, free: 11.56 MB / 0.7794 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 8.045e-05/0.5116, allocations: 130.1 kB / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.226e-05/0.5116, allocations: 7.906 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002707/0.5119, allocations: 122 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.5119, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.5119, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.5119, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004058/0.5123, allocations: 378.4 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.5123, allocations: 192 / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.059e-05/0.5124, allocations: 11.98 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5124, allocations: 7.938 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.5124, allocations: 0 / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.5124, allocations: 0 / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5124, allocations: 0 / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002729/0.5127, allocations: 219.3 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.5127, allocations: 81.11 kB / 1.028 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.5127, allocations: 0 / 1.028 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.338e-05/0.5128, allocations: 15.98 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.983e-05/0.5129, allocations: 7.938 kB / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.5129, allocations: 4 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.389e-05/0.5129, allocations: 87.27 kB / 1.028 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5129, allocations: 0 / 1.028 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002211/0.5132, allocations: 12 kB / 1.028 GB, free: 10.39 MB / 0.7794 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.0005139/0.5137, allocations: 0.7475 MB / 1.029 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002428/0.5139, allocations: 91.86 kB / 1.029 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.5139, allocations: 0 / 1.029 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.514, allocations: 31.98 kB / 1.029 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.5143, allocations: 22.2 kB / 1.029 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.5157, allocations: 1.458 MB / 1.03 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001981/0.5159, allocations: 0.6848 MB / 1.031 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.583e-05/0.5159, allocations: 4 kB / 1.031 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.073e-05/0.5159, allocations: 15.44 kB / 1.031 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of SimCode: time 3.4e-07/0.5159, allocations: 4 kB / 1.031 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8588/1.375, allocations: 1.532 MB / 1.033 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/1.375, allocations: 211.6 kB / 1.033 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/2.949, allocations: 0 / 1.033 GB, free: 5.523 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches