Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001341/0.001341, allocations: 99.75 kB / 18.94 MB, free: 2.832 MB / 14.72 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.001577/0.001577, allocations: 219.8 kB / 22.25 MB, free: 5.102 MB / 14.72 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 1.529/1.529, allocations: 230.6 MB / 256 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.204/3.204, allocations: 0.49 GB / 0.7951 GB, free: 35.47 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 64.89 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4233/0.4253, allocations: 176.1 MB / 1.326 GB, free: 1.539 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002105/0.4274, allocations: 0.6651 MB / 1.326 GB, free: 0.8789 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00174/0.4291, allocations: 1.105 MB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.909e-05/0.4292, allocations: 0 / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.67e-05/0.4292, allocations: 3.938 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.325e-05/0.4293, allocations: 15.84 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003411/0.4297, allocations: 47.91 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.4298, allocations: 75.75 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.4299, allocations: 11.98 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.608e-05/0.43, allocations: 27.92 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.099e-05/0.4301, allocations: 35.83 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.141e-05/0.4301, allocations: 12 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.06e-05/0.4302, allocations: 23.98 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.244e-05/0.4302, allocations: 15.92 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.046e-05/0.4303, allocations: 27.91 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.4304, allocations: 83.91 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.4305, allocations: 0 / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4305, allocations: 0 / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.4305, allocations: 0 / 1.328 GB, free: 15.39 MB / 1.029 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.0006952/0.4312, allocations: 314.1 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.4312, allocations: 12.03 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.731e-05/0.4313, allocations: 34.73 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.713e-05/0.4313, allocations: 4.938 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.4315, allocations: 114.5 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.4315, allocations: 4.375 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.119e-05/0.4315, allocations: 8.375 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002437/0.4318, allocations: 82.14 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.4318, allocations: 7.875 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.4318, allocations: 4 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.4318, allocations: 4 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.432, allocations: 51.95 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000531/0.4325, allocations: 267.8 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.4327, allocations: 74.47 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.4328, allocations: 40.83 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.4329, allocations: 0 / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002632/0.4331, allocations: 95.33 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.4331, allocations: 0 / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0004995/0.4336, allocations: 170 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.4337, allocations: 55.39 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.12e-05/0.4338, allocations: 113.8 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.4338, allocations: 41.62 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.203e-05/0.4338, allocations: 84.38 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.4339, allocations: 31.77 kB / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.502e-05/0.4339, allocations: 33.72 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.4341, allocations: 322.8 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.4342, allocations: 39.97 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.4344, allocations: 54.55 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.4346, allocations: 106.5 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.4346, allocations: 7.938 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003166/0.4349, allocations: 141.5 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.4349, allocations: 4 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.4349, allocations: 0 / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.435, allocations: 4 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.4351, allocations: 15.98 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.4351, allocations: 4 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.152e-05/0.4352, allocations: 20.25 kB / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.4352, allocations: 8 kB / 1.33 GB, free: 12.84 MB / 1.029 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 0.0001273/0.4353, allocations: 135.9 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.4353, allocations: 3.984 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003825/0.4357, allocations: 146 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4357, allocations: 3.984 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.4357, allocations: 0 / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.4357, allocations: 0 / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007504/0.4365, allocations: 373.5 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4365, allocations: 4 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.981e-05/0.4366, allocations: 11.92 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.4366, allocations: 7.984 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.4366, allocations: 4 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.4366, allocations: 0 / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4366, allocations: 0 / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004452/0.437, allocations: 259.3 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.043e-05/0.4371, allocations: 0 / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.024e-05/0.4371, allocations: 4 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.4372, allocations: 7.984 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/0.4372, allocations: 15.92 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-06/0.4373, allocations: 0 / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.189e-05/0.4373, allocations: 83.27 kB / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4373, allocations: 4 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002455/0.4376, allocations: 16 kB / 1.331 GB, free: 11.7 MB / 1.029 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.0009059/0.4385, allocations: 0.7925 MB / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003088/0.4388, allocations: 91.88 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.4388, allocations: 0 / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.4389, allocations: 39.97 kB / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.4392, allocations: 16.06 kB / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.4411, allocations: 1.513 MB / 1.334 GB, free: 9.145 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.667e-05/0.4412, allocations: 71.28 kB / 1.334 GB, free: 9.055 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.147e-05/0.4412, allocations: 16.41 kB / 1.334 GB, free: 9.039 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.829e-05/0.4413, allocations: 19.44 kB / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of SimCode: time 4.41e-07/0.4413, allocations: 0 / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/0.4712, allocations: 2.659 MB / 1.336 GB, free: 6.5 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.61, allocations: 5.672 kB / 1.336 GB, free: 6.496 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.559234789019683]