Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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.Examples.UnitDelay,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_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.0008397/0.0008396, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005295/0.005295, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.257/1.257, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.315/2.315, allocations: 437.8 MB / 0.7121 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003692, allocations: 8 kB / 0.873 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5918/0.5921, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0007556/0.5929, allocations: 404.9 kB / 1.024 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.5944, allocations: 1.039 MB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.723e-05/0.5944, allocations: 0 / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.553e-05/0.5944, allocations: 3.938 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.407e-05/0.5945, allocations: 3.984 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.5947, allocations: 35.84 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.024e-05/0.5948, allocations: 39.92 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.391e-05/0.5948, allocations: 12 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.235e-05/0.5949, allocations: 11.92 kB / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.326e-05/0.5949, allocations: 23.86 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.678e-06/0.595, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.611e-05/0.595, allocations: 19.97 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.595, allocations: 15.92 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.437e-05/0.5951, allocations: 41.58 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.124e-05/0.5952, allocations: 47.84 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.5952, allocations: 0 / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.352e-06/0.5952, allocations: 0 / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.5952, allocations: 0 / 1.025 GB, free: 14.12 MB / 0.7794 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.0004132/0.5956, allocations: 357.7 kB / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.5957, allocations: 12.03 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.046e-05/0.5957, allocations: 30.75 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.41e-05/0.5958, allocations: 4.844 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.737e-05/0.5959, allocations: 168.4 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-06/0.5959, allocations: 384 / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.5959, allocations: 4.375 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.5961, allocations: 74.16 kB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.5961, allocations: 3.938 kB / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-06/0.5961, allocations: 0 / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.5961, allocations: 4 kB / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.5963, allocations: 47.95 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003729/0.5967, allocations: 276.8 kB / 1.026 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001423/0.5968, allocations: 62.48 kB / 1.026 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.064e-05/0.5969, allocations: 24.94 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.597, allocations: 4 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000185/0.5971, allocations: 75.38 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.423e-06/0.5972, allocations: 0 / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0003648/0.5975, allocations: 117.6 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.5976, allocations: 63.34 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.337e-05/0.5977, allocations: 113.8 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.5977, allocations: 25.7 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.83e-05/0.5977, allocations: 92.06 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.5977, allocations: 11.89 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.452e-05/0.5978, allocations: 13.72 kB / 1.026 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.5979, allocations: 322.8 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.56e-05/0.598, allocations: 27.98 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.5981, allocations: 55.41 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.5983, allocations: 83.34 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5983, allocations: 0 / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003125/0.5986, allocations: 113.5 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.5987, allocations: 8 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.5987, allocations: 0 / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.5987, allocations: 0 / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.5988, allocations: 24.05 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.5988, allocations: 4 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.11e-05/0.5989, allocations: 19.92 kB / 1.027 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-06/0.599, allocations: 0 / 1.027 GB, free: 11.67 MB / 0.7794 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 9.519e-05/0.5991, allocations: 118.3 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.5991, allocations: 7.906 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002551/0.5993, allocations: 105.9 kB / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.5994, allocations: 4 kB / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.5994, allocations: 0 / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.5994, allocations: 0 / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004047/0.5998, allocations: 350.5 kB / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.5998, allocations: 0 / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.213e-05/0.5999, allocations: 19.92 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.5999, allocations: 0 / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.5999, allocations: 0 / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.5999, allocations: 0 / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5999, allocations: 4 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.6001, allocations: 195.3 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.56e-05/0.6002, allocations: 85.09 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.6002, allocations: 8 kB / 1.028 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.382e-05/0.6003, allocations: 7.984 kB / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.6004, allocations: 11.88 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-06/0.6004, allocations: 0 / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.977e-05/0.6004, allocations: 91.27 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6004, allocations: 0 / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002315/0.6007, allocations: 12 kB / 1.028 GB, free: 10.56 MB / 0.7794 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.0005168/0.6012, allocations: 0.7319 MB / 1.029 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000233/0.6014, allocations: 71.89 kB / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6014, allocations: 0 / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.6015, allocations: 28.23 kB / 1.029 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.6018, allocations: 15.92 kB / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.6032, allocations: 1.404 MB / 1.03 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.6035, allocations: 0.6809 MB / 1.031 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.64e-05/0.6035, allocations: 7.984 kB / 1.031 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.6036, allocations: 19.38 kB / 1.031 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of SimCode: time 2.91e-07/0.6036, allocations: 0 / 1.031 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03896/0.6425, allocations: 1.433 MB / 1.032 GB, free: 6.156 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002413/0.6428, allocations: 201.5 kB / 1.032 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/2.201, allocations: 0 / 1.032 GB, free: 5.902 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches