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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.007682/0.007682, allocations: 99.77 kB / 15.73 MB, free: 5.98 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.002063/0.002063, allocations: 194.6 kB / 16.68 MB, free: 5.91 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.83/2.83, allocations: 482.4 MB / 0.7548 GB, free: 6.887 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 64.95 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2905, allocations: 162.2 MB / 1.241 GB, free: 9.328 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002767/0.2933, allocations: 0.8784 MB / 1.242 GB, free: 8.449 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002718/0.296, allocations: 1.296 MB / 1.244 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.282e-05/0.2961, allocations: 4 kB / 1.244 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.2963, allocations: 19.73 kB / 1.244 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001729/0.2965, allocations: 35.72 kB / 1.244 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.2976, allocations: 261.5 kB / 1.244 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005116/0.2981, allocations: 299.4 kB / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.2983, allocations: 38.5 kB / 1.244 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.2986, allocations: 123.8 kB / 1.244 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.2989, allocations: 131.6 kB / 1.244 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.045e-05/0.299, allocations: 20 kB / 1.244 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.2992, allocations: 43.92 kB / 1.244 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.2993, allocations: 39.89 kB / 1.245 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002022/0.2995, allocations: 107.6 kB / 1.245 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004784/0.3, allocations: 271.3 kB / 1.245 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3, allocations: 0 / 1.245 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3, allocations: 4 kB / 1.245 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.3, allocations: 0 / 1.245 GB, free: 5.777 MB / 0.9669 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.001266/0.3013, allocations: 0.5415 MB / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3014, allocations: 8.031 kB / 1.245 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.595e-05/0.3014, allocations: 46.72 kB / 1.245 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.3016, allocations: 20.84 kB / 1.246 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003787/0.302, allocations: 232.1 kB / 1.246 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.302, allocations: 8.375 kB / 1.246 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.22e-05/0.3021, allocations: 24.36 kB / 1.246 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005618/0.3027, allocations: 188 kB / 1.246 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.3027, allocations: 3.938 kB / 1.246 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.3027, allocations: 11.98 kB / 1.246 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3028, allocations: 0 / 1.246 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00037/0.3031, allocations: 92.11 kB / 1.246 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009317/0.3041, allocations: 476.6 kB / 1.246 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.3045, allocations: 138.5 kB / 1.247 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000278/0.3048, allocations: 92.81 kB / 1.247 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.3048, allocations: 0 / 1.247 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005244/0.3054, allocations: 211.9 kB / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=28): time 2.154e-06/0.3054, allocations: 0 / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of matching and sorting (n=28): time 0.001431/0.3068, allocations: 463.4 kB / 1.247 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.3069, allocations: 55.41 kB / 1.247 GB, free: 3 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.3071, allocations: 143.8 kB / 1.248 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 7.451e-05/0.3072, allocations: 37.7 kB / 1.248 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3073, allocations: 108.6 kB / 1.248 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.3074, allocations: 67.53 kB / 1.248 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002513/0.3077, allocations: 89.98 kB / 1.248 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001848/0.3079, allocations: 330.8 kB / 1.248 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004868/0.3084, allocations: 148.7 kB / 1.248 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005464/0.3089, allocations: 205.2 kB / 1.248 GB, free: 1.84 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000877/0.3098, allocations: 366.3 kB / 1.249 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.3098, allocations: 0 / 1.249 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001494/0.3114, allocations: 0.496 MB / 1.249 GB, free: 0.9336 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.817e-05/0.3114, allocations: 67.52 kB / 1.249 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.3115, allocations: 8 kB / 1.249 GB, free: 0.8477 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3115, allocations: 4 kB / 1.249 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003077/0.3118, allocations: 51.84 kB / 1.249 GB, free: 0.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3118, allocations: 4 kB / 1.249 GB, free: 0.7891 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005423/0.3124, allocations: 83.7 kB / 1.25 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-05/0.3125, allocations: 23.98 kB / 1.25 GB, free: 0.6836 MB / 0.9669 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.0002326/0.3127, allocations: 170.6 kB / 1.25 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.469e-05/0.3128, allocations: 19.89 kB / 1.25 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4e-05/0.3128, allocations: 9.875 kB / 1.25 GB, free: 488 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.3129, allocations: 4 kB / 1.25 GB, free: 484 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3129, allocations: 0 / 1.25 GB, free: 484 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.3129, allocations: 7.922 kB / 1.25 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.3141, allocations: 0.6621 MB / 1.25 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3141, allocations: 0 / 1.25 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-05/0.3142, allocations: 11.94 kB / 1.25 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3142, allocations: 4 kB / 1.25 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.3142, allocations: 15.91 kB / 1.25 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3142, allocations: 0 / 1.25 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3142, allocations: 0 / 1.25 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006563/0.3149, allocations: 456 kB / 1.251 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.521e-05/0.315, allocations: 89.02 kB / 1.251 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.474e-05/0.315, allocations: 23.92 kB / 1.251 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.3152, allocations: 7.984 kB / 1.251 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.3152, allocations: 15.98 kB / 1.251 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.73e-05/0.3153, allocations: 19.97 kB / 1.251 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.887e-05/0.3153, allocations: 100.7 kB / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3153, allocations: 0 / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003384/0.3157, allocations: 67.94 kB / 1.251 GB, free: 14.92 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.00104/0.3167, allocations: 1.023 MB / 1.252 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007391/0.3175, allocations: 460.4 kB / 1.253 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3175, allocations: 4.062 kB / 1.253 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.3177, allocations: 115.9 kB / 1.253 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.3181, allocations: 41.8 kB / 1.253 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.3217, allocations: 2.664 MB / 1.255 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.322, allocations: 0.7242 MB / 1.256 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.51e-05/0.3221, allocations: 21.55 kB / 1.256 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.786e-05/0.3222, allocations: 47.41 kB / 1.256 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of SimCode: time 3.556e-06/0.3222, allocations: 4 kB / 1.256 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.3492, allocations: 5.178 MB / 1.261 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.816/8.165, allocations: 3.938 kB / 1.261 GB, free: 4.613 MB / 0.9825 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 400 --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