Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 105.7 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 185.9 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 225.6 MB / 249.3 MB, free: 3.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.536/2.536, allocations: 476.7 MB / 0.7628 GB, free: 15.13 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 71.89 kB / 1.107 GB, free: 5.191 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7991/0.8011, allocations: 168.7 MB / 1.271 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001576/0.8027, allocations: 0.6909 MB / 1.272 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001011/0.8037, allocations: 1.067 MB / 1.273 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.922e-05/0.8038, allocations: 0 / 1.273 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.269e-05/0.8038, allocations: 5.25 kB / 1.273 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.626e-05/0.8038, allocations: 9.766 kB / 1.273 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.8041, allocations: 42.88 kB / 1.273 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.344e-05/0.8042, allocations: 54.89 kB / 1.273 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.674e-05/0.8042, allocations: 5.547 kB / 1.273 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.96e-05/0.8043, allocations: 23.23 kB / 1.273 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.188e-05/0.8044, allocations: 25.28 kB / 1.273 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.8044, allocations: 3.906 kB / 1.273 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.989e-05/0.8044, allocations: 22.39 kB / 1.273 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.74e-05/0.8044, allocations: 13.03 kB / 1.273 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.085e-05/0.8045, allocations: 23.59 kB / 1.273 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.8046, allocations: 60.92 kB / 1.273 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.8046, allocations: 0.6562 kB / 1.273 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.793e-06/0.8046, allocations: 0.7969 kB / 1.273 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.8046, allocations: 0.875 kB / 1.273 GB, free: 6.383 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004576/0.8051, allocations: 366 kB / 1.274 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.8051, allocations: 13.69 kB / 1.274 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.447e-05/0.8051, allocations: 42.03 kB / 1.274 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.678e-05/0.8052, allocations: 6.453 kB / 1.274 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.443e-05/0.8052, allocations: 165.1 kB / 1.274 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.8052, allocations: 2 kB / 1.274 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.8052, allocations: 7.625 kB / 1.274 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001831/0.8054, allocations: 72.44 kB / 1.274 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.8054, allocations: 3.938 kB / 1.274 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.188e-06/0.8054, allocations: 0.9375 kB / 1.274 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.8054, allocations: 0.625 kB / 1.274 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.8056, allocations: 44.3 kB / 1.274 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003246/0.8059, allocations: 285.1 kB / 1.274 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.8061, allocations: 62.42 kB / 1.274 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.232e-05/0.8062, allocations: 27.77 kB / 1.274 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.8062, allocations: 0.9375 kB / 1.274 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.8064, allocations: 73.81 kB / 1.274 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.734e-06/0.8064, allocations: 0 / 1.274 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003668/0.8067, allocations: 126.8 kB / 1.275 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.215e-05/0.8068, allocations: 52.56 kB / 1.275 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.977e-05/0.8068, allocations: 107.6 kB / 1.275 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.8068, allocations: 31.53 kB / 1.275 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.141e-05/0.8068, allocations: 87.02 kB / 1.275 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.8069, allocations: 23 kB / 1.275 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.666e-05/0.8069, allocations: 27.41 kB / 1.275 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.268e-05/0.8069, allocations: 322.8 kB / 1.275 GB, free: 4.594 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.675e-05/0.807, allocations: 24.41 kB / 1.275 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.979e-05/0.8071, allocations: 62.7 kB / 1.275 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001842/0.8073, allocations: 95.28 kB / 1.275 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.8073, allocations: 0 / 1.275 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002397/0.8076, allocations: 121.2 kB / 1.276 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.8076, allocations: 5.406 kB / 1.276 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.8076, allocations: 1.531 kB / 1.276 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.8076, allocations: 2.375 kB / 1.276 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.8077, allocations: 21.02 kB / 1.276 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.8077, allocations: 1.75 kB / 1.276 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.633e-05/0.8078, allocations: 7.047 kB / 1.276 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.8078, allocations: 8.922 kB / 1.276 GB, free: 4.406 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 5.05e-05/0.8078, allocations: 129.2 kB / 1.276 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.209e-05/0.8078, allocations: 9.609 kB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002461/0.8081, allocations: 107.5 kB / 1.276 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.8081, allocations: 1.156 kB / 1.276 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.8081, allocations: 0.9688 kB / 1.276 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.8081, allocations: 2.719 kB / 1.276 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003333/0.8084, allocations: 361.9 kB / 1.276 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.8084, allocations: 0.8125 kB / 1.276 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.8085, allocations: 15.52 kB / 1.276 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.113e-06/0.8085, allocations: 0.7812 kB / 1.276 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.8085, allocations: 0.75 kB / 1.276 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.8085, allocations: 0.5312 kB / 1.276 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.8085, allocations: 0.875 kB / 1.276 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002353/0.8087, allocations: 203.1 kB / 1.276 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.366e-05/0.8087, allocations: 78.73 kB / 1.276 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.8088, allocations: 1.75 kB / 1.276 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.279e-05/0.8089, allocations: 12.42 kB / 1.276 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.332e-05/0.8089, allocations: 8.891 kB / 1.276 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.8089, allocations: 2.688 kB / 1.276 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.216e-05/0.8089, allocations: 90 kB / 1.277 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.8089, allocations: 4.75 kB / 1.277 GB, free: 3.527 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003536/0.8093, allocations: 10.84 kB / 1.277 GB, free: 3.527 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000409/0.8097, allocations: 0.7433 MB / 1.277 GB, free: 2.84 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002371/0.8099, allocations: 76.3 kB / 1.277 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.8099, allocations: 0 / 1.277 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.81, allocations: 30.39 kB / 1.277 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.8103, allocations: 15.42 kB / 1.277 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.8115, allocations: 1.421 MB / 1.279 GB, free: 17.5 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.8118, allocations: 0.6879 MB / 1.279 GB, free: 16.8 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.858e-05/0.8118, allocations: 5 kB / 1.279 GB, free: 16.8 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.299e-05/0.8118, allocations: 20.22 kB / 1.279 GB, free: 16.79 MB / 1.014 GB Notification: Performance of SimCode: time 4.01e-07/0.8118, allocations: 3.938 kB / 1.279 GB, free: 16.79 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02322/0.835, allocations: 1.794 MB / 1.281 GB, free: 16.4 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.851/7.686, allocations: 14.19 kB / 1.281 GB, free: 16.39 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_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_ZeroOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable zerOrdHol.u in file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv. Warning: Get data of variable zerOrdHol.u from file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.17782088900276]