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.0007787/0.0007787, 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.000798/0.000798, allocations: 169.9 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.8709/0.8709, allocations: 177.1 MB / 202.8 MB, free: 5.75 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.655/1.655, allocations: 359 MB / 0.6037 GB, free: 11.09 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 2.935e-06/2.935e-06, allocations: 0 / 0.9505 GB, free: 3.508 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.798e-05/2.092e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.504 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001302/0.001323, allocations: 0.6623 MB / 0.9511 GB, free: 2.836 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.002388, allocations: 1.066 MB / 0.9522 GB, free: 1.758 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.649e-05/0.002434, allocations: 0 / 0.9522 GB, free: 1.758 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.902e-05/0.002463, allocations: 7.922 kB / 0.9522 GB, free: 1.75 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.05e-05/0.002524, allocations: 7.938 kB / 0.9522 GB, free: 1.742 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002787/0.002803, allocations: 51.7 kB / 0.9522 GB, free: 1.691 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 8.413e-05/0.002887, allocations: 43.86 kB / 0.9523 GB, free: 1.648 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.4e-05/0.002981, allocations: 8 kB / 0.9523 GB, free: 1.641 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 7.322e-05/0.003054, allocations: 27.95 kB / 0.9523 GB, free: 1.613 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 3.689e-05/0.003091, allocations: 11.92 kB / 0.9523 GB, free: 1.602 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.003105, allocations: 4 kB / 0.9523 GB, free: 1.598 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.926e-05/0.003165, allocations: 19.98 kB / 0.9523 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.003183, allocations: 11.98 kB / 0.9524 GB, free: 1.566 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.661e-05/0.003209, allocations: 15.92 kB / 0.9524 GB, free: 1.551 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.003339, allocations: 59.78 kB / 0.9524 GB, free: 1.492 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.003341, allocations: 4 kB / 0.9524 GB, free: 1.488 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.032e-06/0.003342, allocations: 0 / 0.9524 GB, free: 1.488 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.003346, 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.0004056/0.003752, allocations: 290.1 kB / 0.9527 GB, free: 1.172 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.003798, allocations: 8.031 kB / 0.9527 GB, free: 1.164 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.914e-05/0.003827, allocations: 38.69 kB / 0.9528 GB, free: 1.117 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.611e-05/0.003893, allocations: 12.92 kB / 0.9528 GB, free: 1.105 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.057e-05/0.003964, allocations: 105.8 kB / 0.9529 GB, free: 0.9766 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.003975, allocations: 4.375 kB / 0.9529 GB, free: 0.9727 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.596e-06/0.003984, allocations: 384 / 0.9529 GB, free: 0.9727 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.004124, allocations: 66.22 kB / 0.9529 GB, free: 0.9023 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.004131, allocations: 192 / 0.9529 GB, free: 0.9023 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.00414, allocations: 8.312 kB / 0.9529 GB, free: 0.8945 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.004146, allocations: 4.125 kB / 0.953 GB, free: 0.8906 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.327e-05/0.004239, allocations: 35.95 kB / 0.953 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003575/0.004597, allocations: 244 kB / 0.9532 GB, free: 0.5742 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 8.707e-05/0.004684, allocations: 38.56 kB / 0.9533 GB, free: 0.5273 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.832e-05/0.004742, allocations: 32.92 kB / 0.9533 GB, free: 0.4922 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.004762, allocations: 7.875 kB / 0.9533 GB, free: 496 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001588/0.004921, allocations: 71.39 kB / 0.9534 GB, free: 412 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.004922, allocations: 0 / 0.9534 GB, free: 412 kB / 0.9011 GB Notification: Performance of matching and sorting (n=5): time 0.000248/0.00517, allocations: 105.6 kB / 0.9535 GB, free: 300 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.00521, allocations: 55.41 kB / 0.9535 GB, free: 232 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.655e-05/0.005277, allocations: 109.8 kB / 0.9536 GB, free: 112 kB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.005289, allocations: 29.7 kB / 0.9536 GB, free: 76 kB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.00534, allocations: 88.08 kB / 0.9537 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.005356, allocations: 15.91 kB / 0.9537 GB, free: 15.97 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.282e-05/0.005389, allocations: 21.7 kB / 0.9538 GB, free: 15.94 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.692e-05/0.005466, allocations: 314.8 kB / 0.9541 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.97e-05/0.005525, allocations: 23.97 kB / 0.9541 GB, free: 15.6 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.986e-05/0.005585, allocations: 47.42 kB / 0.9541 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.005698, allocations: 75.33 kB / 0.9542 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.0057, allocations: 4 kB / 0.9542 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000145/0.005845, allocations: 105.5 kB / 0.9543 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.005858, allocations: 8.125 kB / 0.9543 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.005864, allocations: 0 / 0.9543 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.005878, allocations: 4 kB / 0.9543 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.563e-05/0.005953, allocations: 15.98 kB / 0.9543 GB, free: 15.32 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.005961, allocations: 7.875 kB / 0.9543 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.367e-05/0.005995, allocations: 8 kB / 0.9544 GB, free: 15.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-06/0.006002, allocations: 0 / 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 7.242e-05/0.006074, allocations: 121.8 kB / 0.9545 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.605e-05/0.00609, allocations: 11.89 kB / 0.9545 GB, free: 15.16 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001677/0.006258, allocations: 93.72 kB / 0.9546 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.006262, allocations: 3.984 kB / 0.9546 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.006266, allocations: 0 / 0.9546 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.00627, allocations: 0 / 0.9546 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002846/0.006554, allocations: 305.5 kB / 0.9549 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.006556, allocations: 0 / 0.9549 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.344e-05/0.006589, allocations: 12.36 kB / 0.9549 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.006592, allocations: 4 kB / 0.9549 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.006599, allocations: 0 / 0.9549 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.006602, allocations: 4 kB / 0.9549 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.006603, allocations: 0 / 0.9549 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001605/0.006764, allocations: 187.4 kB / 0.9551 GB, free: 14.49 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.137e-06/0.006773, allocations: 7.953 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.006788, allocations: 3.984 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.909e-05/0.006827, allocations: 4 kB / 0.9551 GB, free: 14.47 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.019e-05/0.006867, allocations: 11.97 kB / 0.9551 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.006874, allocations: 8 kB / 0.9551 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.586e-05/0.00691, allocations: 83.73 kB / 0.9552 GB, free: 14.37 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7e-08/0.00691, allocations: 0 / 0.9552 GB, free: 14.37 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.000176/0.007086, allocations: 15.98 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.0004411/0.007527, allocations: 0.7162 MB / 0.9559 GB, free: 13.61 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.000178/0.007705, allocations: 60 kB / 0.956 GB, free: 13.55 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.007707, allocations: 0 / 0.956 GB, free: 13.55 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.491e-05/0.007762, allocations: 27.92 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.0002101/0.007972, allocations: 9.719 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.001057/0.009029, allocations: 1.374 MB / 0.9573 GB, free: 12.05 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.923e-05/0.009078, allocations: 67.34 kB / 0.9574 GB, free: 11.96 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.095e-05/0.009109, allocations: 3.938 kB / 0.9574 GB, free: 11.96 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.163e-05/0.009151, allocations: 20.48 kB / 0.9574 GB, free: 11.94 MB / 0.9167 GB Notification: Performance of SimCode: time 8.92e-07/0.009152, allocations: 3.938 kB / 0.9574 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.0283, allocations: 2.416 MB / 0.9598 GB, free: 9.664 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.636/6.664, allocations: 5.625 kB / 0.9598 GB, free: 9.664 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/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.61478303000331]