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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.0009312/0.0009311, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001206/0.001206, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.546/2.546, allocations: 390.4 MB / 0.6655 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003273/0.0003273, allocations: 8 kB / 0.8149 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8273/0.8277, allocations: 142.3 MB / 0.9539 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0007866/0.8285, allocations: 389.2 kB / 0.9542 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.8296, allocations: 1.029 MB / 0.9552 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.795e-05/0.8297, allocations: 0 / 0.9552 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.589e-05/0.8297, allocations: 3.984 kB / 0.9552 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.225e-05/0.8298, allocations: 9.312 kB / 0.9552 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002255/0.83, allocations: 25.17 kB / 0.9553 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.956e-05/0.8301, allocations: 42.09 kB / 0.9553 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.32e-05/0.8302, allocations: 11.98 kB / 0.9553 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.73e-05/0.8303, allocations: 14.19 kB / 0.9553 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.278e-05/0.8303, allocations: 25.34 kB / 0.9554 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.8304, allocations: 2.156 kB / 0.9554 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.008e-05/0.8304, allocations: 12.17 kB / 0.9554 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.453e-05/0.8304, allocations: 8.922 kB / 0.9554 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.949e-05/0.8305, allocations: 40.3 kB / 0.9554 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.618e-05/0.8306, allocations: 29 kB / 0.9554 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.8306, allocations: 3.984 kB / 0.9555 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.8306, allocations: 1.5 kB / 0.9555 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.8306, allocations: 0 / 0.9555 GB, free: 6.785 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.00043/0.831, allocations: 353.8 kB / 0.9558 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.8311, allocations: 9.719 kB / 0.9558 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.913e-05/0.8311, allocations: 35.72 kB / 0.9558 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.903e-05/0.8312, allocations: 10.52 kB / 0.9558 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.171e-05/0.8312, allocations: 164.2 kB / 0.956 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.8313, allocations: 6.156 kB / 0.956 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.8313, allocations: 2.25 kB / 0.956 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.8315, allocations: 62.11 kB / 0.9561 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.8315, allocations: 0 / 0.9561 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.8315, allocations: 5 kB / 0.9561 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.8315, allocations: 1.312 kB / 0.9561 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.8317, allocations: 54.19 kB / 0.9561 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003618/0.832, allocations: 276.9 kB / 0.9564 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001214/0.8322, allocations: 51.53 kB / 0.9564 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.628e-05/0.8323, allocations: 30.66 kB / 0.9565 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.8323, allocations: 7.984 kB / 0.9565 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/0.8325, allocations: 84.22 kB / 0.9566 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.333e-06/0.8325, allocations: 0 / 0.9566 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0003752/0.8329, allocations: 115.5 kB / 0.9567 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.8329, allocations: 60.58 kB / 0.9567 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.122e-05/0.833, allocations: 107 kB / 0.9568 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.833, allocations: 30.78 kB / 0.9569 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.976e-05/0.8331, allocations: 93.14 kB / 0.9569 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.8331, allocations: 9.906 kB / 0.957 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-06/0.8331, allocations: 4.969 kB / 0.957 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.739e-05/0.8332, allocations: 323.8 kB / 0.9573 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.21e-05/0.8333, allocations: 25.45 kB / 0.9573 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.659e-05/0.8334, allocations: 55.03 kB / 0.9573 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.8335, allocations: 31.58 kB / 0.9574 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.8335, allocations: 1.125 kB / 0.9574 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002509/0.8337, allocations: 109.8 kB / 0.9575 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.8338, allocations: 6 kB / 0.9575 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.8338, allocations: 5.266 kB / 0.9575 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.8338, allocations: 1.062 kB / 0.9575 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.8339, allocations: 33.05 kB / 0.9575 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.984e-06/0.8339, allocations: 1.375 kB / 0.9575 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.179e-05/0.834, allocations: 7.156 kB / 0.9575 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.834, allocations: 6.062 kB / 0.9575 GB, free: 4.785 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.174e-05/0.8341, allocations: 117.3 kB / 0.9576 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-06/0.8341, allocations: 2.312 kB / 0.9576 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002428/0.8344, allocations: 102.4 kB / 0.9577 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.8344, allocations: 9.438 kB / 0.9578 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.8344, allocations: 0 / 0.9578 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.8344, allocations: 0 / 0.9578 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003304/0.8347, allocations: 350.3 kB / 0.9581 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.8347, allocations: 0 / 0.9581 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.531e-05/0.8348, allocations: 16.8 kB / 0.9581 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.8348, allocations: 5.078 kB / 0.9581 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.8348, allocations: 1 kB / 0.9581 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8348, allocations: 4 kB / 0.9581 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.8348, allocations: 1.438 kB / 0.9581 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002305/0.8351, allocations: 186.4 kB / 0.9583 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.502e-05/0.8351, allocations: 90.62 kB / 0.9584 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.8351, allocations: 5.359 kB / 0.9584 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.631e-05/0.8352, allocations: 5.5 kB / 0.9584 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.8353, allocations: 6.859 kB / 0.9584 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-06/0.8353, allocations: 1.5 kB / 0.9584 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.092e-05/0.8353, allocations: 88.45 kB / 0.9585 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.2e-07/0.8353, allocations: 0 / 0.9585 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002426/0.8356, allocations: 9.75 kB / 0.9585 GB, free: 3.871 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004455/0.836, allocations: 0.7347 MB / 0.9592 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002228/0.8362, allocations: 69.36 kB / 0.9593 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.8363, allocations: 1.469 kB / 0.9593 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.745e-05/0.8364, allocations: 37.47 kB / 0.9593 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.8367, allocations: 15.06 kB / 0.9593 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008236/0.8375, allocations: 494.9 kB / 0.9598 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.8376, allocations: 0.6847 MB / 0.9605 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.058e-05/0.8377, allocations: 6.594 kB / 0.9605 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.8377, allocations: 17.95 kB / 0.9605 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of SimCode: time 3.6e-07/0.8377, allocations: 0 / 0.9605 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01192/0.8496, allocations: 1.437 MB / 0.9619 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001375/0.8498, allocations: 188.6 kB / 0.9621 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/2.559, allocations: 0 / 0.9621 GB, free: 1.062 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat does not exist to compare? outputFormat=mat