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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009703/0.0009703, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007662/0.007662, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.266/1.266, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.382/2.382, allocations: 462.7 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004658/0.0004659, allocations: 8.969 kB / 0.9029 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2221, allocations: 159.6 MB / 1.059 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.000711/0.2228, allocations: 419.1 kB / 1.059 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001114/0.2239, allocations: 1.065 MB / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.789e-05/0.224, allocations: 4 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.542e-05/0.224, allocations: 3.938 kB / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.039e-05/0.2241, allocations: 7.922 kB / 1.06 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001928/0.2243, allocations: 39.91 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.231e-05/0.2243, allocations: 63.83 kB / 1.06 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.447e-05/0.2244, allocations: 11.98 kB / 1.06 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.668e-05/0.2245, allocations: 23.92 kB / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.684e-05/0.2245, allocations: 31.84 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.2246, allocations: 8 kB / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.333e-05/0.2246, allocations: 23.97 kB / 1.06 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.2246, allocations: 11.98 kB / 1.06 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.182e-05/0.2247, allocations: 49.56 kB / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.2248, allocations: 67.75 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2248, allocations: 3.984 kB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2248, allocations: 0 / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.106e-06/0.2248, allocations: 0 / 1.061 GB, free: 3 MB / 0.8106 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.000479/0.2253, allocations: 375.7 kB / 1.061 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.2253, allocations: 11.97 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.724e-05/0.2254, allocations: 42.67 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.585e-05/0.2254, allocations: 8.844 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.854e-05/0.2255, allocations: 168.3 kB / 1.061 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.2255, allocations: 4.375 kB / 1.061 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.2255, allocations: 8.375 kB / 1.061 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.2257, allocations: 94.14 kB / 1.061 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.2258, allocations: 3.938 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.2258, allocations: 4 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.2258, allocations: 0 / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.226, allocations: 71.89 kB / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004216/0.2264, allocations: 316.6 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.2266, allocations: 86.55 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.2267, allocations: 48.83 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.2267, allocations: 192 / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001985/0.2269, allocations: 103.3 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.2269, allocations: 0 / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004322/0.2274, allocations: 189.5 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.2274, allocations: 55.41 kB / 1.062 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.261e-05/0.2275, allocations: 109.8 kB / 1.062 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.2275, allocations: 29.7 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.387e-05/0.2276, allocations: 92.36 kB / 1.062 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.2276, allocations: 23.66 kB / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.852e-05/0.2276, allocations: 21.7 kB / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.879e-05/0.2277, allocations: 322.8 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.2279, allocations: 43.97 kB / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.228, allocations: 73 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000216/0.2282, allocations: 106.5 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2282, allocations: 0 / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002974/0.2285, allocations: 161.5 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.2285, allocations: 7.984 kB / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.2286, allocations: 256 / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.195e-06/0.2286, allocations: 0 / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.2287, allocations: 31.92 kB / 1.063 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.2287, allocations: 0 / 1.063 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.696e-05/0.2288, allocations: 16 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.2288, allocations: 11.98 kB / 1.063 GB, free: 160 kB / 0.8106 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.951e-05/0.2289, allocations: 121.8 kB / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.185e-05/0.2289, allocations: 3.906 kB / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003228/0.2292, allocations: 157.9 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.2292, allocations: 7.984 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.2292, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2292, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004587/0.2297, allocations: 426.8 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2297, allocations: 0 / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.432e-05/0.2298, allocations: 11.98 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.2298, allocations: 0 / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.2298, allocations: 4.094 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.2298, allocations: 7.922 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2298, allocations: 0 / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003168/0.2301, allocations: 251.3 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.851e-05/0.2302, allocations: 84.95 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.2302, allocations: 7.984 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.756e-05/0.2303, allocations: 12 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.2303, allocations: 15.92 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.2304, allocations: 0 / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.318e-05/0.2304, allocations: 87.2 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2304, allocations: 0 / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000215/0.2306, allocations: 20 kB / 1.064 GB, free: 14.86 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.0005558/0.2312, allocations: 0.7788 MB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002694/0.2315, allocations: 115.8 kB / 1.065 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.2315, allocations: 0 / 1.065 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.2316, allocations: 55.97 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.2318, allocations: 12.3 kB / 1.065 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.2333, allocations: 1.535 MB / 1.067 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.2335, allocations: 0.6888 MB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.947e-05/0.2335, allocations: 8.422 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.437e-05/0.2336, allocations: 19.44 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.2336, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.395/1.629, allocations: 1.759 MB / 1.069 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/1.629, allocations: 216.6 kB / 1.069 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.95/5.579, allocations: 3.938 kB / 1.069 GB, free: 9.637 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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