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.001756/0.001756, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002239/0.002239, allocations: 198.1 kB / 16.26 MB, free: 6.621 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.397/1.397, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.349/2.349, allocations: 390.2 MB / 0.6644 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 71.86 kB / 0.8122 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7102/0.7122, allocations: 140.4 MB / 0.9492 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001723/0.714, allocations: 0.7231 MB / 0.9499 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009415/0.7149, allocations: 1.044 MB / 0.951 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.968e-05/0.715, allocations: 2 kB / 0.951 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.178e-05/0.715, allocations: 7.922 kB / 0.951 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.994e-05/0.7151, allocations: 3.984 kB / 0.951 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.7153, allocations: 29.39 kB / 0.951 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.552e-05/0.7154, allocations: 45.83 kB / 0.9511 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.184e-05/0.7155, allocations: 16.56 kB / 0.9511 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.446e-05/0.7155, allocations: 14.09 kB / 0.9511 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.352e-05/0.7156, allocations: 25.56 kB / 0.9511 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.7156, allocations: 4.188 kB / 0.9511 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.826e-05/0.7157, allocations: 21.77 kB / 0.9511 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.7157, allocations: 5.344 kB / 0.9511 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.812e-05/0.7157, allocations: 20.16 kB / 0.9512 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.7158, allocations: 48.69 kB / 0.9512 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.7158, allocations: 0 / 0.9512 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7158, allocations: 0 / 0.9512 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.7159, allocations: 1.375 kB / 0.9512 GB, free: 7.613 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.0004126/0.7163, allocations: 364.9 kB / 0.9516 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.7163, allocations: 8.375 kB / 0.9516 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.31e-05/0.7163, allocations: 36 kB / 0.9516 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.7164, allocations: 4.281 kB / 0.9516 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.045e-05/0.7165, allocations: 177.8 kB / 0.9518 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.7165, allocations: 2.094 kB / 0.9518 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.7165, allocations: 3.906 kB / 0.9518 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.7167, allocations: 64.23 kB / 0.9518 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.7167, allocations: 5.281 kB / 0.9518 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-06/0.7167, allocations: 0 / 0.9518 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.7167, allocations: 1.5 kB / 0.9518 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001657/0.7169, allocations: 41.52 kB / 0.9519 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003943/0.7173, allocations: 274.4 kB / 0.9521 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.7174, allocations: 52.17 kB / 0.9522 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.611e-05/0.7175, allocations: 25.31 kB / 0.9522 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.7176, allocations: 3.984 kB / 0.9522 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001643/0.7177, allocations: 71.89 kB / 0.9523 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.283e-06/0.7177, allocations: 0 / 0.9523 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0003679/0.7181, allocations: 101.7 kB / 0.9524 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/0.7181, allocations: 60.55 kB / 0.9524 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.271e-05/0.7182, allocations: 106.7 kB / 0.9525 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.7182, allocations: 25.7 kB / 0.9526 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.815e-05/0.7183, allocations: 90.14 kB / 0.9527 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.7183, allocations: 17.66 kB / 0.9527 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.51e-05/0.7183, allocations: 23.89 kB / 0.9527 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.638e-05/0.7184, allocations: 316.5 kB / 0.953 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.53e-05/0.7185, allocations: 20.67 kB / 0.953 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.748e-05/0.7186, allocations: 50.78 kB / 0.9531 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.7188, allocations: 75.92 kB / 0.9531 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.7188, allocations: 3.938 kB / 0.9531 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002342/0.719, allocations: 97.69 kB / 0.9532 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.719, allocations: 7.594 kB / 0.9532 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.719, allocations: 1.062 kB / 0.9532 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.7191, allocations: 6.203 kB / 0.9532 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.7192, allocations: 17.52 kB / 0.9533 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.7192, allocations: 5.016 kB / 0.9533 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.525e-05/0.7193, allocations: 13.53 kB / 0.9533 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.886e-06/0.7193, allocations: 1.906 kB / 0.9533 GB, free: 5.547 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 5.726e-05/0.7193, allocations: 121.2 kB / 0.9534 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.7193, allocations: 10.27 kB / 0.9534 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002381/0.7196, allocations: 90.16 kB / 0.9535 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.7196, allocations: 0 / 0.9535 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.7196, allocations: 0 / 0.9535 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.7196, allocations: 1.469 kB / 0.9535 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000318/0.7199, allocations: 347.6 kB / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.72, allocations: 1.562 kB / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.446e-05/0.72, allocations: 9.484 kB / 0.9538 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.72, allocations: 1.312 kB / 0.9538 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.72, allocations: 0 / 0.9538 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.72, allocations: 5 kB / 0.9538 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.72, allocations: 0 / 0.9538 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.7203, allocations: 190 kB / 0.954 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.018e-05/0.7203, allocations: 78.17 kB / 0.9541 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.7203, allocations: 1.312 kB / 0.9541 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.755e-05/0.7204, allocations: 10.77 kB / 0.9541 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.064e-05/0.7205, allocations: 10.86 kB / 0.9541 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.7205, allocations: 1.812 kB / 0.9541 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.639e-05/0.7205, allocations: 85 kB / 0.9542 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7205, allocations: 4 kB / 0.9542 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000233/0.7207, allocations: 8.062 kB / 0.9542 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.0003943/0.7211, allocations: 0.7221 MB / 0.9549 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002218/0.7214, allocations: 62.36 kB / 0.955 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.7214, allocations: 0 / 0.955 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.483e-05/0.7215, allocations: 27.84 kB / 0.955 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002406/0.7217, allocations: 11.78 kB / 0.955 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.7229, allocations: 1.383 MB / 0.9564 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.723, allocations: 0.6847 MB / 0.957 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.123e-05/0.723, allocations: 6.672 kB / 0.957 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.336e-05/0.7231, allocations: 13.91 kB / 0.9571 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.7231, allocations: 0 / 0.9571 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01138/0.7345, allocations: 1.542 MB / 0.9586 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001302/0.7346, allocations: 203 kB / 0.9588 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.447, allocations: 1.625 kB / 0.9588 GB, free: 0.8008 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