Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_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.007502/0.007502, allocations: 104.4 kB / 15.74 MB, free: 6.059 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.001967/0.001967, allocations: 196.3 kB / 16.68 MB, free: 5.969 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.663/1.663, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.156/2.156, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 63.91 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9167/0.9179, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001751/0.9197, allocations: 0.678 MB / 1.088 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.9208, allocations: 1.038 MB / 1.089 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.384e-05/0.9208, allocations: 1.188 kB / 1.089 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.879e-05/0.9209, allocations: 3.938 kB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.561e-05/0.9209, allocations: 10.02 kB / 1.089 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.9212, allocations: 44.31 kB / 1.089 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.457e-05/0.9213, allocations: 43.19 kB / 1.089 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.035e-05/0.9214, allocations: 9.266 kB / 1.089 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.009e-05/0.9214, allocations: 18 kB / 1.089 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.023e-05/0.9215, allocations: 17.88 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.9215, allocations: 4.062 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.242e-05/0.9216, allocations: 18.14 kB / 1.089 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.807e-05/0.9216, allocations: 14.92 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.954e-05/0.9216, allocations: 14.92 kB / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001198/0.9218, allocations: 62.47 kB / 1.089 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.9218, allocations: 1.672 kB / 1.089 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9218, allocations: 3.938 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.9218, allocations: 0 / 1.089 GB, free: 3.938 MB / 0.8575 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.0004414/0.9222, allocations: 355.8 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.9223, allocations: 9.375 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.857e-05/0.9223, allocations: 33.16 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.094e-05/0.9223, allocations: 11.05 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.273e-05/0.9224, allocations: 168.2 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.9224, allocations: 2.016 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.312e-05/0.9225, allocations: 7.531 kB / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.9227, allocations: 54.36 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.9227, allocations: 9.156 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.9227, allocations: 0.5625 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.9227, allocations: 0.9688 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.9229, allocations: 39.86 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003682/0.9233, allocations: 277.4 kB / 1.09 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.9234, allocations: 42.81 kB / 1.09 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.403e-05/0.9235, allocations: 26.11 kB / 1.09 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.9235, allocations: 5.688 kB / 1.09 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001728/0.9237, allocations: 81.12 kB / 1.09 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/0.9237, allocations: 0 / 1.09 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0003744/0.9241, allocations: 99.75 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.9241, allocations: 53.23 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.49e-05/0.9242, allocations: 105.6 kB / 1.091 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.9242, allocations: 38.73 kB / 1.091 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.724e-05/0.9243, allocations: 87.08 kB / 1.091 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.9243, allocations: 14.64 kB / 1.091 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.793e-05/0.9243, allocations: 21.89 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.523e-05/0.9244, allocations: 317.3 kB / 1.091 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.9245, allocations: 23.09 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.9246, allocations: 58.08 kB / 1.091 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.9248, allocations: 69.92 kB / 1.091 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.9248, allocations: 4.844 kB / 1.091 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002507/0.9251, allocations: 99.98 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.9251, allocations: 5.281 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.9251, allocations: 1.406 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.9251, allocations: 5.156 kB / 1.091 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.9252, allocations: 17.72 kB / 1.091 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.9252, allocations: 6.031 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.46e-05/0.9253, allocations: 10.56 kB / 1.091 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.9253, allocations: 3.156 kB / 1.091 GB, free: 2.027 MB / 0.8575 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 5.427e-05/0.9254, allocations: 117.6 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.253e-05/0.9254, allocations: 3.234 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002632/0.9257, allocations: 92.48 kB / 1.092 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.9257, allocations: 3.938 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.9257, allocations: 5.375 kB / 1.092 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.9257, allocations: 3.938 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003444/0.926, allocations: 341.1 kB / 1.092 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.926, allocations: 1.922 kB / 1.092 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.004e-05/0.9261, allocations: 8.406 kB / 1.092 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.9261, allocations: 1.094 kB / 1.092 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-06/0.9261, allocations: 1.984 kB / 1.092 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.9261, allocations: 0 / 1.092 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.9261, allocations: 5.75 kB / 1.092 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002374/0.9264, allocations: 186.5 kB / 1.092 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.676e-05/0.9264, allocations: 82.94 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.9264, allocations: 5.781 kB / 1.092 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.148e-05/0.9265, allocations: 6.312 kB / 1.092 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.9266, allocations: 7.406 kB / 1.092 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.9266, allocations: 5.812 kB / 1.092 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.685e-05/0.9267, allocations: 91.84 kB / 1.092 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of sort global known variables: time 5.11e-07/0.9267, allocations: 0 / 1.092 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000419/0.9271, allocations: 12.97 kB / 1.092 GB, free: 1.164 MB / 0.8575 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.000796/0.9279, allocations: 0.7185 MB / 1.093 GB, free: 16.49 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004085/0.9283, allocations: 57.69 kB / 1.093 GB, free: 16.48 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.9283, allocations: 1.344 kB / 1.093 GB, free: 16.48 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.9285, allocations: 24.75 kB / 1.093 GB, free: 16.47 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.9289, allocations: 14.16 kB / 1.093 GB, free: 16.46 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.9312, allocations: 1.367 MB / 1.095 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006539/0.9318, allocations: 0.6821 MB / 1.095 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.853e-05/0.9319, allocations: 8.031 kB / 1.095 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.173e-05/0.9319, allocations: 14.91 kB / 1.095 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of SimCode: time 2.51e-07/0.9319, allocations: 3.938 kB / 1.095 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.613/2.544, allocations: 1.698 MB / 1.097 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/14.94, allocations: 27.72 kB / 1.097 GB, free: 14.07 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches