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.001215/0.001215, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001201/0.001201, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.206/1.206, allocations: 222.9 MB / 239.8 MB, free: 4.648 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.245/2.245, allocations: 437 MB / 0.7099 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.91 kB / 0.8687 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.4454, allocations: 151.6 MB / 1.017 GB, free: 2.863 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001506/0.4469, allocations: 0.7265 MB / 1.017 GB, free: 2.141 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009886/0.4479, allocations: 1.054 MB / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.688e-05/0.448, allocations: 0 / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.439e-05/0.448, allocations: 0 / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.059e-05/0.4481, allocations: 7.922 kB / 1.018 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.4482, allocations: 31.97 kB / 1.019 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.773e-05/0.4483, allocations: 39.86 kB / 1.019 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.346e-05/0.4484, allocations: 11.98 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.348e-05/0.4485, allocations: 15.94 kB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.3e-05/0.4485, allocations: 19.92 kB / 1.019 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.4485, allocations: 0 / 1.019 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.938e-05/0.4486, allocations: 19.97 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.478e-05/0.4486, allocations: 15.92 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.769e-05/0.4487, allocations: 11.94 kB / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.112e-05/0.4487, allocations: 51.84 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.4488, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of FrontEnd: time 7.31e-07/0.4488, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.4488, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 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.0004157/0.4492, allocations: 365.6 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.4492, allocations: 12.03 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.591e-05/0.4493, allocations: 30.75 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.331e-05/0.4493, allocations: 4.938 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.333e-05/0.4494, allocations: 172.2 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.4494, allocations: 4.359 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.4494, allocations: 8.375 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.4496, allocations: 54.23 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.4496, allocations: 7.938 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.4496, allocations: 3.938 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.4496, allocations: 0 / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.4498, allocations: 43.95 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003822/0.4501, allocations: 272.8 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.4503, allocations: 50.55 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.286e-05/0.4504, allocations: 28.92 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.4504, allocations: 0 / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000154/0.4506, allocations: 71.38 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.4506, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0003087/0.4509, allocations: 109.5 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/0.4509, allocations: 51.41 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.763e-05/0.451, allocations: 109.8 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.451, allocations: 33.7 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.454e-05/0.4511, allocations: 88.06 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.4511, allocations: 15.8 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.4511, allocations: 25.72 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.99e-05/0.4512, allocations: 318.8 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.466e-05/0.4513, allocations: 19.98 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.341e-05/0.4514, allocations: 51.72 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.4516, allocations: 75.33 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4516, allocations: 4 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002211/0.4518, allocations: 101.6 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.4518, allocations: 6.344 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.4519, allocations: 160 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.4519, allocations: 4 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.544e-05/0.452, allocations: 11.98 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.452, allocations: 3.984 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.264e-05/0.452, allocations: 19.89 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.452, allocations: 0 / 1.021 GB, free: 14.46 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 7.317e-05/0.4521, allocations: 126.3 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.073e-05/0.4521, allocations: 4 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002245/0.4524, allocations: 89.92 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.4524, allocations: 4 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.4524, allocations: 0 / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.4524, allocations: 0 / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003534/0.4528, allocations: 346.4 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4528, allocations: 7.938 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.043e-05/0.4528, allocations: 4 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.4528, allocations: 0 / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.4528, allocations: 7.984 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4528, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.4528, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.4531, allocations: 183.4 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.073e-05/0.4531, allocations: 81.11 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.4531, allocations: 7.938 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.726e-05/0.4532, allocations: 7.984 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.4533, allocations: 3.938 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.4533, allocations: 7.984 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.961e-05/0.4533, allocations: 83.28 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4533, allocations: 3.938 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002132/0.4535, allocations: 16 kB / 1.022 GB, free: 13.38 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.00047/0.454, allocations: 0.7163 MB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002028/0.4542, allocations: 59.89 kB / 1.022 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.4542, allocations: 0 / 1.022 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.41e-05/0.4543, allocations: 35.91 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.4546, allocations: 7.938 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.4558, allocations: 1.369 MB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.456, allocations: 0.6848 MB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.859e-05/0.456, allocations: 11.98 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.417e-05/0.4561, allocations: 11.44 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of SimCode: time 2.91e-07/0.4561, allocations: 0 / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.247/1.703, allocations: 1.512 MB / 1.026 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/1.704, allocations: 206.1 kB / 1.026 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.277/3.98, allocations: 0 / 1.026 GB, free: 8.68 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