Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",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.001148/0.001148, allocations: 99.31 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.000929/0.0009292, 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.356/1.356, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.436/2.436, allocations: 409.2 MB / 0.6838 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003268/0.0003269, allocations: 8 kB / 0.8375 GB, free: 6.508 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6392/0.6395, allocations: 146.8 MB / 0.9809 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001501/0.6411, allocations: 1.109 MB / 0.982 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0004965/0.6416, allocations: 259.3 kB / 0.9822 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.029e-05/0.6416, allocations: 0 / 0.9822 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 7.207e-05/0.6417, allocations: 0 / 0.9822 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.6418, allocations: 19.91 kB / 0.9822 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001251/0.642, allocations: 27.91 kB / 0.9823 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.866e-05/0.6421, allocations: 35.95 kB / 0.9823 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.702e-05/0.6421, allocations: 8 kB / 0.9823 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.455e-05/0.6422, allocations: 23.92 kB / 0.9823 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.6424, allocations: 35.83 kB / 0.9824 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.6424, allocations: 0 / 0.9824 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.564e-05/0.6424, allocations: 4 kB / 0.9824 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.149e-05/0.6424, allocations: 11.98 kB / 0.9824 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.742e-05/0.6425, allocations: 33.64 kB / 0.9824 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 7.831e-05/0.6426, allocations: 42.17 kB / 0.9825 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.6426, allocations: 0 / 0.9825 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6426, allocations: 0 / 0.9825 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.6426, allocations: 0 / 0.9825 GB, free: 4.656 MB / 0.7325 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.0004745/0.6431, allocations: 384.9 kB / 0.9828 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.6431, allocations: 15.97 kB / 0.9828 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.687e-05/0.6432, allocations: 34.55 kB / 0.9829 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.018e-05/0.6432, allocations: 7.906 kB / 0.9829 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.6434, allocations: 187 kB / 0.9831 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.6434, allocations: 0 / 0.9831 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.448e-05/0.6434, allocations: 4 kB / 0.9831 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.6436, allocations: 81.55 kB / 0.9831 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.6436, allocations: 0 / 0.9831 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.6437, allocations: 0 / 0.9831 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.6437, allocations: 0 / 0.9831 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.6438, allocations: 43.98 kB / 0.9832 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004343/0.6442, allocations: 288.9 kB / 0.9835 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.6444, allocations: 74.52 kB / 0.9835 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.6444, allocations: 0 / 0.9835 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.6446, allocations: 137 kB / 0.9837 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.6446, allocations: 3.938 kB / 0.9837 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004399/0.6451, allocations: 288.4 kB / 0.9839 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/0.6452, allocations: 114.8 kB / 0.984 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.081e-05/0.6453, allocations: 113.8 kB / 0.9842 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.6453, allocations: 33.7 kB / 0.9842 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.403e-05/0.6453, allocations: 88.05 kB / 0.9843 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.895e-05/0.6454, allocations: 27.72 kB / 0.9843 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.184e-06/0.6454, allocations: 7.938 kB / 0.9843 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.6455, allocations: 322.8 kB / 0.9846 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.449e-05/0.6456, allocations: 35.98 kB / 0.9846 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.6458, allocations: 112.5 kB / 0.9848 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.6459, allocations: 85.66 kB / 0.9848 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.6459, allocations: 4 kB / 0.9848 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003035/0.6462, allocations: 203.2 kB / 0.985 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.6462, allocations: 38.94 kB / 0.9851 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.6463, allocations: 4 kB / 0.9851 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.6463, allocations: 4 kB / 0.9851 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.6464, allocations: 23.92 kB / 0.9851 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.6464, allocations: 4 kB / 0.9851 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.142e-05/0.6465, allocations: 15.94 kB / 0.9851 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.6465, allocations: 4 kB / 0.9851 GB, free: 1.594 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001454/0.6467, allocations: 183.4 kB / 0.9853 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.743e-05/0.6467, allocations: 7.906 kB / 0.9853 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.307e-05/0.6467, allocations: 4.375 kB / 0.9853 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.6467, allocations: 4 kB / 0.9853 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.6467, allocations: 0 / 0.9853 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.6467, allocations: 0 / 0.9853 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001467/0.6469, allocations: 193.4 kB / 0.9855 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6469, allocations: 0 / 0.9855 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.25e-05/0.6469, allocations: 11.98 kB / 0.9855 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.647, allocations: 4 kB / 0.9855 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.647, allocations: 4 kB / 0.9855 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.647, allocations: 0 / 0.9855 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.647, allocations: 0 / 0.9855 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003261/0.6473, allocations: 234.6 kB / 0.9857 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-05/0.6474, allocations: 88.97 kB / 0.9858 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.6474, allocations: 8 kB / 0.9858 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.117e-05/0.6475, allocations: 8 kB / 0.9858 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.6475, allocations: 7.984 kB / 0.9859 GB, free: 0.7383 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.6475, allocations: 4 kB / 0.9859 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.363e-05/0.6476, allocations: 87.27 kB / 0.9859 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6476, allocations: 3.938 kB / 0.9859 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002348/0.6478, allocations: 24 kB / 0.986 GB, free: 0.6211 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0005964/0.6484, allocations: 0.7741 MB / 0.9867 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002816/0.6487, allocations: 175.3 kB / 0.9869 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6487, allocations: 0 / 0.9869 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001864/0.6489, allocations: 195.5 kB / 0.9871 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.6491, allocations: 9.484 kB / 0.9871 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.6501, allocations: 1.799 MB / 0.9888 GB, free: 13.53 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.6504, allocations: 0.6926 MB / 0.9895 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.726e-05/0.6504, allocations: 12.66 kB / 0.9895 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.6505, allocations: 15.44 kB / 0.9895 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of SimCode: time 2.61e-07/0.6505, allocations: 0 / 0.9895 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01269/0.6632, allocations: 1.804 MB / 0.9913 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000192/0.6634, allocations: 197.9 kB / 0.9915 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.343, allocations: 0 / 0.9915 GB, free: 10.92 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat does not exist to compare? outputFormat=mat