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.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, 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.001296/0.001297, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.257/1.257, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.532/2.532, allocations: 469.4 MB / 0.742 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 70.45 kB / 0.9083 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2389, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001749/0.2407, allocations: 0.6922 MB / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00106/0.2418, allocations: 1.07 MB / 1.065 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.032e-05/0.2419, allocations: 4 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.559e-05/0.2419, allocations: 7.875 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.163e-05/0.2419, allocations: 11.91 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.2422, allocations: 47.83 kB / 1.065 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.963e-05/0.2423, allocations: 63.91 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.547e-05/0.2424, allocations: 19.97 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.243e-05/0.2424, allocations: 27.86 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.611e-05/0.2425, allocations: 39.83 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.2425, allocations: 4 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.058e-05/0.2426, allocations: 19.98 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.096e-05/0.2426, allocations: 15.98 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.498e-05/0.2426, allocations: 27.86 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.2428, allocations: 75.75 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2428, allocations: 4 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2428, allocations: 0 / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.2428, allocations: 0 / 1.066 GB, free: 12.38 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.0005261/0.2433, allocations: 381.4 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.2434, allocations: 8.031 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.402e-05/0.2434, allocations: 38.75 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.151e-05/0.2434, allocations: 12.83 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.35e-05/0.2435, allocations: 168.3 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.2436, allocations: 12.31 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.2436, allocations: 4.375 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.2438, allocations: 78.2 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.2438, allocations: 7.938 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.2438, allocations: 0 / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2438, allocations: 0 / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.244, allocations: 51.95 kB / 1.066 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000429/0.2445, allocations: 320.6 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.2447, allocations: 82.48 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.2448, allocations: 40.83 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.2448, allocations: 4 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001928/0.245, allocations: 91.48 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.245, allocations: 0 / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0004474/0.2455, allocations: 177.4 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.2455, allocations: 63.41 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.62e-05/0.2456, allocations: 109.8 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.2456, allocations: 29.7 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.489e-05/0.2456, allocations: 88.36 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.2457, allocations: 27.64 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.667e-05/0.2457, allocations: 33.7 kB / 1.067 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.405e-05/0.2458, allocations: 326.8 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.2459, allocations: 31.98 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.2461, allocations: 67.94 kB / 1.068 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.2463, allocations: 102.5 kB / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2463, allocations: 0 / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002985/0.2466, allocations: 149.5 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2467, allocations: 4 kB / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.2467, allocations: 0 / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.2467, allocations: 4 kB / 1.068 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.2468, allocations: 15.98 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.2468, allocations: 4 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.451e-05/0.2469, allocations: 19.83 kB / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.2469, allocations: 8.062 kB / 1.068 GB, free: 9.609 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 7.526e-05/0.247, allocations: 126.2 kB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.247, allocations: 8 kB / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003209/0.2473, allocations: 141.9 kB / 1.068 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.2474, allocations: 0 / 1.068 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.2474, allocations: 0 / 1.068 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2474, allocations: 0 / 1.068 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004608/0.2478, allocations: 422.8 kB / 1.069 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.2478, allocations: 0 / 1.069 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.792e-05/0.2479, allocations: 8.094 kB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2479, allocations: 3.938 kB / 1.069 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.2479, allocations: 7.984 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.2479, allocations: 0 / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.248, allocations: 0 / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.2483, allocations: 235.4 kB / 1.069 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.127e-05/0.2483, allocations: 84.95 kB / 1.069 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.2483, allocations: 11.98 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.2484, allocations: 7.984 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.531e-05/0.2485, allocations: 11.88 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.2485, allocations: 256 / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.661e-05/0.2485, allocations: 99.27 kB / 1.069 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2485, allocations: 3.938 kB / 1.069 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002403/0.2488, allocations: 16 kB / 1.069 GB, free: 8.34 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.0005416/0.2493, allocations: 0.7709 MB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002781/0.2496, allocations: 99.88 kB / 1.07 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.614e-06/0.2496, allocations: 0 / 1.07 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.2498, allocations: 55.89 kB / 1.07 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.25, allocations: 12.3 kB / 1.07 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.2515, allocations: 1.494 MB / 1.072 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001804/0.2517, allocations: 0.6884 MB / 1.072 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.2e-05/0.2517, allocations: 8.422 kB / 1.072 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.778e-05/0.2518, allocations: 19.44 kB / 1.072 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.2518, allocations: 0 / 1.072 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.2683, allocations: 2.029 MB / 1.074 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.803/7.071, allocations: 1.719 kB / 1.074 GB, free: 3.133 MB / 0.8262 GB (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 50 --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) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches