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.001642/0.001642, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001957/0.001957, allocations: 210.5 kB / 22.24 MB, free: 5.262 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: 7.797 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.224/3.224, allocations: 0.4892 GB / 0.7943 GB, free: 35.72 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.002072/0.002072, allocations: 70.05 kB / 1.153 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3546, allocations: 176.1 MB / 1.325 GB, free: 2.414 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002445/0.357, allocations: 0.6825 MB / 1.326 GB, free: 1.738 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001789/0.3588, allocations: 1.093 MB / 1.327 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.575e-05/0.3589, allocations: 4 kB / 1.327 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.739e-05/0.3589, allocations: 7.922 kB / 1.327 GB, free: 0.6211 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.802e-05/0.359, allocations: 7.922 kB / 1.327 GB, free: 0.6133 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.3594, allocations: 55.83 kB / 1.327 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.3595, allocations: 75.77 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.3596, allocations: 8 kB / 1.327 GB, free: 488 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.3597, allocations: 27.92 kB / 1.327 GB, free: 460 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.786e-05/0.3598, allocations: 27.89 kB / 1.327 GB, free: 432 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.3598, allocations: 4 kB / 1.327 GB, free: 428 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.332e-05/0.3599, allocations: 23.98 kB / 1.327 GB, free: 404 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.412e-05/0.3599, allocations: 19.92 kB / 1.327 GB, free: 384 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.932e-05/0.36, allocations: 23.91 kB / 1.327 GB, free: 360 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.3602, allocations: 79.97 kB / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3602, allocations: 0 / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3602, allocations: 4 kB / 1.327 GB, free: 276 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.825e-06/0.3602, allocations: 4 kB / 1.327 GB, free: 272 kB / 1.014 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.000733/0.3609, allocations: 306.1 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3609, allocations: 8.031 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.336e-05/0.361, allocations: 42.73 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.781e-05/0.3611, allocations: 4.938 kB / 1.327 GB, free: 15.87 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.3612, allocations: 114.4 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.3612, allocations: 4.375 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.139e-05/0.3613, allocations: 12.38 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002402/0.3615, allocations: 82.14 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.3615, allocations: 3.938 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.3615, allocations: 0 / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.3615, allocations: 0 / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002021/0.3617, allocations: 55.95 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005711/0.3623, allocations: 271.7 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.3625, allocations: 82.47 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.3626, allocations: 40.83 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.3627, allocations: 0 / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002717/0.3629, allocations: 91.48 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.3629, allocations: 0 / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005207/0.3634, allocations: 173.6 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.3635, allocations: 59.39 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.3636, allocations: 117.8 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.3636, allocations: 29.7 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.36e-05/0.3637, allocations: 88.38 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.538e-05/0.3637, allocations: 27.78 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.472e-05/0.3638, allocations: 29.72 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001932/0.364, allocations: 322.8 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.3641, allocations: 35.97 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.3643, allocations: 66.55 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.3645, allocations: 106.5 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3645, allocations: 0 / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003179/0.3648, allocations: 137.5 kB / 1.329 GB, free: 13.78 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3648, allocations: 5.938 kB / 1.329 GB, free: 13.78 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3649, allocations: 8 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.3649, allocations: 0 / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.365, allocations: 27.92 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.365, allocations: 3.984 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.997e-05/0.3651, allocations: 11.95 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.3651, allocations: 4 kB / 1.329 GB, free: 13.72 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.0001326/0.3652, allocations: 138.2 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.3652, allocations: 4.375 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003783/0.3656, allocations: 153.8 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.3656, allocations: 4 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3656, allocations: 0 / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3656, allocations: 0 / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000653/0.3663, allocations: 377.5 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3663, allocations: 0 / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.991e-05/0.3664, allocations: 15.92 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.3664, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.3664, allocations: 4 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3664, allocations: 7.984 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3664, allocations: 0 / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003948/0.3668, allocations: 247.2 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.021e-05/0.3668, allocations: 4 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.3668, allocations: 0 / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3669, allocations: 12.23 kB / 1.33 GB, free: 12.69 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.49e-05/0.367, allocations: 11.92 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.367, allocations: 12 kB / 1.33 GB, free: 12.67 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.619e-05/0.367, allocations: 87.27 kB / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.367, allocations: 0 / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002622/0.3673, allocations: 20 kB / 1.33 GB, free: 12.56 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.0007837/0.3681, allocations: 0.775 MB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003196/0.3684, allocations: 99.94 kB / 1.331 GB, free: 11.66 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3684, allocations: 0 / 1.331 GB, free: 11.66 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.3685, allocations: 47.91 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.3688, allocations: 11.92 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/0.3708, allocations: 1.5 MB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.293e-05/0.3709, allocations: 75.22 kB / 1.333 GB, free: 9.926 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.376e-05/0.3709, allocations: 16.34 kB / 1.333 GB, free: 9.91 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.123e-05/0.371, allocations: 15.44 kB / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of SimCode: time 5.51e-07/0.371, allocations: 0 / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03074/0.4017, allocations: 2.636 MB / 1.336 GB, free: 7.398 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.81, allocations: 13.56 kB / 1.336 GB, free: 7.391 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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.62645892892033]