Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.0009647/0.0009647, allocations: 92.23 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.001113/0.001113, 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.422/1.422, allocations: 223.3 MB / 240 MB, free: 5.43 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.511/2.511, allocations: 390.4 MB / 0.6655 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004652/0.0004652, allocations: 8 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8263/0.8267, allocations: 142.3 MB / 0.9539 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0007937/0.8276, allocations: 405.6 kB / 0.9542 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.8287, allocations: 1.043 MB / 0.9553 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.841e-05/0.8287, allocations: 0 / 0.9553 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.778e-05/0.8288, allocations: 0 / 0.9553 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.648e-05/0.8289, allocations: 9.266 kB / 0.9553 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.8291, allocations: 41.7 kB / 0.9553 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.474e-05/0.8292, allocations: 58.56 kB / 0.9554 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.673e-05/0.8293, allocations: 12.73 kB / 0.9554 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.95e-05/0.8294, allocations: 22.17 kB / 0.9554 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.586e-05/0.8295, allocations: 36.8 kB / 0.9554 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.8295, allocations: 2.5 kB / 0.9554 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.85e-05/0.8296, allocations: 18.14 kB / 0.9555 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.865e-05/0.8296, allocations: 13.98 kB / 0.9555 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.471e-05/0.8296, allocations: 38.08 kB / 0.9555 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.8297, allocations: 48.06 kB / 0.9556 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.8297, allocations: 1.125 kB / 0.9556 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.903e-06/0.8298, allocations: 0 / 0.9556 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.8298, allocations: 0 / 0.9556 GB, free: 6.82 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005323/0.8303, allocations: 380 kB / 0.9559 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.8304, allocations: 9.125 kB / 0.9559 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.884e-05/0.8304, allocations: 39.77 kB / 0.956 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.388e-05/0.8304, allocations: 8.672 kB / 0.956 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.601e-05/0.8305, allocations: 165.2 kB / 0.9561 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.8306, allocations: 6.469 kB / 0.9561 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.8306, allocations: 12.77 kB / 0.9561 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.8308, allocations: 79.03 kB / 0.9562 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.8308, allocations: 0 / 0.9562 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.8308, allocations: 4.875 kB / 0.9562 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.8308, allocations: 2.219 kB / 0.9562 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.831, allocations: 74.11 kB / 0.9563 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004493/0.8315, allocations: 315.7 kB / 0.9566 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.8317, allocations: 91 kB / 0.9567 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.8318, allocations: 45.7 kB / 0.9567 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.8318, allocations: 1.5 kB / 0.9567 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.8321, allocations: 100.6 kB / 0.9568 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.8321, allocations: 0 / 0.9568 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004692/0.8326, allocations: 191.3 kB / 0.957 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.8326, allocations: 61.92 kB / 0.9571 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.962e-05/0.8327, allocations: 100.9 kB / 0.9572 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.8327, allocations: 36.41 kB / 0.9572 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.188e-05/0.8327, allocations: 82.78 kB / 0.9573 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.8328, allocations: 28.03 kB / 0.9573 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/0.8328, allocations: 0 / 0.9573 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.874e-05/0.8328, allocations: 329.4 kB / 0.9576 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.8329, allocations: 40.34 kB / 0.9577 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.8331, allocations: 64.81 kB / 0.9577 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.8332, allocations: 52.53 kB / 0.9578 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.8332, allocations: 0 / 0.9578 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002917/0.8335, allocations: 166.4 kB / 0.9579 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.8335, allocations: 5.5 kB / 0.9579 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.8335, allocations: 5.859 kB / 0.9579 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.8336, allocations: 4 kB / 0.9579 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.8337, allocations: 26.02 kB / 0.958 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.8337, allocations: 1.781 kB / 0.958 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.652e-05/0.8338, allocations: 15.05 kB / 0.958 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.8338, allocations: 11.62 kB / 0.958 GB, free: 4.633 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 6.731e-05/0.8339, allocations: 120.9 kB / 0.9581 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.117e-05/0.8339, allocations: 1.75 kB / 0.9581 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003105/0.8342, allocations: 149.4 kB / 0.9583 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.8342, allocations: 12.73 kB / 0.9583 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.8342, allocations: 0.9688 kB / 0.9583 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.8342, allocations: 0 / 0.9583 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004497/0.8347, allocations: 424.6 kB / 0.9587 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.8347, allocations: 5.281 kB / 0.9587 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.393e-05/0.8348, allocations: 9.75 kB / 0.9587 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.8348, allocations: 7.938 kB / 0.9587 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.8348, allocations: 1.062 kB / 0.9587 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.8348, allocations: 1.125 kB / 0.9587 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.8348, allocations: 0 / 0.9587 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.8351, allocations: 246.9 kB / 0.9589 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.484e-05/0.8352, allocations: 91 kB / 0.959 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.8352, allocations: 4.891 kB / 0.959 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.976e-05/0.8353, allocations: 12.17 kB / 0.959 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.8353, allocations: 7.438 kB / 0.959 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.8354, allocations: 11.48 kB / 0.9591 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.776e-05/0.8354, allocations: 80.09 kB / 0.9591 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8354, allocations: 0 / 0.9591 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002536/0.8357, allocations: 18.41 kB / 0.9591 GB, free: 3.633 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0005154/0.8362, allocations: 0.7886 MB / 0.9599 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002906/0.8365, allocations: 114.6 kB / 0.96 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.8365, allocations: 0.9688 kB / 0.96 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.8366, allocations: 52.5 kB / 0.9601 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.8369, allocations: 13.95 kB / 0.9601 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009715/0.8379, allocations: 0.5715 MB / 0.9606 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.838, allocations: 0.6839 MB / 0.9613 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.892e-05/0.8381, allocations: 8.547 kB / 0.9613 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.989e-05/0.8381, allocations: 19.56 kB / 0.9613 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8381, allocations: 4.375 kB / 0.9613 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01233/0.8504, allocations: 1.766 MB / 0.9631 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.8507, allocations: 200.6 kB / 0.9633 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/2.673, allocations: 0 / 0.9633 GB, free: 0.5742 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat