Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001014/0.001014, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008989/0.0008989, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9263/0.9263, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.701/1.701, allocations: 359 MB / 0.6037 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.316e-06/3.316e-06, allocations: 0 / 0.9505 GB, free: 3.516 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.305e-05/2.637e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.512 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.0014/0.001426, allocations: 0.6691 MB / 0.9511 GB, free: 2.84 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001051/0.002477, allocations: 1.081 MB / 0.9522 GB, free: 1.746 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.853e-05/0.002526, allocations: 0 / 0.9522 GB, free: 1.746 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.894e-05/0.002555, allocations: 0 / 0.9522 GB, free: 1.746 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.605e-05/0.002621, allocations: 11.88 kB / 0.9522 GB, free: 1.734 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.002923, allocations: 47.7 kB / 0.9522 GB, free: 1.688 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 8.925e-05/0.003012, allocations: 43.86 kB / 0.9523 GB, free: 1.645 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.871e-05/0.003111, allocations: 3.984 kB / 0.9523 GB, free: 1.641 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 8.597e-05/0.003197, allocations: 27.97 kB / 0.9523 GB, free: 1.613 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.594e-05/0.003253, allocations: 15.92 kB / 0.9523 GB, free: 1.598 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.003273, allocations: 4 kB / 0.9523 GB, free: 1.594 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 6.3e-05/0.003336, allocations: 23.98 kB / 0.9524 GB, free: 1.57 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.026e-05/0.003356, allocations: 7.984 kB / 0.9524 GB, free: 1.562 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.28e-05/0.003389, allocations: 19.92 kB / 0.9524 GB, free: 1.543 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.003523, allocations: 55.84 kB / 0.9524 GB, free: 1.488 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.003526, allocations: 0 / 0.9524 GB, free: 1.488 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.303e-06/0.003527, allocations: 0 / 0.9524 GB, free: 1.488 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.003533, allocations: 0 / 0.9524 GB, free: 1.488 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004427/0.003975, allocations: 286.2 kB / 0.9527 GB, free: 1.176 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.00402, allocations: 8.031 kB / 0.9527 GB, free: 1.168 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.197e-05/0.004052, allocations: 42.62 kB / 0.9528 GB, free: 1.117 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.103e-05/0.004123, allocations: 8.875 kB / 0.9528 GB, free: 1.109 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.082e-05/0.004204, allocations: 113.7 kB / 0.9529 GB, free: 0.9727 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.004216, allocations: 8.375 kB / 0.9529 GB, free: 0.9648 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.293e-05/0.004229, allocations: 384 / 0.9529 GB, free: 0.9648 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/0.004372, allocations: 58.23 kB / 0.9529 GB, free: 0.9023 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.00438, allocations: 192 / 0.9529 GB, free: 0.9023 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.004389, allocations: 384 / 0.9529 GB, free: 0.9023 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.004395, allocations: 8.125 kB / 0.9529 GB, free: 0.8945 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.682e-05/0.004492, allocations: 39.95 kB / 0.953 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003719/0.004864, allocations: 243.9 kB / 0.9532 GB, free: 0.5742 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 8.399e-05/0.004948, allocations: 42.55 kB / 0.9533 GB, free: 0.5234 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.79e-05/0.004996, allocations: 24.94 kB / 0.9533 GB, free: 0.4961 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.005016, allocations: 3.938 kB / 0.9533 GB, free: 0.4922 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.005186, allocations: 71.36 kB / 0.9534 GB, free: 420 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=5): time 2.144e-06/0.005188, allocations: 3.984 kB / 0.9534 GB, free: 416 kB / 0.9011 GB Notification: Performance of matching and sorting (n=5): time 0.000259/0.005447, allocations: 113.7 kB / 0.9535 GB, free: 296 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.005486, allocations: 51.41 kB / 0.9535 GB, free: 232 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.523e-05/0.005551, allocations: 109.8 kB / 0.9536 GB, free: 112 kB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.005563, allocations: 25.7 kB / 0.9536 GB, free: 80 kB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 5.277e-05/0.005616, allocations: 88.14 kB / 0.9537 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.005636, allocations: 19.89 kB / 0.9537 GB, free: 15.97 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.005672, allocations: 17.72 kB / 0.9538 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.692e-05/0.005749, allocations: 314.8 kB / 0.9541 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.586e-05/0.005804, allocations: 32.03 kB / 0.9541 GB, free: 15.6 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.984e-05/0.005864, allocations: 51.41 kB / 0.9541 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.005973, allocations: 67.34 kB / 0.9542 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.005976, allocations: 0 / 0.9542 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000151/0.006127, allocations: 113.4 kB / 0.9543 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.006143, allocations: 8 kB / 0.9543 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.006158, allocations: 0 / 0.9543 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.006172, allocations: 4 kB / 0.9543 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.777e-05/0.00625, allocations: 11.98 kB / 0.9543 GB, free: 15.32 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.006255, allocations: 0 / 0.9543 GB, free: 15.32 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.71e-05/0.006293, allocations: 16.11 kB / 0.9544 GB, free: 15.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.0063, allocations: 4 kB / 0.9544 GB, free: 15.3 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 6.97e-05/0.00637, allocations: 125.7 kB / 0.9545 GB, free: 15.16 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.859e-06/0.00638, allocations: 11.89 kB / 0.9545 GB, free: 15.15 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001655/0.006545, allocations: 93.7 kB / 0.9546 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.006548, allocations: 0 / 0.9546 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.006553, allocations: 0 / 0.9546 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.006557, allocations: 0 / 0.9546 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002734/0.00683, allocations: 309.5 kB / 0.9549 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.006832, allocations: 0 / 0.9549 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.858e-05/0.00686, allocations: 7.984 kB / 0.9549 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.006863, allocations: 4 kB / 0.9549 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.295e-06/0.006871, allocations: 0 / 0.9549 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.006873, allocations: 0 / 0.9549 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.006874, allocations: 0 / 0.9549 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001449/0.007018, allocations: 183.6 kB / 0.9551 GB, free: 14.49 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.746e-06/0.007027, allocations: 11.95 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.007041, allocations: 4 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.395e-05/0.007085, allocations: 4 kB / 0.9551 GB, free: 14.47 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.007124, allocations: 7.922 kB / 0.9551 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.00713, allocations: 4 kB / 0.9551 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.376e-05/0.007164, allocations: 91.72 kB / 0.9552 GB, free: 14.37 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007164, allocations: 0 / 0.9552 GB, free: 14.37 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001727/0.007337, allocations: 12 kB / 0.9552 GB, free: 14.36 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000414/0.007751, allocations: 0.7202 MB / 0.9559 GB, free: 13.61 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001681/0.007919, allocations: 55.89 kB / 0.9559 GB, free: 13.56 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.007921, allocations: 0 / 0.9559 GB, free: 13.56 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.534e-05/0.007976, allocations: 27.97 kB / 0.956 GB, free: 13.53 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.00819, allocations: 18.73 kB / 0.956 GB, free: 13.52 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.009291, allocations: 1.371 MB / 0.9573 GB, free: 12.05 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.775e-05/0.009338, allocations: 63.34 kB / 0.9574 GB, free: 11.96 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.09e-05/0.009369, allocations: 7.984 kB / 0.9574 GB, free: 11.96 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.849e-05/0.009408, allocations: 20.5 kB / 0.9574 GB, free: 11.94 MB / 0.9167 GB Notification: Performance of SimCode: time 8.42e-07/0.009409, allocations: 0 / 0.9574 GB, free: 11.94 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01562/0.02503, allocations: 2.404 MB / 0.9598 GB, free: 9.68 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.742/6.768, allocations: 10.98 kB / 0.9598 GB, free: 9.672 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_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_UnitDelay.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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: 10.950195733457804]