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.001035/0.001035, allocations: 103.4 kB / 15.34 MB, free: 0.5 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.0009984/0.0009984, allocations: 195.4 kB / 16.25 MB, free: 6.633 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.233/1.233, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.322/2.322, allocations: 437 MB / 0.7101 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 59.91 kB / 0.8689 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5292/0.5304, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001686/0.5321, allocations: 0.7445 MB / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.5332, allocations: 1.05 MB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.798e-05/0.5332, allocations: 4 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.089e-05/0.5333, allocations: 3.938 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.531e-05/0.5333, allocations: 7.922 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.5336, allocations: 31.91 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.25e-05/0.5337, allocations: 59.84 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.466e-05/0.5338, allocations: 8 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.857e-05/0.5338, allocations: 23.91 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.324e-05/0.5339, allocations: 15.92 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.5339, allocations: 8 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.692e-05/0.5339, allocations: 15.98 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.74e-05/0.534, allocations: 11.98 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.167e-05/0.534, allocations: 23.86 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.5341, allocations: 59.84 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.5342, allocations: 4 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.533e-06/0.5342, allocations: 0 / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.5342, allocations: 0 / 1.019 GB, free: 0.6211 MB / 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.0005041/0.5347, allocations: 369.5 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.5347, allocations: 16.02 kB / 1.019 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.209e-05/0.5348, allocations: 34.75 kB / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.182e-05/0.5348, allocations: 8.875 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.5349, allocations: 176.2 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.5349, allocations: 8.375 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/0.5349, allocations: 384 / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.5351, allocations: 66.22 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.5351, allocations: 7.875 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.5351, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.5352, allocations: 4 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.5353, allocations: 39.95 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000367/0.5357, allocations: 284.8 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001492/0.5359, allocations: 54.55 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.407e-05/0.536, allocations: 36.95 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.536, allocations: 4 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001686/0.5362, allocations: 79.36 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.5362, allocations: 0 / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003702/0.5366, allocations: 129.5 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.5366, allocations: 51.41 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.658e-05/0.5367, allocations: 109.8 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.5367, allocations: 29.7 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.558e-05/0.5367, allocations: 88.08 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.5368, allocations: 11.81 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.5368, allocations: 25.7 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.529e-05/0.5369, allocations: 318.8 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.282e-05/0.537, allocations: 27.97 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.5371, allocations: 68.2 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.5373, allocations: 92.19 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.5373, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002436/0.5376, allocations: 113.5 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.5376, allocations: 8 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.5376, allocations: 0 / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.5376, allocations: 4 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.5377, allocations: 24.05 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.5377, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.677e-05/0.5378, allocations: 8.031 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.5378, allocations: 7.984 kB / 1.021 GB, free: 14.1 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.597e-05/0.5379, allocations: 122.2 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.5379, allocations: 11.84 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002665/0.5382, allocations: 109.9 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.5382, allocations: 8 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.5382, allocations: 256 / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.5382, allocations: 0 / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003907/0.5386, allocations: 366.6 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.5386, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.012e-05/0.5387, allocations: 11.94 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.5387, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.5387, allocations: 7.984 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.5387, allocations: 4 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5387, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002583/0.539, allocations: 199.3 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.136e-05/0.539, allocations: 81.09 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.539, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.722e-05/0.5391, allocations: 11.98 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.5392, allocations: 15.88 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.5392, allocations: 4 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.33e-05/0.5392, allocations: 83.27 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5392, allocations: 0 / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00023/0.5395, allocations: 16 kB / 1.022 GB, free: 12.96 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.000492/0.54, allocations: 0.728 MB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002397/0.5402, allocations: 75.86 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.5402, allocations: 0 / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.5403, allocations: 32.8 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.5406, allocations: 21.47 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.5419, allocations: 1.428 MB / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001933/0.5421, allocations: 0.6807 MB / 1.025 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.956e-05/0.5422, allocations: 8 kB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.384e-05/0.5422, allocations: 19.42 kB / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.5422, allocations: 0 / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.558/2.1, allocations: 1.653 MB / 1.027 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/2.1, allocations: 220 kB / 1.027 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.625/3.726, allocations: 4 kB / 1.027 GB, free: 8.02 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