Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.TriggeredMovingMean,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",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.007789/0.007789, allocations: 99.86 kB / 15.73 MB, free: 6.055 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.001782/0.001782, allocations: 192.9 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.44/2.44, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 4.424/4.424, allocations: 437 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.003256/0.003256, allocations: 67.91 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.522/1.526, allocations: 151.6 MB / 1.166 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.003535/1.529, allocations: 0.8748 MB / 1.167 GB, free: 2.918 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002951/1.532, allocations: 1.314 MB / 1.168 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.541e-05/1.532, allocations: 7.938 kB / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001363/1.532, allocations: 7.875 kB / 1.168 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.000205/1.533, allocations: 31.72 kB / 1.168 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001312/1.534, allocations: 273.9 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0006438/1.535, allocations: 299.4 kB / 1.169 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/1.535, allocations: 29.11 kB / 1.169 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003296/1.535, allocations: 127.6 kB / 1.169 GB, free: 0.832 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003831/1.536, allocations: 127.6 kB / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 8.249e-05/1.536, allocations: 20 kB / 1.169 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/1.536, allocations: 43.98 kB / 1.169 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001131/1.536, allocations: 39.89 kB / 1.169 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0002349/1.536, allocations: 111.5 kB / 1.169 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0005552/1.537, allocations: 262.8 kB / 1.17 GB, free: 248 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/1.537, allocations: 0 / 1.17 GB, free: 248 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.523e-06/1.537, allocations: 0 / 1.17 GB, free: 248 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.991e-06/1.537, allocations: 0 / 1.17 GB, free: 248 kB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001647/1.538, allocations: 0.5415 MB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.908e-05/1.539, allocations: 8.922 kB / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.55e-05/1.539, allocations: 50.67 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/1.539, allocations: 20.84 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004839/1.539, allocations: 236.1 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.133e-05/1.539, allocations: 12.36 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.226e-05/1.539, allocations: 20.38 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006939/1.54, allocations: 190.6 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/1.54, allocations: 3.938 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.229e-05/1.54, allocations: 8 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/1.54, allocations: 0 / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/1.541, allocations: 94.61 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/1.542, allocations: 468.8 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/1.542, allocations: 134.5 kB / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003567/1.543, allocations: 96.8 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/1.543, allocations: 3.984 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006865/1.544, allocations: 207.9 kB / 1.172 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=28): time 9.358e-06/1.544, allocations: 0 / 1.172 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28): time 0.001796/1.545, allocations: 462.5 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.732e-05/1.546, allocations: 55.41 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/1.546, allocations: 148.5 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 9.318e-05/1.546, allocations: 41.7 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/1.546, allocations: 108.6 kB / 1.172 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/1.546, allocations: 75.45 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/1.547, allocations: 86 kB / 1.173 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002459/1.547, allocations: 330.8 kB / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006128/1.547, allocations: 144.7 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006957/1.548, allocations: 213.1 kB / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/1.549, allocations: 362.9 kB / 1.174 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/1.549, allocations: 4 kB / 1.174 GB, free: 11.9 MB / 0.9044 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00148/1.551, allocations: 0.4947 MB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.85e-05/1.551, allocations: 67.39 kB / 1.174 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/1.551, allocations: 4 kB / 1.174 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/1.551, allocations: 7.938 kB / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003604/1.551, allocations: 51.91 kB / 1.174 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/1.551, allocations: 4 kB / 1.174 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005851/1.552, allocations: 79.78 kB / 1.174 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-05/1.552, allocations: 23.98 kB / 1.174 GB, free: 11.14 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002865/1.552, allocations: 165.8 kB / 1.174 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-05/1.552, allocations: 15.91 kB / 1.174 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.83e-05/1.552, allocations: 13.88 kB / 1.174 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/1.552, allocations: 4 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/1.552, allocations: 0 / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/1.552, allocations: 7.922 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/1.554, allocations: 0.6583 MB / 1.175 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/1.554, allocations: 0 / 1.175 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.836e-05/1.554, allocations: 8 kB / 1.175 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-05/1.554, allocations: 7.984 kB / 1.175 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.472e-05/1.554, allocations: 15.92 kB / 1.175 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/1.554, allocations: 4 kB / 1.175 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.554, allocations: 0 / 1.175 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/1.556, allocations: 451.3 kB / 1.176 GB, free: 9.719 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/1.556, allocations: 92.95 kB / 1.176 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/1.556, allocations: 23.92 kB / 1.176 GB, free: 9.586 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/1.556, allocations: 11.92 kB / 1.176 GB, free: 9.574 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.597e-05/1.556, allocations: 19.92 kB / 1.176 GB, free: 9.555 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.656e-05/1.556, allocations: 23.97 kB / 1.176 GB, free: 9.531 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001426/1.556, allocations: 103.2 kB / 1.176 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3e-07/1.556, allocations: 0 / 1.176 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0006835/1.557, allocations: 67.98 kB / 1.176 GB, free: 9.363 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00199/1.559, allocations: 1.02 MB / 1.177 GB, free: 8.32 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001469/1.561, allocations: 454.4 kB / 1.177 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/1.561, allocations: 0 / 1.177 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0004986/1.561, allocations: 119.9 kB / 1.177 GB, free: 7.734 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006898/1.562, allocations: 38.72 kB / 1.177 GB, free: 7.699 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006375/1.568, allocations: 2.651 MB / 1.18 GB, free: 4.926 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005596/1.569, allocations: 0.7242 MB / 1.181 GB, free: 4.176 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001404/1.569, allocations: 25.72 kB / 1.181 GB, free: 4.152 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/1.569, allocations: 47.41 kB / 1.181 GB, free: 4.105 MB / 0.9044 GB Notification: Performance of SimCode: time 8.82e-07/1.569, allocations: 0 / 1.181 GB, free: 4.105 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1161/1.685, allocations: 5.171 MB / 1.186 GB, free: 15.07 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.66/19.35, allocations: 9.203 kB / 1.186 GB, free: 15.07 MB / 0.92 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.csv --start-time -0.5 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0062 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches