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.00111/0.00111, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001283/0.001283, allocations: 177.3 kB / 15.95 MB, free: 216 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.452/1.452, allocations: 223.2 MB / 239.9 MB, free: 5.453 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.621/2.621, allocations: 390.3 MB / 0.6653 GB, free: 3.035 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003701/0.0003702, allocations: 15.98 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8108/0.8112, allocations: 142.3 MB / 0.9536 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0009022/0.8122, allocations: 383.2 kB / 0.954 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001298/0.8135, allocations: 1.033 MB / 0.955 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.442e-05/0.8136, allocations: 1.156 kB / 0.955 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.195e-05/0.8136, allocations: 3.984 kB / 0.955 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.469e-05/0.8137, allocations: 5.406 kB / 0.955 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002439/0.8139, allocations: 33.5 kB / 0.955 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.555e-05/0.814, allocations: 19.47 kB / 0.955 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.8142, allocations: 12.02 kB / 0.955 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.21e-05/0.8142, allocations: 18.36 kB / 0.9551 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.68e-05/0.8143, allocations: 17.77 kB / 0.9551 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.397e-05/0.8143, allocations: 1.312 kB / 0.9551 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.786e-05/0.8144, allocations: 16.11 kB / 0.9551 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.601e-05/0.8144, allocations: 9.172 kB / 0.9551 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.304e-05/0.8145, allocations: 31.98 kB / 0.9551 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.388e-05/0.8146, allocations: 32.8 kB / 0.9552 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.8146, allocations: 1.594 kB / 0.9552 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.194e-06/0.8146, allocations: 0 / 0.9552 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.89e-06/0.8146, allocations: 0 / 0.9552 GB, free: 6.887 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.0004776/0.8151, allocations: 362.6 kB / 0.9555 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.8151, allocations: 12.66 kB / 0.9555 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.742e-05/0.8152, allocations: 31.53 kB / 0.9556 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.428e-05/0.8152, allocations: 10.3 kB / 0.9556 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.8153, allocations: 161.3 kB / 0.9557 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.8154, allocations: 2.375 kB / 0.9557 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.398e-05/0.8154, allocations: 6 kB / 0.9557 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.8156, allocations: 69.84 kB / 0.9558 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.8156, allocations: 3.938 kB / 0.9558 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.8156, allocations: 4 kB / 0.9558 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.8156, allocations: 0.9688 kB / 0.9558 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.8158, allocations: 56.47 kB / 0.9559 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004169/0.8163, allocations: 267.4 kB / 0.9561 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001395/0.8164, allocations: 52.05 kB / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.8164, allocations: 1.219 kB / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002062/0.8167, allocations: 79.86 kB / 0.9562 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 2.885e-06/0.8167, allocations: 0 / 0.9562 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0004155/0.8171, allocations: 128 kB / 0.9564 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.8171, allocations: 52.69 kB / 0.9564 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.434e-05/0.8172, allocations: 110.4 kB / 0.9565 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.8172, allocations: 27.08 kB / 0.9565 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.004e-05/0.8173, allocations: 93.58 kB / 0.9566 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.8173, allocations: 14.08 kB / 0.9566 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-06/0.8173, allocations: 3.938 kB / 0.9567 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.908e-05/0.8174, allocations: 320.1 kB / 0.957 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.635e-05/0.8175, allocations: 25.17 kB / 0.957 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.8176, allocations: 55.06 kB / 0.957 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.951e-05/0.8177, allocations: 27.58 kB / 0.9571 GB, free: 5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.8177, allocations: 4 kB / 0.9571 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002382/0.818, allocations: 111.6 kB / 0.9572 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.818, allocations: 4.688 kB / 0.9572 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.818, allocations: 2.25 kB / 0.9572 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.818, allocations: 9.766 kB / 0.9572 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.8181, allocations: 19.17 kB / 0.9572 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.8181, allocations: 1.5 kB / 0.9572 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.503e-05/0.8182, allocations: 14.89 kB / 0.9572 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.8182, allocations: 2.719 kB / 0.9572 GB, free: 4.906 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.187e-05/0.8183, allocations: 113.4 kB / 0.9573 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.006e-05/0.8183, allocations: 2.844 kB / 0.9573 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002526/0.8186, allocations: 110.3 kB / 0.9574 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.8186, allocations: 5.453 kB / 0.9574 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.8186, allocations: 4.062 kB / 0.9574 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.8186, allocations: 0 / 0.9574 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003318/0.8189, allocations: 352.6 kB / 0.9578 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.819, allocations: 0 / 0.9578 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.362e-05/0.819, allocations: 15.02 kB / 0.9578 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.819, allocations: 3.953 kB / 0.9578 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.819, allocations: 5.094 kB / 0.9578 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.819, allocations: 0 / 0.9578 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.819, allocations: 1 kB / 0.9578 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002451/0.8193, allocations: 194.9 kB / 0.958 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.305e-05/0.8193, allocations: 82.27 kB / 0.9581 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.8194, allocations: 9.391 kB / 0.9581 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.1e-05/0.8194, allocations: 13.83 kB / 0.9581 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.8195, allocations: 2.125 kB / 0.9581 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.8195, allocations: 1.062 kB / 0.9581 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.184e-05/0.8195, allocations: 89.33 kB / 0.9582 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8195, allocations: 0 / 0.9582 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002295/0.8198, allocations: 13.06 kB / 0.9582 GB, free: 3.977 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.0004417/0.8202, allocations: 0.7279 MB / 0.9589 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002231/0.8204, allocations: 66.64 kB / 0.959 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.8205, allocations: 0 / 0.959 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.8206, allocations: 33.77 kB / 0.959 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.8208, allocations: 11.5 kB / 0.959 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005708/0.8213, allocations: 0.7885 MB / 0.9598 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.8215, allocations: 0.6815 MB / 0.9604 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.39e-05/0.8215, allocations: 14.83 kB / 0.9605 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.315e-05/0.8216, allocations: 14 kB / 0.9605 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8216, allocations: 1.281 kB / 0.9605 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01152/0.8331, allocations: 1.42 MB / 0.9619 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000131/0.8333, allocations: 182.3 kB / 0.962 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.671/2.504, allocations: 0.9062 kB / 0.962 GB, free: 0.7969 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