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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008492/0.0008492, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009502/0.0009502, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9182/0.9182, allocations: 177.1 MB / 202.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.77/1.77, allocations: 389 MB / 0.633 GB, free: 12.72 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.993e-06/1.993e-06, allocations: 0 / 0.9997 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.749e-05/1.949e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001357/0.001376, allocations: 0.6647 MB / 1 GB, free: 12.84 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001107/0.002483, allocations: 1.093 MB / 1.001 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.833e-05/0.002532, allocations: 3.938 kB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.863e-05/0.00256, allocations: 7.922 kB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.215e-05/0.002622, allocations: 7.984 kB / 1.001 GB, free: 11.72 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.002965, allocations: 43.77 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.979e-05/0.003064, allocations: 59.78 kB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.661e-05/0.003161, allocations: 4 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.199e-05/0.003243, allocations: 31.95 kB / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.748e-05/0.00329, allocations: 19.92 kB / 1.002 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.003307, allocations: 4 kB / 1.002 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.291e-05/0.00337, allocations: 15.98 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.003391, allocations: 11.98 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.92e-05/0.00342, allocations: 19.92 kB / 1.002 GB, free: 11.51 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.00358, allocations: 67.77 kB / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.003584, allocations: 0 / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.173e-06/0.003585, allocations: 0 / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.00359, allocations: 4 kB / 1.002 GB, free: 11.44 MB / 0.9636 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.0005698/0.00416, allocations: 298.1 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.004211, allocations: 8.75 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.694e-05/0.004258, allocations: 34.75 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.786e-05/0.004355, allocations: 12.88 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.004457, allocations: 109.7 kB / 1.002 GB, free: 10.92 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.004471, allocations: 384 / 1.002 GB, free: 10.92 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.004487, allocations: 8.375 kB / 1.002 GB, free: 10.91 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.004675, allocations: 74.2 kB / 1.002 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.004683, allocations: 192 / 1.002 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.004693, allocations: 384 / 1.002 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.004699, allocations: 4.125 kB / 1.002 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.004803, allocations: 47.89 kB / 1.002 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003986/0.005202, allocations: 239.9 kB / 1.002 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.005318, allocations: 46.56 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.616e-05/0.005374, allocations: 40.95 kB / 1.003 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.005398, allocations: 7.938 kB / 1.003 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001565/0.005555, allocations: 79.31 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.005557, allocations: 0 / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.000265/0.005822, allocations: 125.7 kB / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.00586, allocations: 51.41 kB / 1.003 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.653e-05/0.005926, allocations: 113.8 kB / 1.003 GB, free: 10 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.005938, allocations: 25.7 kB / 1.003 GB, free: 9.969 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.99e-05/0.005978, allocations: 88.14 kB / 1.003 GB, free: 9.879 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.005998, allocations: 23.83 kB / 1.003 GB, free: 9.855 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.006034, allocations: 25.59 kB / 1.003 GB, free: 9.824 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.176e-05/0.006126, allocations: 322.8 kB / 1.003 GB, free: 9.5 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.973e-05/0.006185, allocations: 19.98 kB / 1.003 GB, free: 9.48 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.502e-05/0.00625, allocations: 60.27 kB / 1.003 GB, free: 9.406 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.006369, allocations: 92.19 kB / 1.004 GB, free: 9.301 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.006372, allocations: 0 / 1.004 GB, free: 9.301 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001579/0.006529, allocations: 121.4 kB / 1.004 GB, free: 9.176 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.006544, allocations: 12.12 kB / 1.004 GB, free: 9.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.006549, allocations: 0 / 1.004 GB, free: 9.164 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.006562, allocations: 4 kB / 1.004 GB, free: 9.16 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.379e-05/0.006635, allocations: 19.98 kB / 1.004 GB, free: 9.141 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.006641, allocations: 320 / 1.004 GB, free: 9.141 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.594e-05/0.006677, allocations: 11.92 kB / 1.004 GB, free: 9.129 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.006687, allocations: 4 kB / 1.004 GB, free: 9.125 MB / 0.9636 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.652e-05/0.006763, allocations: 117.8 kB / 1.004 GB, free: 9 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.103e-05/0.006774, allocations: 11.89 kB / 1.004 GB, free: 8.988 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001869/0.006961, allocations: 110.1 kB / 1.004 GB, free: 8.875 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.006967, allocations: 4 kB / 1.004 GB, free: 8.871 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.006973, allocations: 3.984 kB / 1.004 GB, free: 8.867 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.006977, allocations: 48 / 1.004 GB, free: 8.867 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003326/0.00731, allocations: 329.5 kB / 1.004 GB, free: 8.496 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.007312, allocations: 0 / 1.004 GB, free: 8.496 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.797e-05/0.00735, allocations: 8 kB / 1.004 GB, free: 8.488 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.007354, allocations: 4 kB / 1.004 GB, free: 8.484 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.007366, allocations: 11.98 kB / 1.004 GB, free: 8.473 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.007368, allocations: 0 / 1.004 GB, free: 8.473 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.00737, allocations: 0 / 1.004 GB, free: 8.473 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000183/0.007552, allocations: 199.3 kB / 1.004 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.306e-05/0.007566, allocations: 12.17 kB / 1.004 GB, free: 8.25 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.007583, allocations: 4 kB / 1.004 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.594e-05/0.007639, allocations: 11.98 kB / 1.004 GB, free: 8.234 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.007684, allocations: 4 kB / 1.004 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.007701, allocations: 4 kB / 1.004 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.891e-05/0.00774, allocations: 91.27 kB / 1.005 GB, free: 8.137 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.00774, allocations: 0 / 1.005 GB, free: 8.137 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002001/0.00794, allocations: 15.95 kB / 1.005 GB, free: 8.121 MB / 0.9636 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.0005146/0.008454, allocations: 0.7282 MB / 1.005 GB, free: 7.363 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002013/0.008656, allocations: 71.94 kB / 1.005 GB, free: 7.293 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.00866, allocations: 7.938 kB / 1.005 GB, free: 7.285 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.157e-05/0.008721, allocations: 23.98 kB / 1.005 GB, free: 7.262 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.008947, allocations: 13.55 kB / 1.005 GB, free: 7.25 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.01011, allocations: 1.431 MB / 1.007 GB, free: 5.715 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.959e-05/0.01016, allocations: 67.34 kB / 1.007 GB, free: 5.629 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.063e-05/0.01019, allocations: 7.938 kB / 1.007 GB, free: 5.621 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.986e-05/0.01023, allocations: 20.48 kB / 1.007 GB, free: 5.602 MB / 0.9636 GB Notification: Performance of SimCode: time 6.32e-07/0.01023, allocations: 0 / 1.007 GB, free: 5.602 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01551/0.02574, allocations: 2.518 MB / 1.009 GB, free: 3.23 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.732/6.758, allocations: 6.016 kB / 1.009 GB, free: 3.227 MB / 0.9636 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable zerOrdHol.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv. Warning: Get data of variable zerOrdHol.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.013285017572343]