Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.009136/0.009136, allocations: 97.58 kB / 15.73 MB, free: 5.996 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.00222/0.00222, allocations: 184.8 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.736/2.736, allocations: 222.9 MB / 240.4 MB, free: 4.324 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 4.873/4.873, allocations: 437 MB / 0.7105 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003065/0.003065, allocations: 55.91 kB / 1.018 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4925/0.4956, allocations: 151.6 MB / 1.166 GB, free: 7.371 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002674/0.4983, allocations: 0.6776 MB / 1.167 GB, free: 6.688 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002175/0.5005, allocations: 1.078 MB / 1.168 GB, free: 5.594 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.892e-05/0.5006, allocations: 0 / 1.168 GB, free: 5.594 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.094e-05/0.5007, allocations: 3.938 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.908e-05/0.5008, allocations: 11.88 kB / 1.168 GB, free: 5.578 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004496/0.5012, allocations: 51.88 kB / 1.168 GB, free: 5.527 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.5014, allocations: 63.78 kB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.5016, allocations: 15.98 kB / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.5017, allocations: 23.92 kB / 1.168 GB, free: 5.426 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.733e-05/0.5018, allocations: 35.89 kB / 1.168 GB, free: 5.391 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.438e-05/0.5018, allocations: 4 kB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.538e-05/0.502, allocations: 19.98 kB / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.174e-05/0.502, allocations: 23.92 kB / 1.168 GB, free: 5.344 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.622e-05/0.5021, allocations: 31.84 kB / 1.168 GB, free: 5.312 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.5023, allocations: 75.97 kB / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.5023, allocations: 0 / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.634e-06/0.5024, allocations: 0 / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.282e-05/0.5024, allocations: 0 / 1.168 GB, free: 5.238 MB / 0.92 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.0009504/0.5033, allocations: 383.2 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.887e-05/0.5034, allocations: 12.03 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.453e-05/0.5035, allocations: 38.73 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.5035, allocations: 8.891 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.5037, allocations: 176.3 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/0.5038, allocations: 384 / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.838e-05/0.5038, allocations: 12.38 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003644/0.5042, allocations: 86.14 kB / 1.169 GB, free: 4.434 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.5042, allocations: 3.938 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.5043, allocations: 0 / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.5043, allocations: 3.984 kB / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000339/0.5046, allocations: 55.95 kB / 1.169 GB, free: 4.371 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008145/0.5055, allocations: 308.7 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003405/0.5058, allocations: 86.47 kB / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/0.506, allocations: 40.84 kB / 1.169 GB, free: 3.883 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.5061, allocations: 4 kB / 1.169 GB, free: 3.879 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004521/0.5066, allocations: 95.3 kB / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 2.515e-06/0.5066, allocations: 0 / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0008392/0.5074, allocations: 177.7 kB / 1.17 GB, free: 3.594 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.822e-05/0.5075, allocations: 55.41 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.5077, allocations: 109.8 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.5077, allocations: 33.7 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.96e-05/0.5078, allocations: 88.36 kB / 1.17 GB, free: 3.277 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.69e-05/0.5079, allocations: 23.91 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.753e-05/0.508, allocations: 37.64 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002078/0.5082, allocations: 326.7 kB / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.5085, allocations: 39.97 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.5087, allocations: 64.38 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000408/0.5091, allocations: 94.53 kB / 1.17 GB, free: 2.672 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.5092, allocations: 4 kB / 1.17 GB, free: 2.668 MB / 0.92 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005682/0.5098, allocations: 141.5 kB / 1.171 GB, free: 2.523 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.5098, allocations: 4 kB / 1.171 GB, free: 2.52 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.5098, allocations: 3.938 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.5098, allocations: 4 kB / 1.171 GB, free: 2.512 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.5101, allocations: 23.98 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.5101, allocations: 3.938 kB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.5102, allocations: 19.94 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.5103, allocations: 4 kB / 1.171 GB, free: 2.461 MB / 0.92 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.0001671/0.5104, allocations: 129.7 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.615e-05/0.5105, allocations: 3.953 kB / 1.171 GB, free: 2.32 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000581/0.5111, allocations: 145.9 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.5111, allocations: 0 / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.5111, allocations: 4 kB / 1.171 GB, free: 2.168 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.5111, allocations: 480 / 1.171 GB, free: 2.168 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009151/0.512, allocations: 418.3 kB / 1.171 GB, free: 1.703 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.5121, allocations: 0 / 1.171 GB, free: 1.703 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.5122, allocations: 8 kB / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.5122, allocations: 4.234 kB / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.5122, allocations: 0 / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-05/0.5123, allocations: 4 kB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.5123, allocations: 8 kB / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000611/0.5129, allocations: 235.3 kB / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.939e-05/0.513, allocations: 88.98 kB / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/0.513, allocations: 4 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001939/0.5132, allocations: 7.984 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.314e-05/0.5133, allocations: 11.94 kB / 1.172 GB, free: 1.305 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.5133, allocations: 11.98 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of sorting global known variables: time 8.178e-05/0.5134, allocations: 79.28 kB / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.3e-07/0.5135, allocations: 0 / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005039/0.514, allocations: 20 kB / 1.172 GB, free: 1.195 MB / 0.92 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.001225/0.5152, allocations: 0.771 MB / 1.173 GB, free: 408 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0005018/0.5157, allocations: 99.81 kB / 1.173 GB, free: 308 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5157, allocations: 0 / 1.173 GB, free: 308 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.516, allocations: 52.19 kB / 1.173 GB, free: 256 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004682/0.5165, allocations: 13.48 kB / 1.173 GB, free: 244 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002973/0.5195, allocations: 1.505 MB / 1.174 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.52, allocations: 0.6929 MB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.957e-05/0.52, allocations: 4.438 kB / 1.175 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.246e-05/0.5201, allocations: 19.42 kB / 1.175 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of SimCode: time 6.71e-07/0.5201, allocations: 0 / 1.175 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09709/0.6172, allocations: 2.049 MB / 1.177 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.21/17.83, allocations: 10.69 kB / 1.177 GB, free: 11.94 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_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_FirstOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches