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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001256/0.001256, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001906/0.001906, allocations: 193.5 kB / 16.53 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.414/2.414, allocations: 437 MB / 0.7104 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 55.91 kB / 0.8693 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.529/0.5303, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001842/0.5322, allocations: 0.6718 MB / 1.018 GB, free: 1.793 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001219/0.5334, allocations: 1.058 MB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.521e-05/0.5335, allocations: 0 / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.867e-05/0.5335, allocations: 3.938 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.996e-05/0.5336, allocations: 11.92 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.5339, allocations: 55.77 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.682e-05/0.534, allocations: 47.86 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.5341, allocations: 11.98 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.486e-05/0.5342, allocations: 19.92 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.535e-05/0.5342, allocations: 23.91 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.5342, allocations: 4 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.607e-05/0.5343, allocations: 19.98 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.919e-05/0.5343, allocations: 7.984 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.817e-05/0.5344, allocations: 23.88 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.5345, allocations: 59.83 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.5345, allocations: 3.938 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5345, allocations: 0 / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.5345, allocations: 0 / 1.019 GB, free: 440 kB / 0.7637 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.0005384/0.5351, allocations: 373.5 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.5351, allocations: 8.031 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.761e-05/0.5352, allocations: 42.72 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.206e-05/0.5352, allocations: 4.938 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.151e-05/0.5353, allocations: 176.2 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.5353, allocations: 4.375 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.5353, allocations: 4.375 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.5355, allocations: 70.2 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.5356, allocations: 3.938 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.5356, allocations: 0 / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.5356, allocations: 0 / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.5358, allocations: 47.95 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003824/0.5362, allocations: 280.8 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001522/0.5363, allocations: 54.55 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.742e-05/0.5364, allocations: 32.97 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.5365, allocations: 0 / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.5366, allocations: 75.38 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.5367, allocations: 0 / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004156/0.5371, allocations: 129.5 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.5371, allocations: 59.41 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.529e-05/0.5372, allocations: 101.8 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.5372, allocations: 33.7 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.5373, allocations: 88.06 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.5373, allocations: 15.81 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.5373, allocations: 17.72 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.576e-05/0.5375, allocations: 326.8 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.5376, allocations: 31.97 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.5377, allocations: 56.52 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.5379, allocations: 96.14 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5379, allocations: 4 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002608/0.5382, allocations: 113.5 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.5382, allocations: 4 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.5382, allocations: 4 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.5382, allocations: 4.312 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.5383, allocations: 19.92 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.5383, allocations: 11.92 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.573e-05/0.5384, allocations: 4 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.5384, allocations: 4 kB / 1.022 GB, free: 13.91 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 7.747e-05/0.5385, allocations: 125.7 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.571e-05/0.5385, allocations: 7.906 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002694/0.5388, allocations: 113.9 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.5388, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.5388, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.5388, allocations: 4.031 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003935/0.5392, allocations: 362.4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.5392, allocations: 4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.169e-05/0.5393, allocations: 7.984 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.5393, allocations: 8 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.5393, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5393, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5393, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002647/0.5396, allocations: 203.8 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.197e-05/0.5397, allocations: 77.11 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.5397, allocations: 8 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.477e-05/0.5398, allocations: 7.984 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.459e-05/0.5398, allocations: 15.92 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.5398, allocations: 0 / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.801e-05/0.5399, allocations: 83.22 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5399, allocations: 4 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002375/0.5401, allocations: 15.98 kB / 1.023 GB, free: 12.77 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.0005093/0.5406, allocations: 0.7358 MB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002533/0.5409, allocations: 75.89 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5409, allocations: 0 / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.541, allocations: 44.14 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.5413, allocations: 12.12 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.5427, allocations: 1.416 MB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/0.5429, allocations: 0.6846 MB / 1.025 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.132e-05/0.5429, allocations: 8 kB / 1.025 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.658e-05/0.543, allocations: 19.42 kB / 1.026 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of SimCode: time 3.1e-07/0.543, allocations: 0 / 1.026 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01597/0.5589, allocations: 1.772 MB / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.67/7.229, allocations: 13.84 kB / 1.027 GB, free: 7.926 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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_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.csv","/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