Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 106.4 kB / 18.94 MB, free: 2.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 216.5 kB / 22.25 MB, free: 5.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.298/3.298, allocations: 0.49 GB / 0.7951 GB, free: 33.28 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 70.77 kB / 1.154 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3392, allocations: 176.1 MB / 1.326 GB, free: 1.984 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002028/0.3412, allocations: 0.7019 MB / 1.327 GB, free: 1.289 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.3427, allocations: 1.12 MB / 1.328 GB, free: 160 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.344e-05/0.3428, allocations: 3.938 kB / 1.328 GB, free: 156 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.975e-05/0.3428, allocations: 3.938 kB / 1.328 GB, free: 152 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.75e-05/0.3429, allocations: 3.938 kB / 1.328 GB, free: 148 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.3432, allocations: 55.81 kB / 1.328 GB, free: 92 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.3433, allocations: 71.84 kB / 1.328 GB, free: 20 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.809e-05/0.3434, allocations: 11.98 kB / 1.328 GB, free: 8 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.729e-05/0.3435, allocations: 31.91 kB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.732e-05/0.3435, allocations: 31.84 kB / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.832e-05/0.3435, allocations: 8 kB / 1.328 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.386e-05/0.3436, allocations: 19.98 kB / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.343e-05/0.3436, allocations: 23.91 kB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.694e-05/0.3437, allocations: 27.92 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001581/0.3438, allocations: 79.97 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3438, allocations: 0 / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3438, allocations: 0 / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.267e-06/0.3439, allocations: 4 kB / 1.328 GB, free: 15.79 MB / 1.029 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.0006219/0.3445, allocations: 306.1 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.3445, allocations: 8.031 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.556e-05/0.3446, allocations: 42.73 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.437e-05/0.3446, allocations: 4.938 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.3447, allocations: 118.4 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.3448, allocations: 4.375 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.3448, allocations: 16.31 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.345, allocations: 78.2 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.345, allocations: 3.938 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.345, allocations: 0 / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.345, allocations: 4 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.3452, allocations: 51.95 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005175/0.3457, allocations: 295.7 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002012/0.346, allocations: 70.55 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.3461, allocations: 40.83 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.3461, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.3464, allocations: 95.48 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.3464, allocations: 0 / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005212/0.3469, allocations: 169.5 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.3469, allocations: 55.41 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.4e-05/0.347, allocations: 114 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.3471, allocations: 25.7 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.204e-05/0.3471, allocations: 92.38 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.321e-05/0.3472, allocations: 27.78 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/0.3472, allocations: 33.7 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3474, allocations: 318.8 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.3475, allocations: 40.08 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.3476, allocations: 70.53 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.3479, allocations: 98.47 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3479, allocations: 0 / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003338/0.3482, allocations: 146 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.3482, allocations: 8 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.3482, allocations: 0 / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.3482, allocations: 0 / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.3484, allocations: 23.92 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3484, allocations: 3.938 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.442e-05/0.3485, allocations: 19.94 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.3485, allocations: 4 kB / 1.33 GB, free: 13.23 MB / 1.029 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.0001159/0.3486, allocations: 138.2 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.524e-05/0.3486, allocations: 4 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003553/0.3489, allocations: 141.9 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.349, allocations: 4 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.349, allocations: 0 / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.349, allocations: 0 / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005667/0.3495, allocations: 385.4 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3495, allocations: 0 / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.894e-05/0.3496, allocations: 11.98 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.3496, allocations: 4 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.3496, allocations: 3.984 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3496, allocations: 0 / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3496, allocations: 3.938 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00038/0.35, allocations: 239.4 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.538e-06/0.35, allocations: 0 / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.35, allocations: 7.984 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.3501, allocations: 8 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.3502, allocations: 15.86 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.3502, allocations: 4.266 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.276e-05/0.3503, allocations: 87.28 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3503, allocations: 4 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002722/0.3505, allocations: 19.94 kB / 1.331 GB, free: 12.08 MB / 1.029 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.0007313/0.3513, allocations: 0.7748 MB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003203/0.3516, allocations: 95.88 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.3516, allocations: 4 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.3517, allocations: 43.91 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.352, allocations: 11.92 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.3539, allocations: 1.504 MB / 1.334 GB, free: 9.539 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.3543, allocations: 0.6923 MB / 1.334 GB, free: 8.82 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.139e-05/0.3543, allocations: 8.422 kB / 1.334 GB, free: 8.812 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.068e-05/0.3544, allocations: 19.42 kB / 1.334 GB, free: 8.793 MB / 1.029 GB Notification: Performance of SimCode: time 7.62e-07/0.3544, allocations: 4 kB / 1.334 GB, free: 8.789 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03023/0.3846, allocations: 2.21 MB / 1.337 GB, free: 6.715 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.74, allocations: 10.22 kB / 1.337 GB, free: 6.707 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.51863666297868]