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.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.002021/0.002021, 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.002459/0.002459, allocations: 214.4 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.586/1.586, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.344/3.344, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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"}) [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.002288/0.002288, allocations: 72.09 kB / 1.186 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3562, allocations: 181.9 MB / 1.363 GB, free: 14.14 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002763/0.359, allocations: 0.6696 MB / 1.364 GB, free: 13.46 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002172/0.3612, allocations: 1.105 MB / 1.365 GB, free: 12.35 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.135e-05/0.3613, allocations: 7.938 kB / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.344e-05/0.3613, allocations: 3.938 kB / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.3614, allocations: 3.938 kB / 1.365 GB, free: 12.33 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.362, allocations: 51.83 kB / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001743/0.3621, allocations: 67.83 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.3623, allocations: 8 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.3624, allocations: 35.84 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 9.164e-05/0.3625, allocations: 23.91 kB / 1.365 GB, free: 12.15 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.623e-05/0.3625, allocations: 8 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.3626, allocations: 19.98 kB / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.106e-05/0.3627, allocations: 27.91 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.079e-05/0.3627, allocations: 23.92 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002523/0.363, allocations: 79.97 kB / 1.365 GB, free: 11.99 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.363, allocations: 0 / 1.365 GB, free: 11.99 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.665e-06/0.363, allocations: 0 / 1.365 GB, free: 11.99 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.363, allocations: 0 / 1.365 GB, free: 11.99 MB / 1.061 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.0009483/0.3639, allocations: 306.1 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 6.41e-05/0.364, allocations: 12.03 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.91e-05/0.3641, allocations: 34.73 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003097/0.3644, allocations: 12.89 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.3645, allocations: 114.5 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.3646, allocations: 4.375 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.3646, allocations: 4.375 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002644/0.3648, allocations: 82.2 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001165/0.365, allocations: 7.938 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.365, allocations: 0 / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.365, allocations: 4 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.3652, allocations: 63.83 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006738/0.3659, allocations: 275.7 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.3661, allocations: 74.52 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.3662, allocations: 45.89 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.3663, allocations: 0 / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000311/0.3666, allocations: 91.48 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.914e-06/0.3666, allocations: 8 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0005727/0.3671, allocations: 165.5 kB / 1.367 GB, free: 10.57 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.3672, allocations: 59.39 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.3673, allocations: 109.8 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.3674, allocations: 29.7 kB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.135e-05/0.3674, allocations: 84.38 kB / 1.367 GB, free: 10.26 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.3675, allocations: 31.73 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.3676, allocations: 33.72 kB / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002808/0.3679, allocations: 322.8 kB / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.368, allocations: 43.97 kB / 1.367 GB, free: 9.82 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.3682, allocations: 54.55 kB / 1.367 GB, free: 9.758 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003358/0.3685, allocations: 98.47 kB / 1.368 GB, free: 9.652 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3685, allocations: 0 / 1.368 GB, free: 9.652 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003383/0.3689, allocations: 153.5 kB / 1.368 GB, free: 9.496 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3689, allocations: 8 kB / 1.368 GB, free: 9.488 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.3689, allocations: 3.984 kB / 1.368 GB, free: 9.484 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3689, allocations: 0 / 1.368 GB, free: 9.484 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.369, allocations: 19.98 kB / 1.368 GB, free: 9.465 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.3691, allocations: 11.92 kB / 1.368 GB, free: 9.453 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.359e-05/0.3691, allocations: 8 kB / 1.368 GB, free: 9.445 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3691, allocations: 4.375 kB / 1.368 GB, free: 9.441 MB / 1.061 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.0001201/0.3693, allocations: 129.8 kB / 1.368 GB, free: 9.305 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.017e-05/0.3693, allocations: 7.953 kB / 1.368 GB, free: 9.297 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004545/0.3697, allocations: 149.9 kB / 1.368 GB, free: 9.141 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3697, allocations: 0 / 1.368 GB, free: 9.141 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3697, allocations: 0 / 1.368 GB, free: 9.141 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3697, allocations: 0 / 1.368 GB, free: 9.141 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005859/0.3703, allocations: 373.5 kB / 1.368 GB, free: 8.727 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3703, allocations: 4 kB / 1.368 GB, free: 8.723 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.887e-05/0.3704, allocations: 11.98 kB / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.218e-05/0.3704, allocations: 4 kB / 1.368 GB, free: 8.707 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.3704, allocations: 256 / 1.368 GB, free: 8.707 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.3704, allocations: 7.938 kB / 1.368 GB, free: 8.699 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3704, allocations: 0 / 1.368 GB, free: 8.699 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004075/0.3708, allocations: 243.3 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.159e-05/0.3709, allocations: 11.95 kB / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.3709, allocations: 4 kB / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.371, allocations: 15.92 kB / 1.369 GB, free: 8.414 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.371, allocations: 7.922 kB / 1.369 GB, free: 8.406 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.3711, allocations: 8 kB / 1.369 GB, free: 8.398 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.58e-05/0.3711, allocations: 83.27 kB / 1.369 GB, free: 8.316 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3711, allocations: 0 / 1.369 GB, free: 8.316 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002705/0.3714, allocations: 20 kB / 1.369 GB, free: 8.297 MB / 1.061 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.000818/0.3722, allocations: 0.7828 MB / 1.37 GB, free: 7.488 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003154/0.3725, allocations: 91.88 kB / 1.37 GB, free: 7.398 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3725, allocations: 0 / 1.37 GB, free: 7.398 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001411/0.3727, allocations: 47.91 kB / 1.37 GB, free: 7.352 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.3729, allocations: 15.92 kB / 1.37 GB, free: 7.336 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.3752, allocations: 1.495 MB / 1.371 GB, free: 5.754 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001562/0.3753, allocations: 75.27 kB / 1.371 GB, free: 5.66 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.14e-05/0.3754, allocations: 12.41 kB / 1.371 GB, free: 5.648 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.503e-05/0.3754, allocations: 23.42 kB / 1.371 GB, free: 5.625 MB / 1.061 GB Notification: Performance of SimCode: time 4.71e-07/0.3754, allocations: 4 kB / 1.371 GB, free: 5.621 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03185/0.4073, allocations: 2.633 MB / 1.374 GB, free: 3.133 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.02, allocations: 12.94 kB / 1.374 GB, free: 3.125 MB / 1.061 GB " [Timeout remaining time 288] (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 800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.150902829132974]