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.001316/0.001316, allocations: 110.4 kB / 18.94 MB, free: 2.812 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.001497/0.001497, allocations: 222.7 kB / 22.26 MB, free: 5.191 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.485/1.485, allocations: 230.6 MB / 256 MB, free: 8.039 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.792/2.792, allocations: 476.7 MB / 0.7707 GB, free: 4.301 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.002125/0.002125, allocations: 63.28 kB / 1.117 GB, free: 40.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.315, allocations: 170 MB / 1.283 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002053/0.3171, allocations: 0.6934 MB / 1.284 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.3187, allocations: 1.114 MB / 1.285 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.447e-05/0.3188, allocations: 3.938 kB / 1.285 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.409e-05/0.3188, allocations: 3.938 kB / 1.285 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.3189, allocations: 11.92 kB / 1.285 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003382/0.3193, allocations: 51.83 kB / 1.285 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.3194, allocations: 67.84 kB / 1.285 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.97e-05/0.3195, allocations: 19.91 kB / 1.285 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.665e-05/0.3196, allocations: 27.92 kB / 1.285 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.304e-05/0.3196, allocations: 31.91 kB / 1.285 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.3197, allocations: 8 kB / 1.285 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.76e-05/0.3198, allocations: 27.92 kB / 1.285 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.713e-05/0.3198, allocations: 19.91 kB / 1.285 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.558e-05/0.3198, allocations: 27.86 kB / 1.285 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.32, allocations: 79.33 kB / 1.285 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.32, allocations: 0 / 1.285 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.262e-06/0.32, allocations: 0 / 1.285 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.32, allocations: 4 kB / 1.286 GB, free: 9.586 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.0007042/0.3207, allocations: 311.8 kB / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.3208, allocations: 15.97 kB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.304e-05/0.3208, allocations: 38.73 kB / 1.286 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.424e-05/0.3209, allocations: 4.938 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.3211, allocations: 114.4 kB / 1.286 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.3211, allocations: 8.312 kB / 1.286 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.3211, allocations: 12.38 kB / 1.286 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002449/0.3213, allocations: 78.2 kB / 1.286 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3214, allocations: 3.938 kB / 1.286 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.3214, allocations: 0 / 1.286 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.3214, allocations: 8 kB / 1.286 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000219/0.3216, allocations: 51.95 kB / 1.286 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005842/0.3222, allocations: 283.8 kB / 1.286 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002139/0.3224, allocations: 74.48 kB / 1.286 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.3225, allocations: 40.83 kB / 1.286 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.3225, allocations: 0 / 1.286 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003224/0.3229, allocations: 95.48 kB / 1.287 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.683e-06/0.3229, allocations: 0 / 1.287 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0005281/0.3234, allocations: 177.7 kB / 1.287 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.3234, allocations: 55.41 kB / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.983e-05/0.3235, allocations: 106 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.3236, allocations: 33.64 kB / 1.287 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.69e-05/0.3236, allocations: 100.3 kB / 1.287 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.476e-05/0.3237, allocations: 23.8 kB / 1.287 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-05/0.3237, allocations: 29.7 kB / 1.287 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3239, allocations: 326.8 kB / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.324, allocations: 31.98 kB / 1.287 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.3242, allocations: 66.53 kB / 1.287 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.3244, allocations: 98.47 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3244, allocations: 4 kB / 1.288 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003487/0.3247, allocations: 149.5 kB / 1.288 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.3248, allocations: 4 kB / 1.288 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.3248, allocations: 3.938 kB / 1.288 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.3248, allocations: 4 kB / 1.288 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.3249, allocations: 15.98 kB / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.3249, allocations: 4 kB / 1.288 GB, free: 7.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.008e-05/0.325, allocations: 11.92 kB / 1.288 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.325, allocations: 8 kB / 1.288 GB, free: 7.023 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.0001355/0.3252, allocations: 126.2 kB / 1.288 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.83e-05/0.3252, allocations: 7.953 kB / 1.288 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003744/0.3256, allocations: 145.9 kB / 1.288 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.3256, allocations: 0 / 1.288 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.3256, allocations: 3.984 kB / 1.288 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3256, allocations: 0 / 1.288 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006024/0.3262, allocations: 389.4 kB / 1.288 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.3262, allocations: 3.984 kB / 1.288 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-05/0.3263, allocations: 8 kB / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3263, allocations: 0 / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.3263, allocations: 4.266 kB / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.3263, allocations: 256 / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3263, allocations: 4 kB / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004092/0.3267, allocations: 243.3 kB / 1.289 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.481e-05/0.3267, allocations: 3.953 kB / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.71e-05/0.3267, allocations: 7.984 kB / 1.289 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.3269, allocations: 8 kB / 1.289 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.3269, allocations: 11.92 kB / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.3269, allocations: 3.984 kB / 1.289 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.319e-05/0.327, allocations: 91.22 kB / 1.289 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6.1e-08/0.327, allocations: 0 / 1.289 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000285/0.3273, allocations: 23.94 kB / 1.289 GB, free: 5.875 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.0007547/0.328, allocations: 0.7709 MB / 1.29 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003282/0.3283, allocations: 95.88 kB / 1.29 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3283, allocations: 0 / 1.29 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.3285, allocations: 47.84 kB / 1.29 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.3288, allocations: 15.92 kB / 1.29 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/0.3308, allocations: 1.502 MB / 1.291 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.3311, allocations: 0.6923 MB / 1.292 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.39e-05/0.3312, allocations: 4.438 kB / 1.292 GB, free: 2.609 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.836e-05/0.3312, allocations: 23.42 kB / 1.292 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of SimCode: time 7.31e-07/0.3312, allocations: 4 kB / 1.292 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02913/0.3604, allocations: 2.201 MB / 1.294 GB, free: 0.5195 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.48, allocations: 14.06 kB / 1.294 GB, free: 0.5117 MB / 0.9825 GB " [Timeout remaining time 288] (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: 18.1863499709998]