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.002025/0.002025, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.003141/0.003141, allocations: 213.8 kB / 22.25 MB, free: 4.859 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.502/1.502, allocations: 230.6 MB / 256 MB, free: 7.785 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.194/3.194, allocations: 0.4892 GB / 0.7943 GB, free: 35.54 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.002067/0.002067, allocations: 72.14 kB / 1.153 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3307, allocations: 176.1 MB / 1.325 GB, free: 2.438 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001919/0.3326, allocations: 0.6631 MB / 1.326 GB, free: 1.781 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001423/0.334, allocations: 1.085 MB / 1.327 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.693e-05/0.334, allocations: 0 / 1.327 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.933e-05/0.3341, allocations: 3.938 kB / 1.327 GB, free: 0.6797 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.824e-05/0.3341, allocations: 7.922 kB / 1.327 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002827/0.3344, allocations: 47.84 kB / 1.327 GB, free: 0.625 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.3345, allocations: 55.83 kB / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.737e-05/0.3346, allocations: 8 kB / 1.327 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 6.094e-05/0.3347, allocations: 23.86 kB / 1.327 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.484e-05/0.3347, allocations: 15.92 kB / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.3347, allocations: 4 kB / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.723e-05/0.3348, allocations: 19.98 kB / 1.327 GB, free: 0.5 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.994e-05/0.3348, allocations: 15.92 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.236e-05/0.3348, allocations: 15.92 kB / 1.327 GB, free: 480 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.335, allocations: 64 kB / 1.327 GB, free: 416 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.335, allocations: 0 / 1.327 GB, free: 416 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.513e-06/0.335, allocations: 0 / 1.327 GB, free: 416 kB / 1.014 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.335, allocations: 4 kB / 1.327 GB, free: 412 kB / 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.0005023/0.3355, allocations: 290.2 kB / 1.327 GB, free: 88 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.3355, allocations: 8.031 kB / 1.327 GB, free: 80 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.77e-05/0.3356, allocations: 38.75 kB / 1.327 GB, free: 32 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.107e-05/0.3356, allocations: 4.938 kB / 1.327 GB, free: 28 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.3358, allocations: 122.3 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.3358, allocations: 4.375 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/0.3358, allocations: 4.375 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001813/0.336, allocations: 58.23 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.336, allocations: 7.938 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.336, allocations: 0 / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.336, allocations: 0 / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.3362, allocations: 47.95 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004561/0.3366, allocations: 255.8 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.3368, allocations: 50.55 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.636e-05/0.3369, allocations: 28.97 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.3369, allocations: 0 / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002063/0.3371, allocations: 71.38 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.3371, allocations: 4 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003924/0.3375, allocations: 121.5 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.3376, allocations: 51.41 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.527e-05/0.3377, allocations: 109.8 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.3377, allocations: 33.7 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.895e-05/0.3377, allocations: 80.14 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.3378, allocations: 19.84 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/0.3378, allocations: 21.7 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3379, allocations: 322.8 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.3381, allocations: 23.97 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.3382, allocations: 68.14 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.3384, allocations: 88.19 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.3384, allocations: 4 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002746/0.3387, allocations: 113.6 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.3387, allocations: 11.94 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.3387, allocations: 0 / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.3387, allocations: 0 / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.3388, allocations: 15.98 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.3388, allocations: 7.984 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.61e-05/0.3389, allocations: 4 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.3389, allocations: 8 kB / 1.329 GB, free: 14.12 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 9.612e-05/0.339, allocations: 118.3 kB / 1.329 GB, free: 13.99 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/0.339, allocations: 7.938 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002821/0.3393, allocations: 110 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3393, allocations: 0 / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3393, allocations: 0 / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3393, allocations: 0 / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004468/0.3398, allocations: 317.8 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3398, allocations: 4.062 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.204e-05/0.3398, allocations: 11.98 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3398, allocations: 4 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.739e-06/0.3398, allocations: 4 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3398, allocations: 320 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3398, allocations: 0 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.3401, allocations: 195.4 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.718e-06/0.3402, allocations: 7.891 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.3402, allocations: 8 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.243e-05/0.3403, allocations: 7.984 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.3403, allocations: 7.922 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.3403, allocations: 8 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.604e-05/0.3404, allocations: 87.27 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3404, allocations: 0 / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002475/0.3406, allocations: 12 kB / 1.33 GB, free: 13.14 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.0006443/0.3412, allocations: 0.732 MB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002549/0.3415, allocations: 63.89 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3415, allocations: 192 / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.3416, allocations: 35.92 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.3419, allocations: 15.86 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.3437, allocations: 1.411 MB / 1.332 GB, free: 10.76 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.63e-05/0.3437, allocations: 77.11 kB / 1.332 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.189e-05/0.3438, allocations: 4 kB / 1.332 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.14e-05/0.3438, allocations: 15.44 kB / 1.332 GB, free: 10.64 MB / 1.029 GB Notification: Performance of SimCode: time 5.31e-07/0.3438, allocations: 0 / 1.332 GB, free: 10.64 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.3723, allocations: 2.331 MB / 1.334 GB, free: 8.445 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.77, allocations: 8.875 kB / 1.334 GB, free: 8.441 MB / 1.029 GB " [Timeout remaining time 288] (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: 18.684253943152726]