Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001344/0.001344, allocations: 111 kB / 16.46 MB, free: 6.453 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.001477/0.001477, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.465/1.465, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.768/2.768, allocations: 476.7 MB / 0.7672 GB, free: 5.262 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_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.002043/0.002043, allocations: 75.89 kB / 1.112 GB, free: 1.578 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8093/0.8114, allocations: 169.9 MB / 1.278 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002161/0.8135, allocations: 0.6949 MB / 1.279 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001615/0.8152, allocations: 1.114 MB / 1.28 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.951e-05/0.8152, allocations: 3.938 kB / 1.28 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.276e-05/0.8152, allocations: 7.922 kB / 1.28 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.867e-05/0.8153, allocations: 3.938 kB / 1.28 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.8156, allocations: 51.83 kB / 1.28 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000133/0.8157, allocations: 71.88 kB / 1.28 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.403e-05/0.8158, allocations: 8 kB / 1.28 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.987e-05/0.8159, allocations: 27.92 kB / 1.28 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.404e-05/0.816, allocations: 31.84 kB / 1.28 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.816, allocations: 8 kB / 1.28 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.876e-05/0.8161, allocations: 31.89 kB / 1.28 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.356e-05/0.8161, allocations: 12 kB / 1.28 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.716e-05/0.8161, allocations: 31.86 kB / 1.28 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.8163, allocations: 81.5 kB / 1.28 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.8163, allocations: 0 / 1.28 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8163, allocations: 4 kB / 1.28 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.8163, allocations: 4 kB / 1.28 GB, free: 11.26 MB / 0.9825 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.0006984/0.817, allocations: 379.2 kB / 1.281 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.8171, allocations: 11.97 kB / 1.281 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001314/0.8172, allocations: 38.75 kB / 1.281 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.8173, allocations: 8.922 kB / 1.281 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.8175, allocations: 172.3 kB / 1.281 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.942e-05/0.8175, allocations: 12.31 kB / 1.281 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.8176, allocations: 8.375 kB / 1.281 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002333/0.8178, allocations: 82.14 kB / 1.281 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.8178, allocations: 3.938 kB / 1.281 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.8178, allocations: 4 kB / 1.281 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.8178, allocations: 0 / 1.281 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002192/0.818, allocations: 51.95 kB / 1.281 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005518/0.8186, allocations: 308.8 kB / 1.281 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.8188, allocations: 74.48 kB / 1.281 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.8189, allocations: 40.83 kB / 1.282 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.8189, allocations: 0 / 1.282 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002389/0.8192, allocations: 95.48 kB / 1.282 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 3.646e-06/0.8192, allocations: 3.984 kB / 1.282 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0005165/0.8197, allocations: 173.5 kB / 1.282 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.8198, allocations: 55.41 kB / 1.282 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.408e-05/0.8198, allocations: 109.8 kB / 1.282 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.8199, allocations: 29.7 kB / 1.282 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.07e-05/0.8199, allocations: 96.27 kB / 1.282 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.472e-05/0.82, allocations: 27.83 kB / 1.282 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.699e-05/0.82, allocations: 33.7 kB / 1.282 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002315/0.8203, allocations: 318.8 kB / 1.282 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.8204, allocations: 35.97 kB / 1.282 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.8205, allocations: 73.16 kB / 1.283 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.8208, allocations: 106.8 kB / 1.283 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.8208, allocations: 0 / 1.283 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003522/0.8211, allocations: 153.5 kB / 1.283 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.8212, allocations: 7.938 kB / 1.283 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.8212, allocations: 0 / 1.283 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.8212, allocations: 4 kB / 1.283 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.8213, allocations: 15.98 kB / 1.283 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.8213, allocations: 4 kB / 1.283 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.892e-05/0.8214, allocations: 19.88 kB / 1.283 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.8214, allocations: 4 kB / 1.283 GB, free: 8.496 MB / 0.9825 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.0001114/0.8215, allocations: 134.2 kB / 1.283 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/0.8215, allocations: 0 / 1.283 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003723/0.8219, allocations: 145.9 kB / 1.283 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.8219, allocations: 3.938 kB / 1.283 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.8219, allocations: 0 / 1.283 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.8219, allocations: 0 / 1.283 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006886/0.8226, allocations: 414.4 kB / 1.283 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.8226, allocations: 3.984 kB / 1.283 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.95e-05/0.8227, allocations: 8 kB / 1.284 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.8227, allocations: 0 / 1.284 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.8227, allocations: 3.984 kB / 1.284 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.8227, allocations: 0 / 1.284 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.8227, allocations: 0 / 1.284 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003735/0.8231, allocations: 239.4 kB / 1.284 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.8231, allocations: 85 kB / 1.284 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.8231, allocations: 8.266 kB / 1.284 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.8232, allocations: 11.98 kB / 1.284 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.158e-05/0.8233, allocations: 7.938 kB / 1.284 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.8233, allocations: 7.938 kB / 1.284 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.62e-05/0.8233, allocations: 91.2 kB / 1.284 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.8233, allocations: 0 / 1.284 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002481/0.8236, allocations: 16 kB / 1.284 GB, free: 7.227 MB / 0.9825 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.0007535/0.8244, allocations: 0.7749 MB / 1.285 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003158/0.8247, allocations: 95.88 kB / 1.285 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.8247, allocations: 0 / 1.285 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.8248, allocations: 51.89 kB / 1.285 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.8251, allocations: 18.92 kB / 1.285 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.827, allocations: 1.495 MB / 1.286 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.8274, allocations: 0.6889 MB / 1.287 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.707e-05/0.8274, allocations: 4.438 kB / 1.287 GB, free: 3.961 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.925e-05/0.8275, allocations: 27.36 kB / 1.287 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.8275, allocations: 4 kB / 1.287 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0269/0.8544, allocations: 2.067 MB / 1.289 GB, free: 1.973 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.31/9.164, allocations: 17.98 kB / 1.289 GB, free: 1.961 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 15.250064544845372]