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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001172/0.001172, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001143/0.001143, allocations: 198.4 kB / 16.14 MB, free: 6.793 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.196/1.196, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.115/2.115, allocations: 390.2 MB / 0.6643 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 71.88 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.581/0.5822, allocations: 140.3 MB / 0.9491 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002316/0.5846, allocations: 0.7286 MB / 0.9498 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.5858, allocations: 1.045 MB / 0.9508 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.77e-05/0.5859, allocations: 1 kB / 0.9508 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.49e-05/0.5859, allocations: 7.875 kB / 0.9508 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.059e-05/0.586, allocations: 1.656 kB / 0.9508 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.5862, allocations: 40.42 kB / 0.9508 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.408e-05/0.5863, allocations: 40.33 kB / 0.9509 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.968e-05/0.5864, allocations: 8.312 kB / 0.9509 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.771e-05/0.5865, allocations: 22.31 kB / 0.9509 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.597e-05/0.5866, allocations: 17.2 kB / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.5866, allocations: 2.312 kB / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.227e-05/0.5867, allocations: 16.95 kB / 0.9509 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.111e-05/0.5867, allocations: 9.578 kB / 0.9509 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.711e-05/0.5867, allocations: 16.25 kB / 0.951 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001198/0.5869, allocations: 55.56 kB / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.5869, allocations: 0 / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.502e-06/0.5869, allocations: 1.469 kB / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.5869, allocations: 0 / 0.951 GB, free: 7.641 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.0004838/0.5874, allocations: 356.5 kB / 0.9514 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.5874, allocations: 9.625 kB / 0.9514 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.299e-05/0.5875, allocations: 40.11 kB / 0.9514 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.13e-05/0.5875, allocations: 3.688 kB / 0.9514 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.153e-05/0.5876, allocations: 169.7 kB / 0.9516 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.5876, allocations: 1.75 kB / 0.9516 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.5876, allocations: 3.125 kB / 0.9516 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.5878, allocations: 66.66 kB / 0.9516 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-06/0.5878, allocations: 3.938 kB / 0.9516 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.5878, allocations: 0 / 0.9516 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.5878, allocations: 1.375 kB / 0.9516 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.588, allocations: 36.59 kB / 0.9517 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003765/0.5884, allocations: 280.1 kB / 0.9519 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.5885, allocations: 50.98 kB / 0.952 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.257e-05/0.5886, allocations: 25.31 kB / 0.952 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.5886, allocations: 5.375 kB / 0.952 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001649/0.5888, allocations: 70.25 kB / 0.9521 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.193e-06/0.5888, allocations: 0 / 0.9521 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.000361/0.5892, allocations: 110.3 kB / 0.9522 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.5892, allocations: 52.81 kB / 0.9522 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.642e-05/0.5893, allocations: 110.5 kB / 0.9524 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.5893, allocations: 26.58 kB / 0.9524 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.06e-05/0.5893, allocations: 89.45 kB / 0.9525 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.676e-05/0.5894, allocations: 14.64 kB / 0.9525 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.934e-05/0.5894, allocations: 18.84 kB / 0.9525 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.057e-05/0.5895, allocations: 324.1 kB / 0.9528 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.767e-05/0.5896, allocations: 21.14 kB / 0.9528 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.701e-05/0.5897, allocations: 54.09 kB / 0.9529 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000182/0.5899, allocations: 76.19 kB / 0.9529 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.5899, allocations: 1.375 kB / 0.9529 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002421/0.5901, allocations: 96.83 kB / 0.953 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.5901, allocations: 9.531 kB / 0.953 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.5902, allocations: 1.188 kB / 0.9531 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.5902, allocations: 1.5 kB / 0.9531 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.5903, allocations: 18.58 kB / 0.9531 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.5903, allocations: 9.328 kB / 0.9531 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.622e-05/0.5904, allocations: 8.078 kB / 0.9531 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.5904, allocations: 2.938 kB / 0.9531 GB, free: 5.582 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 6.801e-05/0.5905, allocations: 117.2 kB / 0.9532 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.084e-05/0.5905, allocations: 5.406 kB / 0.9532 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000271/0.5908, allocations: 97.52 kB / 0.9533 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.5908, allocations: 9.016 kB / 0.9533 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.5908, allocations: 0 / 0.9533 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.5908, allocations: 1.344 kB / 0.9533 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003561/0.5912, allocations: 335.6 kB / 0.9536 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.5912, allocations: 1.312 kB / 0.9536 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.36e-05/0.5912, allocations: 14.05 kB / 0.9536 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.5912, allocations: 0 / 0.9536 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.5913, allocations: 6.156 kB / 0.9536 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.5913, allocations: 0 / 0.9536 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5913, allocations: 4 kB / 0.9537 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.5915, allocations: 185.3 kB / 0.9538 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.148e-05/0.5916, allocations: 78.52 kB / 0.9539 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.5916, allocations: 1.438 kB / 0.9539 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.206e-05/0.5917, allocations: 11.92 kB / 0.9539 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.5917, allocations: 9.469 kB / 0.9539 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.5917, allocations: 1.5 kB / 0.9539 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.789e-05/0.5917, allocations: 88.97 kB / 0.954 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5918, allocations: 0 / 0.954 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002409/0.592, allocations: 13.25 kB / 0.954 GB, free: 4.656 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.0004636/0.5925, allocations: 0.7203 MB / 0.9547 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.5927, allocations: 57.33 kB / 0.9548 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5927, allocations: 4 kB / 0.9548 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.5928, allocations: 29.11 kB / 0.9548 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.5931, allocations: 16.27 kB / 0.9548 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.5943, allocations: 1.367 MB / 0.9562 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.5944, allocations: 0.6802 MB / 0.9568 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.986e-05/0.5944, allocations: 3.938 kB / 0.9568 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.458e-05/0.5944, allocations: 12.91 kB / 0.9568 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.5945, allocations: 5.469 kB / 0.9569 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9382/1.533, allocations: 1.494 MB / 0.9583 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002082/1.533, allocations: 201.6 kB / 0.9585 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.936/4.469, allocations: 0 / 0.9585 GB, free: 0.8633 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