Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009313/0.0009313, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007449/0.007449, allocations: 170.1 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.495/2.495, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003177, allocations: 11.41 kB / 0.9029 GB, free: 36.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2692, allocations: 159.6 MB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.0007753/0.27, allocations: 399.2 kB / 1.059 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.2711, allocations: 1.046 MB / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.074e-05/0.2712, allocations: 0 / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.398e-05/0.2712, allocations: 7.938 kB / 1.06 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.455e-05/0.2713, allocations: 7.875 kB / 1.06 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002002/0.2715, allocations: 35.91 kB / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.271e-05/0.2715, allocations: 35.91 kB / 1.06 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.283e-05/0.2716, allocations: 12 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.982e-05/0.2717, allocations: 23.91 kB / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.388e-05/0.2718, allocations: 11.92 kB / 1.06 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.2718, allocations: 4 kB / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.691e-05/0.2718, allocations: 19.98 kB / 1.06 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.36e-05/0.2719, allocations: 4 kB / 1.06 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.25e-05/0.2719, allocations: 45.56 kB / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001007/0.272, allocations: 43.84 kB / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.272, allocations: 4 kB / 1.06 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.633e-06/0.272, allocations: 3.938 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.852e-06/0.272, allocations: 4 kB / 1.06 GB, free: 3.129 MB / 0.8106 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.0004217/0.2725, allocations: 351.7 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.2725, allocations: 11.97 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.746e-05/0.2726, allocations: 38.73 kB / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.31e-05/0.2726, allocations: 4.938 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.191e-05/0.2727, allocations: 176.2 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.2727, allocations: 4.375 kB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.968e-06/0.2727, allocations: 384 / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000174/0.2729, allocations: 70.23 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.2729, allocations: 3.938 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.2729, allocations: 0 / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2729, allocations: 0 / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.2731, allocations: 59.89 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003803/0.2735, allocations: 276.9 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.2736, allocations: 50.56 kB / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.236e-05/0.2737, allocations: 36.92 kB / 1.061 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.2738, allocations: 4 kB / 1.061 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.2739, allocations: 75.33 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.323e-06/0.274, allocations: 3.938 kB / 1.062 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.000367/0.2743, allocations: 129.5 kB / 1.062 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.2744, allocations: 51.41 kB / 1.062 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.75e-05/0.2744, allocations: 105.8 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.2745, allocations: 25.7 kB / 1.062 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.586e-05/0.2745, allocations: 88.14 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.2745, allocations: 7.812 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.526e-05/0.2746, allocations: 21.7 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.59e-05/0.2746, allocations: 322.8 kB / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.729e-05/0.2747, allocations: 35.91 kB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.2749, allocations: 47.42 kB / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.2751, allocations: 95.27 kB / 1.062 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2751, allocations: 0 / 1.062 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002387/0.2753, allocations: 105.6 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.2753, allocations: 7.984 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.2753, allocations: 4.125 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.2754, allocations: 4 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.347e-05/0.2755, allocations: 15.98 kB / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2755, allocations: 0 / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.619e-05/0.2755, allocations: 11.94 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.2756, allocations: 4.469 kB / 1.063 GB, free: 0.6641 MB / 0.8106 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.198e-05/0.2756, allocations: 125.7 kB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.2757, allocations: 7.906 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002454/0.2759, allocations: 93.62 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2759, allocations: 4 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2759, allocations: 0 / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2759, allocations: 3.984 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.2763, allocations: 350.5 kB / 1.063 GB, free: 20 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-06/0.2763, allocations: 384 / 1.063 GB, free: 20 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.788e-05/0.2764, allocations: 11.98 kB / 1.063 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2764, allocations: 8 kB / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.2764, allocations: 0 / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.524e-05/0.2764, allocations: 4.047 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.2764, allocations: 0 / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.2767, allocations: 203.2 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.018e-05/0.2767, allocations: 77.11 kB / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.2767, allocations: 7.922 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.264e-05/0.2768, allocations: 8 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/0.2769, allocations: 7.922 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.2769, allocations: 4 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.539e-05/0.2769, allocations: 91.25 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2769, allocations: 0 / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002187/0.2772, allocations: 12 kB / 1.064 GB, free: 15.56 MB / 0.8262 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.0004948/0.2777, allocations: 0.7357 MB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002202/0.2779, allocations: 63.95 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2779, allocations: 0 / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.278, allocations: 40.16 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.2782, allocations: 15.88 kB / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.2796, allocations: 1.396 MB / 1.066 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/0.2798, allocations: 0.6809 MB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.678e-05/0.2798, allocations: 4 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.2798, allocations: 15.44 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.2798, allocations: 0 / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7941/1.074, allocations: 1.441 MB / 1.068 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/1.074, allocations: 213.4 kB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.645/2.719, allocations: 4.062 kB / 1.068 GB, free: 10.9 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches