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.0007904/0.0007904, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008078/0.0008078, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8848/0.8848, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.722/1.722, allocations: 377.9 MB / 0.6221 GB, free: 8.656 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.736e-06/2.736e-06, allocations: 0 / 0.9809 GB, free: 2.633 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.974e-05/2.247e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.629 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001387/0.00141, allocations: 0.674 MB / 0.9816 GB, free: 1.957 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.002467, allocations: 1.085 MB / 0.9827 GB, free: 0.8594 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.575e-05/0.002512, allocations: 0 / 0.9827 GB, free: 0.8594 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.842e-05/0.002541, allocations: 3.938 kB / 0.9827 GB, free: 0.8555 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.078e-05/0.002602, allocations: 11.86 kB / 0.9827 GB, free: 0.8438 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.002893, allocations: 47.77 kB / 0.9827 GB, free: 0.7969 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.031e-05/0.002983, allocations: 47.84 kB / 0.9828 GB, free: 0.75 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.863e-05/0.003082, allocations: 15.98 kB / 0.9828 GB, free: 0.7344 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.766e-05/0.003159, allocations: 23.92 kB / 0.9828 GB, free: 0.7109 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.484e-05/0.003204, allocations: 23.91 kB / 0.9828 GB, free: 0.6875 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.003221, allocations: 4 kB / 0.9828 GB, free: 0.6836 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.019e-05/0.003281, allocations: 15.98 kB / 0.9828 GB, free: 0.668 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.89e-05/0.0033, allocations: 11.98 kB / 0.9829 GB, free: 0.6562 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.083e-05/0.003331, allocations: 15.94 kB / 0.9829 GB, free: 0.6406 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.003465, allocations: 63.81 kB / 0.9829 GB, free: 0.5781 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.003468, allocations: 0 / 0.9829 GB, free: 0.5781 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.102e-06/0.00347, allocations: 0 / 0.9829 GB, free: 0.5781 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.003474, allocations: 4 kB / 0.9829 GB, free: 0.5742 MB / 0.9323 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.0004126/0.003886, allocations: 296.3 kB / 0.9832 GB, free: 260 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.003927, allocations: 8.031 kB / 0.9832 GB, free: 252 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.232e-05/0.003959, allocations: 34.75 kB / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.905e-05/0.004028, allocations: 8.891 kB / 0.9833 GB, free: 200 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.853e-05/0.004107, allocations: 109.7 kB / 0.9834 GB, free: 64 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.004119, allocations: 4.359 kB / 0.9834 GB, free: 60 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.004129, allocations: 4.375 kB / 0.9834 GB, free: 56 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001578/0.004287, allocations: 66.17 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.004294, allocations: 4.188 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.004304, allocations: 384 / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.004309, allocations: 4.125 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001022/0.004412, allocations: 43.95 kB / 0.9835 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003572/0.004769, allocations: 247.9 kB / 0.9837 GB, free: 15.65 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001067/0.004875, allocations: 54.48 kB / 0.9838 GB, free: 15.59 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.906e-05/0.004925, allocations: 28.97 kB / 0.9838 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.004945, allocations: 7.938 kB / 0.9838 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001497/0.005094, allocations: 71.38 kB / 0.9839 GB, free: 15.46 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.005095, allocations: 0 / 0.9839 GB, free: 15.46 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0002602/0.005356, allocations: 117.6 kB / 0.984 GB, free: 15.34 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.005392, allocations: 55.41 kB / 0.984 GB, free: 15.28 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.204e-05/0.005454, allocations: 105.8 kB / 0.9841 GB, free: 15.16 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.005467, allocations: 33.7 kB / 0.9842 GB, free: 15.12 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.635e-05/0.005503, allocations: 92.03 kB / 0.9843 GB, free: 15.03 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.005521, allocations: 15.84 kB / 0.9843 GB, free: 15.02 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.005554, allocations: 25.7 kB / 0.9843 GB, free: 14.98 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.723e-05/0.005631, allocations: 314.8 kB / 0.9846 GB, free: 14.67 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.44e-05/0.005686, allocations: 27.97 kB / 0.9846 GB, free: 14.64 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.61e-05/0.005752, allocations: 60.28 kB / 0.9847 GB, free: 14.57 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.005865, allocations: 84.2 kB / 0.9848 GB, free: 14.47 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.005867, allocations: 0 / 0.9848 GB, free: 14.47 MB / 0.948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001498/0.006017, allocations: 117.5 kB / 0.9849 GB, free: 14.35 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.006029, allocations: 8.156 kB / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.006034, allocations: 4 kB / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.006046, allocations: 0 / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.115e-05/0.006118, allocations: 19.92 kB / 0.9849 GB, free: 14.32 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.006123, allocations: 4.25 kB / 0.9849 GB, free: 14.31 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.574e-05/0.006158, allocations: 15.94 kB / 0.9849 GB, free: 14.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-06/0.006165, allocations: 256 / 0.9849 GB, free: 14.3 MB / 0.948 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 6.452e-05/0.00623, allocations: 120.8 kB / 0.9851 GB, free: 14.17 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-06/0.006238, allocations: 7.938 kB / 0.9851 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001701/0.006408, allocations: 110 kB / 0.9852 GB, free: 14.05 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.00641, allocations: 0 / 0.9852 GB, free: 14.05 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.006414, allocations: 0 / 0.9852 GB, free: 14.05 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.006418, allocations: 3.984 kB / 0.9852 GB, free: 14.05 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.006682, allocations: 317.6 kB / 0.9855 GB, free: 13.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.006684, allocations: 0 / 0.9855 GB, free: 13.69 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.026e-05/0.006714, allocations: 7.984 kB / 0.9855 GB, free: 13.68 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.006716, allocations: 4 kB / 0.9855 GB, free: 13.68 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.006723, allocations: 4 kB / 0.9855 GB, free: 13.67 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.006726, allocations: 3.938 kB / 0.9855 GB, free: 13.67 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.006726, allocations: 0 / 0.9855 GB, free: 13.67 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.006874, allocations: 195.5 kB / 0.9857 GB, free: 13.46 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.328e-06/0.006883, allocations: 11.94 kB / 0.9857 GB, free: 13.45 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.006896, allocations: 0 / 0.9857 GB, free: 13.45 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.956e-05/0.006936, allocations: 11.98 kB / 0.9857 GB, free: 13.44 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.443e-05/0.00697, allocations: 4 kB / 0.9857 GB, free: 13.43 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-06/0.006977, allocations: 7.984 kB / 0.9857 GB, free: 13.43 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002866/0.007264, allocations: 91.27 kB / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.007264, allocations: 192 / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001771/0.007441, allocations: 11.94 kB / 0.9858 GB, free: 13.32 MB / 0.948 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.0003837/0.007825, allocations: 0.7319 MB / 0.9865 GB, free: 12.57 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001636/0.007988, allocations: 76.25 kB / 0.9866 GB, free: 12.49 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.00799, allocations: 0 / 0.9866 GB, free: 12.49 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.5e-05/0.008045, allocations: 27.97 kB / 0.9866 GB, free: 12.46 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.008241, allocations: 12.11 kB / 0.9866 GB, free: 12.45 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.009302, allocations: 1.408 MB / 0.988 GB, free: 10.94 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.454e-05/0.009357, allocations: 74.23 kB / 0.9881 GB, free: 10.85 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.229e-05/0.009389, allocations: 4 kB / 0.9881 GB, free: 10.84 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.043e-05/0.00943, allocations: 16.5 kB / 0.9881 GB, free: 10.83 MB / 0.948 GB Notification: Performance of SimCode: time 8.91e-07/0.00943, allocations: 3.938 kB / 0.9881 GB, free: 10.82 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01656/0.02599, allocations: 2.478 MB / 0.9905 GB, free: 8.5 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.84/6.866, allocations: 9.734 kB / 0.9905 GB, free: 8.496 MB / 0.948 GB " [Timeout remaining time 293] (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/jenkins/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: 11.037936527282]