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.001583/0.001583, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.247/1.247, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.386/2.386, allocations: 437 MB / 0.7104 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 67.89 kB / 0.8694 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4951/0.4963, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00178/0.4981, allocations: 0.6851 MB / 1.018 GB, free: 1.773 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001158/0.4993, allocations: 1.066 MB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.429e-05/0.4994, allocations: 7.938 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.675e-05/0.4994, allocations: 3.938 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.879e-05/0.4995, allocations: 7.922 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.4997, allocations: 47.83 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.247e-05/0.4998, allocations: 67.89 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.53e-05/0.4999, allocations: 7.984 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.903e-05/0.5, allocations: 27.92 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.268e-05/0.5001, allocations: 43.81 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.5001, allocations: 12 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.483e-05/0.5002, allocations: 19.92 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.895e-05/0.5002, allocations: 8 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.043e-05/0.5002, allocations: 35.86 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.5004, allocations: 67.81 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.5004, allocations: 3.938 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.243e-06/0.5004, allocations: 0 / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.5004, allocations: 0 / 1.019 GB, free: 344 kB / 0.7637 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.0005483/0.5009, allocations: 391.2 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.501, allocations: 12.03 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.228e-05/0.501, allocations: 34.75 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.5011, allocations: 8.844 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.002e-05/0.5011, allocations: 172.4 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.5012, allocations: 4.375 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.5012, allocations: 16.31 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.5014, allocations: 86.08 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.5014, allocations: 3.938 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.5014, allocations: 4 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.5014, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.5017, allocations: 55.95 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004454/0.5021, allocations: 312.6 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000183/0.5023, allocations: 82.48 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.5024, allocations: 44.94 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.5025, allocations: 7.938 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002062/0.5027, allocations: 87.36 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.5027, allocations: 0 / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.000448/0.5031, allocations: 173.7 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.5032, allocations: 51.41 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.873e-05/0.5032, allocations: 113.7 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.5033, allocations: 33.7 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.754e-05/0.5033, allocations: 84.38 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/0.5033, allocations: 31.62 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.862e-05/0.5034, allocations: 37.7 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.521e-05/0.5035, allocations: 318.8 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.5036, allocations: 39.97 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.5037, allocations: 60.66 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002284/0.504, allocations: 102.5 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.504, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003005/0.5043, allocations: 145.4 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.5043, allocations: 4 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.5043, allocations: 4.375 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.5043, allocations: 4.062 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.5045, allocations: 23.97 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.5045, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.659e-05/0.5046, allocations: 7.938 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.5046, allocations: 8 kB / 1.022 GB, free: 13.57 MB / 0.7794 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 8.271e-05/0.5047, allocations: 134.8 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.605e-05/0.5047, allocations: 7.906 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003191/0.505, allocations: 149.9 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.505, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.505, allocations: 4 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.505, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004565/0.5055, allocations: 402.4 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.5055, allocations: 0 / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.171e-05/0.5056, allocations: 12.23 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.5056, allocations: 4 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.5056, allocations: 4 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.5057, allocations: 4 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.5057, allocations: 0 / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.506, allocations: 239.3 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.612e-05/0.5061, allocations: 85.02 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.5061, allocations: 4 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.5062, allocations: 7.984 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.5062, allocations: 15.92 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.5063, allocations: 4 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.289e-05/0.5063, allocations: 87.27 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5063, allocations: 288 / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002584/0.5066, allocations: 16 kB / 1.023 GB, free: 12.3 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: 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.0006067/0.5072, allocations: 0.7886 MB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002859/0.5075, allocations: 95.88 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5075, allocations: 0 / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.5076, allocations: 56.02 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.5079, allocations: 19.92 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/0.5094, allocations: 1.478 MB / 1.025 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.5096, allocations: 0.6885 MB / 1.026 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.223e-05/0.5097, allocations: 4.438 kB / 1.026 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.414e-05/0.5097, allocations: 23.42 kB / 1.026 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of SimCode: time 2.9e-07/0.5097, allocations: 4 kB / 1.026 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01609/0.5258, allocations: 2.019 MB / 1.028 GB, free: 7.066 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.664/7.19, allocations: 13.16 kB / 1.028 GB, free: 7.059 MB / 0.7794 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