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.0009863/0.0009862, allocations: 94.03 kB / 15.06 MB, free: 1.086 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.001187/0.001187, allocations: 168.7 kB / 15.95 MB, free: 204 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.372/1.372, allocations: 223.2 MB / 240 MB, free: 5.227 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.569/2.569, allocations: 409.4 MB / 0.684 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003362/0.0003363, allocations: 12 kB / 0.8378 GB, free: 6.43 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7459/0.7462, allocations: 146.8 MB / 0.9812 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001568/0.7478, allocations: 1.106 MB / 0.9822 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005584/0.7484, allocations: 265.7 kB / 0.9825 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.784e-05/0.7485, allocations: 8 kB / 0.9825 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 6.849e-05/0.7486, allocations: 3.938 kB / 0.9825 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.7487, allocations: 11.91 kB / 0.9825 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000139/0.7489, allocations: 23.98 kB / 0.9825 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.983e-05/0.749, allocations: 55.78 kB / 0.9826 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.649e-05/0.7491, allocations: 4 kB / 0.9826 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.277e-05/0.7492, allocations: 27.91 kB / 0.9826 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.7493, allocations: 31.91 kB / 0.9826 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.7493, allocations: 4 kB / 0.9827 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.144e-05/0.7493, allocations: 0 / 0.9827 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.693e-05/0.7493, allocations: 7.938 kB / 0.9827 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.414e-05/0.7494, allocations: 33.7 kB / 0.9827 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.503e-05/0.7495, allocations: 50.08 kB / 0.9827 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.7495, allocations: 0 / 0.9827 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.092e-06/0.7495, allocations: 0 / 0.9827 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.7495, allocations: 0 / 0.9827 GB, free: 4.574 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.0004603/0.75, allocations: 388.9 kB / 0.9831 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 8.41e-05/0.7501, allocations: 8.031 kB / 0.9831 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.233e-05/0.7501, allocations: 38.56 kB / 0.9832 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.7502, allocations: 7.906 kB / 0.9832 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.7503, allocations: 174.9 kB / 0.9833 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.7504, allocations: 8 kB / 0.9833 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.7504, allocations: 7.938 kB / 0.9833 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.7506, allocations: 77.61 kB / 0.9834 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.7506, allocations: 4 kB / 0.9834 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.7506, allocations: 3.984 kB / 0.9834 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.7506, allocations: 4 kB / 0.9834 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.7507, allocations: 55.84 kB / 0.9835 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004044/0.7512, allocations: 280.9 kB / 0.9838 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.7513, allocations: 78.52 kB / 0.9838 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.613e-05/0.7514, allocations: 60.89 kB / 0.9839 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.7514, allocations: 0 / 0.9839 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001923/0.7516, allocations: 125 kB / 0.984 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.193e-06/0.7516, allocations: 4 kB / 0.984 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0003923/0.752, allocations: 203.3 kB / 0.9842 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.856e-05/0.7521, allocations: 118.8 kB / 0.9843 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.7522, allocations: 109.8 kB / 0.9844 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.7522, allocations: 29.7 kB / 0.9844 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.523e-05/0.7523, allocations: 88.16 kB / 0.9845 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.476e-05/0.7523, allocations: 39.67 kB / 0.9846 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-06/0.7524, allocations: 0 / 0.9846 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.7525, allocations: 322.8 kB / 0.9849 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.664e-05/0.7526, allocations: 35.98 kB / 0.9849 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.7527, allocations: 113.6 kB / 0.985 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.7529, allocations: 85.69 kB / 0.9851 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.7529, allocations: 0 / 0.9851 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003314/0.7532, allocations: 210.9 kB / 0.9853 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.876e-05/0.7533, allocations: 33.7 kB / 0.9853 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.7533, allocations: 0 / 0.9853 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.7533, allocations: 8.281 kB / 0.9853 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.7534, allocations: 23.98 kB / 0.9854 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.7535, allocations: 3.938 kB / 0.9854 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.195e-05/0.7535, allocations: 12 kB / 0.9854 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.7536, allocations: 8 kB / 0.9854 GB, free: 1.551 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.0001433/0.7537, allocations: 167.5 kB / 0.9855 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.242e-05/0.7537, allocations: 11.91 kB / 0.9856 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.318e-05/0.7538, allocations: 16.31 kB / 0.9856 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.7538, allocations: 0 / 0.9856 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.7538, allocations: 0 / 0.9856 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.7538, allocations: 0 / 0.9856 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.754, allocations: 201.3 kB / 0.9858 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.754, allocations: 0 / 0.9858 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.947e-05/0.754, allocations: 7.938 kB / 0.9858 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.754, allocations: 0 / 0.9858 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.754, allocations: 8 kB / 0.9858 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.7541, allocations: 0 / 0.9858 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.7541, allocations: 4 kB / 0.9858 GB, free: 1.074 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003472/0.7544, allocations: 234.8 kB / 0.986 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.901e-05/0.7545, allocations: 81.02 kB / 0.9861 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.7545, allocations: 8 kB / 0.9861 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.06e-05/0.7546, allocations: 7.984 kB / 0.9861 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.7546, allocations: 4 kB / 0.9861 GB, free: 0.7031 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.7546, allocations: 8 kB / 0.9861 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.368e-05/0.7547, allocations: 91.2 kB / 0.9862 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7547, allocations: 0 / 0.9862 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002278/0.7549, allocations: 24 kB / 0.9862 GB, free: 0.582 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.0006629/0.7556, allocations: 0.786 MB / 0.987 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002984/0.7559, allocations: 175.2 kB / 0.9872 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7559, allocations: 0.5625 kB / 0.9872 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.7561, allocations: 187.4 kB / 0.9873 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.7563, allocations: 12.75 kB / 0.9873 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009832/0.7573, allocations: 0.6554 MB / 0.988 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.7576, allocations: 0.6887 MB / 0.9887 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.112e-05/0.7576, allocations: 12.66 kB / 0.9887 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.125e-05/0.7577, allocations: 19.38 kB / 0.9887 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/0.7577, allocations: 4 kB / 0.9887 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01209/0.7698, allocations: 1.82 MB / 0.9905 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001783/0.77, allocations: 206 kB / 0.9907 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/2.489, allocations: 1.875 kB / 0.9907 GB, free: 12.01 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