Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001922/0.001922, allocations: 108.3 kB / 16.45 MB, free: 6.5 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.002428/0.002428, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.469/1.469, 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 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.313/3.313, allocations: 0.49 GB / 0.7916 GB, free: 33.53 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",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.003064/0.003064, allocations: 69.84 kB / 1.149 GB, free: 26.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4246/0.4277, allocations: 176.1 MB / 1.321 GB, free: 3.34 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.003141/0.4308, allocations: 0.6765 MB / 1.321 GB, free: 2.668 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002662/0.4335, allocations: 1.093 MB / 1.323 GB, free: 1.562 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.147e-05/0.4335, allocations: 11.88 kB / 1.323 GB, free: 1.551 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.398e-05/0.4336, allocations: 0 / 1.323 GB, free: 1.551 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.977e-05/0.4337, allocations: 7.875 kB / 1.323 GB, free: 1.543 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004156/0.4341, allocations: 51.89 kB / 1.323 GB, free: 1.492 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001561/0.4343, allocations: 47.84 kB / 1.323 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.4344, allocations: 4 kB / 1.323 GB, free: 1.441 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.4345, allocations: 23.92 kB / 1.323 GB, free: 1.418 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.553e-05/0.4346, allocations: 23.91 kB / 1.323 GB, free: 1.395 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.4346, allocations: 4 kB / 1.323 GB, free: 1.391 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.4347, allocations: 23.97 kB / 1.323 GB, free: 1.367 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.808e-05/0.4347, allocations: 7.938 kB / 1.323 GB, free: 1.359 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.165e-05/0.4348, allocations: 23.92 kB / 1.323 GB, free: 1.336 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002204/0.435, allocations: 64 kB / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.435, allocations: 4 kB / 1.323 GB, free: 1.27 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.134e-06/0.435, allocations: 3.938 kB / 1.323 GB, free: 1.266 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.435, allocations: 0 / 1.323 GB, free: 1.266 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007817/0.4358, allocations: 363.3 kB / 1.323 GB, free: 0.8594 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.4359, allocations: 11.98 kB / 1.323 GB, free: 0.8477 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.134e-05/0.4359, allocations: 34.75 kB / 1.323 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.4361, allocations: 4.938 kB / 1.323 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.4363, allocations: 176.3 kB / 1.323 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.4363, allocations: 4.375 kB / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.034e-05/0.4363, allocations: 8.375 kB / 1.323 GB, free: 0.5781 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003051/0.4366, allocations: 58.23 kB / 1.323 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.4367, allocations: 3.938 kB / 1.323 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.4367, allocations: 0 / 1.323 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.301e-06/0.4367, allocations: 0 / 1.323 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003311/0.437, allocations: 47.89 kB / 1.323 GB, free: 476 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000783/0.4378, allocations: 288.8 kB / 1.324 GB, free: 136 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.438, allocations: 50.55 kB / 1.324 GB, free: 76 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.4382, allocations: 24.97 kB / 1.324 GB, free: 48 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.4382, allocations: 4 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003086/0.4385, allocations: 79.31 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 2.014e-06/0.4385, allocations: 0 / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0006684/0.4392, allocations: 117.6 kB / 1.324 GB, free: 15.83 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.578e-05/0.4392, allocations: 51.41 kB / 1.324 GB, free: 15.77 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.4394, allocations: 113.8 kB / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.4394, allocations: 29.7 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.529e-05/0.4395, allocations: 88.14 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.4395, allocations: 15.84 kB / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.114e-05/0.4396, allocations: 29.7 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002079/0.4398, allocations: 318.8 kB / 1.325 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.44, allocations: 35.84 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.4402, allocations: 60.27 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/0.4406, allocations: 80.2 kB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.4406, allocations: 4.25 kB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005313/0.4412, allocations: 121.5 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.4412, allocations: 6.5 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.4412, allocations: 8 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.4412, allocations: 0 / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.4414, allocations: 15.98 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.4414, allocations: 4.156 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.4416, allocations: 11.98 kB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.4416, allocations: 4 kB / 1.325 GB, free: 14.77 MB / 1.029 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 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,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 (9): * Single equations (assignments): 9 * 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.0001454/0.4417, allocations: 128.4 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.4417, allocations: 3.953 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004534/0.4422, allocations: 102 kB / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.4422, allocations: 0 / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4422, allocations: 4 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.4422, allocations: 3.984 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007588/0.443, allocations: 346.5 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.443, allocations: 0 / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.4431, allocations: 15.98 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.4431, allocations: 0 / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.4431, allocations: 0 / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.4431, allocations: 4 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.4431, allocations: 4 kB / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005087/0.4436, allocations: 195.3 kB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.548e-05/0.4437, allocations: 89 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.568e-05/0.4437, allocations: 0 / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.4439, allocations: 8.172 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.4439, allocations: 11.94 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.4439, allocations: 11.92 kB / 1.326 GB, free: 13.76 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.778e-05/0.444, allocations: 87.28 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.41e-07/0.444, allocations: 0 / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004534/0.4445, allocations: 8 kB / 1.326 GB, free: 13.66 MB / 1.029 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0009711/0.4454, allocations: 0.736 MB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004188/0.4459, allocations: 63.88 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4459, allocations: 0 / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.4461, allocations: 23.98 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.4465, allocations: 20.23 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.4493, allocations: 1.414 MB / 1.328 GB, free: 11.28 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.4498, allocations: 0.6807 MB / 1.329 GB, free: 10.57 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.223e-05/0.4498, allocations: 7.984 kB / 1.329 GB, free: 10.56 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.189e-05/0.4499, allocations: 15.44 kB / 1.329 GB, free: 10.55 MB / 1.029 GB Notification: Performance of SimCode: time 7.11e-07/0.4499, allocations: 0 / 1.329 GB, free: 10.55 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03234/0.4822, allocations: 1.788 MB / 1.331 GB, free: 8.863 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.1/8.582, allocations: 15.98 kB / 1.331 GB, free: 8.848 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable unitDelay1.u in file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv. Warning: Get data of variable unitDelay1.u from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.74259333498776]