Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0008172/0.0008172, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0008197/0.0008197, 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.9098/0.9098, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.796/1.796, allocations: 389 MB / 0.633 GB, free: 12.7 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.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.406e-06/3.406e-06, allocations: 0 / 0.9996 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.16e-05/2.501e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001495/0.00152, allocations: 0.6717 MB / 1 GB, free: 12.86 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.00102/0.00254, allocations: 1.105 MB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.43e-05/0.002594, allocations: 0 / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.924e-05/0.002623, allocations: 3.938 kB / 1.001 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.96e-05/0.002693, allocations: 15.86 kB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.003001, allocations: 51.75 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.003105, allocations: 63.84 kB / 1.002 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.387e-05/0.003199, allocations: 19.91 kB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.404e-05/0.003283, allocations: 39.84 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.899e-05/0.003332, allocations: 23.95 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.003351, allocations: 8 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.896e-05/0.00342, allocations: 24 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.32e-05/0.003454, allocations: 19.91 kB / 1.002 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.022e-05/0.003494, allocations: 19.98 kB / 1.002 GB, free: 11.46 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.003653, allocations: 87.72 kB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.003656, allocations: 0 / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.282e-06/0.003657, allocations: 0 / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.003662, allocations: 0 / 1.002 GB, free: 11.38 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005007/0.004162, allocations: 302.1 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.004211, allocations: 12.75 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.834e-05/0.00425, allocations: 42.73 kB / 1.002 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.04e-05/0.00433, allocations: 12.83 kB / 1.002 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.929e-05/0.004429, allocations: 113.7 kB / 1.002 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.004455, allocations: 8.375 kB / 1.002 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.004469, allocations: 8.359 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.004638, allocations: 78.16 kB / 1.002 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.004648, allocations: 4.188 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.004659, allocations: 384 / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.004667, allocations: 4.125 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.004796, allocations: 59.94 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004107/0.005207, allocations: 263.9 kB / 1.003 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.005342, allocations: 74.48 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.272e-05/0.005404, allocations: 36.83 kB / 1.003 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.005427, allocations: 7.938 kB / 1.003 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.005588, allocations: 95.48 kB / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.005589, allocations: 0 / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0003175/0.005907, allocations: 181.7 kB / 1.003 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.005944, allocations: 55.41 kB / 1.003 GB, free: 9.887 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.975e-05/0.006003, allocations: 109.8 kB / 1.003 GB, free: 9.77 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.006019, allocations: 33.81 kB / 1.003 GB, free: 9.73 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.867e-05/0.006058, allocations: 96.25 kB / 1.003 GB, free: 9.629 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.00608, allocations: 31.84 kB / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/0.006117, allocations: 29.72 kB / 1.003 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.543e-05/0.006192, allocations: 322.8 kB / 1.004 GB, free: 9.238 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.455e-05/0.006257, allocations: 39.91 kB / 1.004 GB, free: 9.199 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.2e-05/0.006329, allocations: 58.55 kB / 1.004 GB, free: 9.133 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000131/0.00646, allocations: 102.5 kB / 1.004 GB, free: 9.023 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.006462, allocations: 0 / 1.004 GB, free: 9.023 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001739/0.006636, allocations: 145.5 kB / 1.004 GB, free: 8.875 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.006647, allocations: 4 kB / 1.004 GB, free: 8.871 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.006652, allocations: 0 / 1.004 GB, free: 8.871 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.006666, allocations: 7.938 kB / 1.004 GB, free: 8.863 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.401e-05/0.00675, allocations: 19.97 kB / 1.004 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.006757, allocations: 4 kB / 1.004 GB, free: 8.84 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.426e-05/0.006791, allocations: 8 kB / 1.004 GB, free: 8.832 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.0068, allocations: 8.062 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.169e-05/0.006872, allocations: 129.8 kB / 1.004 GB, free: 8.688 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.035e-05/0.006882, allocations: 7.891 kB / 1.004 GB, free: 8.68 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.007084, allocations: 146 kB / 1.004 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.007087, allocations: 0 / 1.004 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.007091, allocations: 0 / 1.004 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.007095, allocations: 0 / 1.004 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003354/0.00743, allocations: 385.4 kB / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.007432, allocations: 0 / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.598e-05/0.007468, allocations: 15.98 kB / 1.005 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.00747, allocations: 0 / 1.005 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.007478, allocations: 288 / 1.005 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.00748, allocations: 0 / 1.005 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.007481, allocations: 0 / 1.005 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002101/0.007691, allocations: 247.3 kB / 1.005 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.747e-06/0.0077, allocations: 3.953 kB / 1.005 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.412e-05/0.007714, allocations: 8 kB / 1.005 GB, free: 7.82 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.274e-05/0.007767, allocations: 8.234 kB / 1.005 GB, free: 7.812 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.00781, allocations: 11.98 kB / 1.005 GB, free: 7.801 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.007818, allocations: 4 kB / 1.005 GB, free: 7.797 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.302e-05/0.007851, allocations: 87.27 kB / 1.005 GB, free: 7.711 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.007851, allocations: 0 / 1.005 GB, free: 7.711 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000176/0.008027, allocations: 19.94 kB / 1.005 GB, free: 7.691 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004324/0.008459, allocations: 0.7843 MB / 1.006 GB, free: 6.879 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002046/0.008664, allocations: 95.88 kB / 1.006 GB, free: 6.785 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.008665, allocations: 0 / 1.006 GB, free: 6.785 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.966e-05/0.008735, allocations: 43.91 kB / 1.006 GB, free: 6.742 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.008922, allocations: 15.92 kB / 1.006 GB, free: 6.727 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.01004, allocations: 1.513 MB / 1.007 GB, free: 5.125 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.404e-05/0.01008, allocations: 71.28 kB / 1.008 GB, free: 5.035 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.906e-05/0.01011, allocations: 8.484 kB / 1.008 GB, free: 5.027 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.771e-05/0.01015, allocations: 16.5 kB / 1.008 GB, free: 5.012 MB / 0.9636 GB Notification: Performance of SimCode: time 5.61e-07/0.01015, allocations: 4 kB / 1.008 GB, free: 5.008 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01509/0.02524, allocations: 2.764 MB / 1.01 GB, free: 2.383 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.717/6.742, allocations: 23.59 kB / 1.01 GB, free: 2.371 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_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_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.968809687532485]