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.00171/0.00171, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002003/0.002003, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.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.398/2.398, allocations: 390.3 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 59.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6845/0.686, allocations: 140.4 MB / 0.9497 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001869/0.6879, allocations: 0.6625 MB / 0.9504 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001127/0.689, allocations: 1.05 MB / 0.9514 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.154e-05/0.6891, allocations: 1.188 kB / 0.9514 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.705e-05/0.6891, allocations: 0 / 0.9514 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.879e-05/0.6892, allocations: 5.156 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.6895, allocations: 45.45 kB / 0.9515 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.047e-05/0.6896, allocations: 41.14 kB / 0.9515 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.6898, allocations: 8.031 kB / 0.9515 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.418e-05/0.6898, allocations: 18.83 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.029e-05/0.6899, allocations: 25.23 kB / 0.9515 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.6899, allocations: 4.125 kB / 0.9515 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.561e-05/0.69, allocations: 21.59 kB / 0.9516 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.157e-05/0.6901, allocations: 9.359 kB / 0.9516 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.076e-05/0.6901, allocations: 13.44 kB / 0.9516 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.6902, allocations: 58.78 kB / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.6903, allocations: 1.375 kB / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.014e-06/0.6903, allocations: 0 / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.6903, allocations: 0 / 0.9516 GB, free: 7.602 MB / 0.7169 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.0005175/0.6908, allocations: 365 kB / 0.952 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.025e-05/0.6909, allocations: 10.06 kB / 0.952 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.286e-05/0.6909, allocations: 31.91 kB / 0.952 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.528e-05/0.691, allocations: 3.188 kB / 0.952 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.6911, allocations: 166.4 kB / 0.9522 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.6911, allocations: 1.469 kB / 0.9522 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.6911, allocations: 10.69 kB / 0.9522 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.6914, allocations: 58.47 kB / 0.9523 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.6914, allocations: 7.938 kB / 0.9523 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.6914, allocations: 5.438 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.6914, allocations: 0 / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.6916, allocations: 46.11 kB / 0.9523 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005111/0.6921, allocations: 270.6 kB / 0.9526 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.6923, allocations: 51.7 kB / 0.9526 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.74e-05/0.6924, allocations: 25.44 kB / 0.9526 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.6924, allocations: 1.344 kB / 0.9527 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.6927, allocations: 70.56 kB / 0.9527 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.743e-06/0.6927, allocations: 0 / 0.9527 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0004161/0.6931, allocations: 109.3 kB / 0.9528 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.6931, allocations: 52.53 kB / 0.9529 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.645e-05/0.6932, allocations: 107.7 kB / 0.953 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.6933, allocations: 29.7 kB / 0.953 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.614e-05/0.6933, allocations: 89.56 kB / 0.9531 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.6933, allocations: 18.48 kB / 0.9531 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.297e-05/0.6934, allocations: 19.75 kB / 0.9531 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.462e-05/0.6934, allocations: 324.3 kB / 0.9534 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.883e-05/0.6935, allocations: 20.45 kB / 0.9535 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.6937, allocations: 50.31 kB / 0.9535 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.6939, allocations: 76.86 kB / 0.9536 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.6939, allocations: 3.938 kB / 0.9536 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002639/0.6941, allocations: 92.81 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.6942, allocations: 11.22 kB / 0.9537 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.6942, allocations: 1.219 kB / 0.9537 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.6942, allocations: 1.5 kB / 0.9537 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.6943, allocations: 22.23 kB / 0.9537 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.6943, allocations: 1.25 kB / 0.9537 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.246e-05/0.6944, allocations: 13.47 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.6944, allocations: 2.375 kB / 0.9537 GB, free: 5.543 MB / 0.7169 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.636e-05/0.6945, allocations: 116.6 kB / 0.9538 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.6945, allocations: 10.53 kB / 0.9538 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002604/0.6948, allocations: 92.7 kB / 0.9539 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.6948, allocations: 1.281 kB / 0.9539 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.6948, allocations: 0 / 0.9539 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.6948, allocations: 0 / 0.9539 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003606/0.6952, allocations: 336.8 kB / 0.9543 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.6952, allocations: 9.219 kB / 0.9543 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.885e-05/0.6953, allocations: 14.08 kB / 0.9543 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.6953, allocations: 0 / 0.9543 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.6953, allocations: 1.312 kB / 0.9543 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.6953, allocations: 3.938 kB / 0.9543 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.6953, allocations: 0.6875 kB / 0.9543 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002326/0.6955, allocations: 189.8 kB / 0.9545 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.14e-05/0.6956, allocations: 78.33 kB / 0.9545 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.6956, allocations: 5.188 kB / 0.9545 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.917e-05/0.6957, allocations: 7.578 kB / 0.9545 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.6957, allocations: 6.344 kB / 0.9546 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.6957, allocations: 1.188 kB / 0.9546 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.1e-05/0.6958, allocations: 89.14 kB / 0.9546 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6958, allocations: 1.188 kB / 0.9546 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002421/0.696, allocations: 7.844 kB / 0.9546 GB, free: 4.625 MB / 0.7169 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.0004283/0.6965, allocations: 0.729 MB / 0.9554 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002428/0.6967, allocations: 61.02 kB / 0.9554 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6967, allocations: 1.094 kB / 0.9554 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.651e-05/0.6968, allocations: 27.81 kB / 0.9554 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.6971, allocations: 23.83 kB / 0.9555 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.6985, allocations: 1.361 MB / 0.9568 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.6986, allocations: 0.689 MB / 0.9575 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.865e-05/0.6986, allocations: 2.812 kB / 0.9575 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.342e-05/0.6987, allocations: 17.77 kB / 0.9575 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of SimCode: time 1.212e-06/0.6987, allocations: 1.438 kB / 0.9575 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.7172, allocations: 1.667 MB / 0.9591 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.722/8.439, allocations: 13.41 kB / 0.9591 GB, free: 0.9023 MB / 0.7169 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