Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_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.005546/0.005546, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.00135/0.00135, allocations: 197.3 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.678/2.678, allocations: 469.4 MB / 0.7422 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 55.91 kB / 1.064 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2572, allocations: 159.1 MB / 1.22 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.001863/0.2591, allocations: 0.8692 MB / 1.221 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001622/0.2607, allocations: 1.307 MB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.944e-05/0.2608, allocations: 0 / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.2609, allocations: 15.8 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.2611, allocations: 31.78 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007003/0.2618, allocations: 267.4 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003203/0.2621, allocations: 295.4 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.2622, allocations: 29.11 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.2624, allocations: 143.6 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.2627, allocations: 119.7 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.918e-05/0.2627, allocations: 24 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.431e-05/0.2628, allocations: 35.98 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.093e-05/0.2629, allocations: 43.89 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.263, allocations: 103.5 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.2633, allocations: 263.1 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2633, allocations: 0 / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2633, allocations: 0 / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.2633, allocations: 0 / 1.223 GB, free: 11.17 MB / 0.9825 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.0008944/0.2642, allocations: 0.5454 MB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.2643, allocations: 12.03 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.881e-05/0.2643, allocations: 46.72 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.408e-05/0.2644, allocations: 20.84 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.2647, allocations: 243.9 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.2647, allocations: 12.38 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/0.2648, allocations: 24.36 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003646/0.2651, allocations: 182.8 kB / 1.224 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.2652, allocations: 7.938 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.2652, allocations: 7.984 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.2652, allocations: 4 kB / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002203/0.2654, allocations: 90.2 kB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006301/0.2661, allocations: 472.8 kB / 1.225 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002615/0.2663, allocations: 142.5 kB / 1.225 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.2666, allocations: 98.88 kB / 1.225 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.059e-05/0.2666, allocations: 0 / 1.225 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.2669, allocations: 223.7 kB / 1.225 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=28): time 1.824e-06/0.2669, allocations: 0 / 1.225 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of matching and sorting (n=28): time 0.0008592/0.2678, allocations: 451.5 kB / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.2679, allocations: 59.41 kB / 1.226 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.268, allocations: 143.8 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.293e-05/0.268, allocations: 45.69 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.457e-05/0.2681, allocations: 108.6 kB / 1.226 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.206e-05/0.2682, allocations: 71.45 kB / 1.226 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/0.2684, allocations: 89.98 kB / 1.226 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.2685, allocations: 326.8 kB / 1.226 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003062/0.2688, allocations: 148.7 kB / 1.227 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003316/0.2691, allocations: 209.2 kB / 1.227 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005274/0.2697, allocations: 362.3 kB / 1.227 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2697, allocations: 0 / 1.227 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008258/0.2705, allocations: 0.4998 MB / 1.228 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.036e-05/0.2706, allocations: 67.39 kB / 1.228 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2706, allocations: 4 kB / 1.228 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.2706, allocations: 4.125 kB / 1.228 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.2708, allocations: 47.92 kB / 1.228 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.2709, allocations: 7.984 kB / 1.228 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003914/0.2713, allocations: 79.66 kB / 1.228 GB, free: 6.066 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.2713, allocations: 23.97 kB / 1.228 GB, free: 6.043 MB / 0.9825 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.0001656/0.2715, allocations: 162.3 kB / 1.228 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/0.2715, allocations: 23.89 kB / 1.228 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.055e-05/0.2716, allocations: 13.95 kB / 1.228 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2716, allocations: 4 kB / 1.228 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2716, allocations: 0 / 1.228 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2716, allocations: 7.875 kB / 1.228 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007768/0.2724, allocations: 0.6584 MB / 1.229 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-06/0.2724, allocations: 4 kB / 1.229 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.341e-05/0.2724, allocations: 8 kB / 1.229 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.2724, allocations: 4 kB / 1.229 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-05/0.2725, allocations: 19.91 kB / 1.229 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2725, allocations: 0 / 1.229 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2725, allocations: 0 / 1.229 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000591/0.2731, allocations: 459.8 kB / 1.229 GB, free: 4.613 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.2731, allocations: 96.89 kB / 1.229 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.534e-05/0.2732, allocations: 23.92 kB / 1.229 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.2733, allocations: 11.98 kB / 1.229 GB, free: 4.465 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.2734, allocations: 11.98 kB / 1.229 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.049e-05/0.2734, allocations: 23.97 kB / 1.229 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.837e-05/0.2735, allocations: 101.1 kB / 1.229 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2735, allocations: 0 / 1.229 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003422/0.2738, allocations: 60 kB / 1.229 GB, free: 4.273 MB / 0.9825 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.000916/0.2748, allocations: 1.023 MB / 1.23 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006926/0.2755, allocations: 466.5 kB / 1.231 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2755, allocations: 0 / 1.231 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002213/0.2757, allocations: 123 kB / 1.231 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/0.2761, allocations: 31.97 kB / 1.231 GB, free: 2.598 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/0.2793, allocations: 2.644 MB / 1.234 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.2796, allocations: 0.7242 MB / 1.234 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.569e-05/0.2797, allocations: 17.55 kB / 1.234 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.023e-05/0.2798, allocations: 51.41 kB / 1.234 GB, free: 15 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.2798, allocations: 0 / 1.234 GB, free: 15 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0204/0.3002, allocations: 5.183 MB / 1.239 GB, free: 9.988 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.383/7.683, allocations: 8.672 kB / 1.24 GB, free: 9.98 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches