Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_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.001297/0.001297, allocations: 108 kB / 15.61 MB, free: 152 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.00128/0.00128, allocations: 196.5 kB / 16.53 MB, free: 6.699 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.259/1.259, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.5/2.5, allocations: 469.8 MB / 0.7424 GB, free: 7.414 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 66.8 kB / 0.9087 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.238, allocations: 159.1 MB / 1.064 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001739/0.2398, allocations: 0.6873 MB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.241, allocations: 1.071 MB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.332e-05/0.2411, allocations: 3.938 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.536e-05/0.2411, allocations: 3.938 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.335e-05/0.2412, allocations: 19.91 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.2414, allocations: 43.83 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.273e-05/0.2415, allocations: 59.91 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.95e-05/0.2416, allocations: 19.98 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.303e-05/0.2417, allocations: 23.92 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.016e-05/0.2417, allocations: 35.83 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.2418, allocations: 8 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.009e-05/0.2418, allocations: 19.98 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.465e-05/0.2419, allocations: 15.98 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.238e-05/0.2419, allocations: 39.78 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001194/0.242, allocations: 67.77 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.242, allocations: 0 / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.001e-06/0.242, allocations: 0 / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.2421, allocations: 4 kB / 1.066 GB, free: 12.05 MB / 0.8262 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.0005566/0.2426, allocations: 383.6 kB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.2427, allocations: 8.031 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.96e-05/0.2427, allocations: 42.73 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.079e-05/0.2427, allocations: 8.844 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.2429, allocations: 164.3 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.2429, allocations: 4.375 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/0.2429, allocations: 12.38 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.2431, allocations: 82.14 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2431, allocations: 3.938 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.2431, allocations: 4 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2431, allocations: 0 / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.2433, allocations: 51.95 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004515/0.2438, allocations: 316.6 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.244, allocations: 86.47 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.2441, allocations: 40.84 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.2441, allocations: 0 / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.2443, allocations: 95.3 kB / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.2443, allocations: 0 / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.000447/0.2448, allocations: 173.6 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.2448, allocations: 55.41 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.214e-05/0.2449, allocations: 105.8 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.245, allocations: 33.7 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.826e-05/0.245, allocations: 92.36 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.197e-05/0.2451, allocations: 27.64 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.2451, allocations: 33.64 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2452, allocations: 326.8 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.2454, allocations: 31.98 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.2455, allocations: 67.94 kB / 1.068 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.2457, allocations: 98.47 kB / 1.068 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.2457, allocations: 4 kB / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003005/0.246, allocations: 145.6 kB / 1.069 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.246, allocations: 7.938 kB / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.2461, allocations: 0 / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.2461, allocations: 0 / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.2462, allocations: 23.98 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.2462, allocations: 7.984 kB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.567e-05/0.2463, allocations: 15.83 kB / 1.069 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.2463, allocations: 8 kB / 1.069 GB, free: 9.289 MB / 0.8262 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 9.368e-05/0.2464, allocations: 134.2 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.2464, allocations: 4 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003063/0.2467, allocations: 145.9 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2467, allocations: 0.7188 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2467, allocations: 0 / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2467, allocations: 4 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004868/0.2472, allocations: 418.2 kB / 1.069 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2473, allocations: 4 kB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.755e-05/0.2473, allocations: 4 kB / 1.069 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2473, allocations: 4 kB / 1.069 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.2473, allocations: 3.984 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2473, allocations: 0 / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2473, allocations: 0 / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000318/0.2477, allocations: 239.4 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.451e-05/0.2477, allocations: 88.94 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.2477, allocations: 0 / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.632e-05/0.2478, allocations: 11.98 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.188e-05/0.2479, allocations: 15.88 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.2479, allocations: 3.984 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.132e-05/0.2479, allocations: 83.28 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2479, allocations: 4 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002172/0.2482, allocations: 16 kB / 1.07 GB, free: 8.023 MB / 0.8262 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.0006221/0.2488, allocations: 0.7786 MB / 1.07 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002813/0.2491, allocations: 108.1 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.2491, allocations: 0 / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.2492, allocations: 47.86 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.2494, allocations: 17.33 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.251, allocations: 1.478 MB / 1.072 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.2513, allocations: 0.6885 MB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.156e-05/0.2513, allocations: 8.422 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.138e-05/0.2514, allocations: 19.44 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2514, allocations: 4 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.903/3.155, allocations: 2.019 MB / 1.075 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.818/12.97, allocations: 9.859 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches