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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001443/0.001443, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 15.22 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 2.592/2.592, allocations: 437.1 MB / 0.711 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 72.36 kB / 0.8699 GB, free: 2.242 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.3003, allocations: 151.6 MB / 1.018 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002185/0.3025, allocations: 0.8787 MB / 1.019 GB, free: 9.801 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001738/0.3043, allocations: 1.313 MB / 1.02 GB, free: 8.473 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.113e-05/0.3044, allocations: 3.938 kB / 1.02 GB, free: 8.469 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.3046, allocations: 11.86 kB / 1.02 GB, free: 8.457 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.3047, allocations: 27.72 kB / 1.02 GB, free: 8.43 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008018/0.3055, allocations: 269.5 kB / 1.02 GB, free: 8.172 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003459/0.3059, allocations: 299.3 kB / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.306, allocations: 29.09 kB / 1.021 GB, free: 7.848 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002387/0.3063, allocations: 127.7 kB / 1.021 GB, free: 7.723 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.3065, allocations: 111.7 kB / 1.021 GB, free: 7.613 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.208e-05/0.3066, allocations: 24 kB / 1.021 GB, free: 7.59 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.3067, allocations: 39.92 kB / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.913e-05/0.3068, allocations: 47.83 kB / 1.021 GB, free: 7.504 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.3069, allocations: 103.6 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.3072, allocations: 259.5 kB / 1.021 GB, free: 7.148 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3072, allocations: 3.984 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3072, allocations: 0 / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.3072, allocations: 4 kB / 1.021 GB, free: 7.141 MB / 0.795 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.0009147/0.3081, allocations: 0.53 MB / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.3082, allocations: 8.031 kB / 1.022 GB, free: 6.535 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.745e-05/0.3083, allocations: 24.75 kB / 1.022 GB, free: 6.512 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.3085, allocations: 236 kB / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.919e-05/0.3086, allocations: 16.36 kB / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.4e-05/0.3086, allocations: 12.38 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000349/0.309, allocations: 194.2 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.309, allocations: 192 / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.309, allocations: 7.938 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.309, allocations: 4 kB / 1.022 GB, free: 6.012 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001988/0.3092, allocations: 92.17 kB / 1.022 GB, free: 5.922 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005945/0.3098, allocations: 472.7 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.3101, allocations: 142.4 kB / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.3103, allocations: 100.8 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.3103, allocations: 7.984 kB / 1.023 GB, free: 5.152 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003475/0.3107, allocations: 207.9 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of pre-optimization done (n=28): time 2.234e-06/0.3107, allocations: 0 / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of matching and sorting (n=28): time 0.0008439/0.3115, allocations: 450.5 kB / 1.024 GB, free: 4.492 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.3116, allocations: 67.39 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.3117, allocations: 140.8 kB / 1.024 GB, free: 4.27 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.32e-05/0.3118, allocations: 37.7 kB / 1.024 GB, free: 4.227 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.375e-05/0.3119, allocations: 112.5 kB / 1.024 GB, free: 4.113 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.494e-05/0.3119, allocations: 71.17 kB / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.3121, allocations: 86 kB / 1.024 GB, free: 3.953 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3122, allocations: 334.8 kB / 1.025 GB, free: 3.617 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.3125, allocations: 148.7 kB / 1.025 GB, free: 3.473 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003185/0.3128, allocations: 205.2 kB / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005084/0.3133, allocations: 362.9 kB / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3134, allocations: 4 kB / 1.025 GB, free: 2.863 MB / 0.795 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008472/0.3142, allocations: 0.4907 MB / 1.026 GB, free: 2.355 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.461e-05/0.3143, allocations: 71.39 kB / 1.026 GB, free: 2.273 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.3143, allocations: 0 / 1.026 GB, free: 2.273 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.3143, allocations: 4 kB / 1.026 GB, free: 2.27 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.3145, allocations: 56.03 kB / 1.026 GB, free: 2.215 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.3146, allocations: 4 kB / 1.026 GB, free: 2.211 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004093/0.315, allocations: 79.61 kB / 1.026 GB, free: 2.133 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.282e-05/0.315, allocations: 19.98 kB / 1.026 GB, free: 2.113 MB / 0.795 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.0001653/0.3152, allocations: 161.8 kB / 1.026 GB, free: 1.945 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.3152, allocations: 15.81 kB / 1.026 GB, free: 1.93 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.186e-05/0.3153, allocations: 21.86 kB / 1.026 GB, free: 1.914 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3153, allocations: 0 / 1.026 GB, free: 1.914 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3153, allocations: 0 / 1.026 GB, free: 1.914 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3153, allocations: 7.875 kB / 1.026 GB, free: 1.906 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007436/0.3161, allocations: 0.6622 MB / 1.027 GB, free: 1.188 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3161, allocations: 4 kB / 1.027 GB, free: 1.184 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.535e-05/0.3161, allocations: 7.984 kB / 1.027 GB, free: 1.176 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.3161, allocations: 0 / 1.027 GB, free: 1.176 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.3162, allocations: 7.984 kB / 1.027 GB, free: 1.168 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.3162, allocations: 3.938 kB / 1.027 GB, free: 1.164 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3162, allocations: 4 kB / 1.027 GB, free: 1.16 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005814/0.3168, allocations: 459.8 kB / 1.027 GB, free: 0.6953 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.289e-05/0.3168, allocations: 92.91 kB / 1.027 GB, free: 0.5859 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.519e-05/0.3169, allocations: 19.98 kB / 1.027 GB, free: 0.5664 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.317, allocations: 8.031 kB / 1.027 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.307e-05/0.3171, allocations: 23.95 kB / 1.027 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.152e-05/0.3171, allocations: 23.92 kB / 1.027 GB, free: 0.5117 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.763e-05/0.3172, allocations: 103.2 kB / 1.028 GB, free: 420 kB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3172, allocations: 0 / 1.028 GB, free: 420 kB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003326/0.3175, allocations: 64 kB / 1.028 GB, free: 356 kB / 0.795 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.000189/0.3177, allocations: 145.3 kB / 1.028 GB, free: 200 kB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007261/0.3184, allocations: 463.4 kB / 1.028 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3184, allocations: 0 / 1.028 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002067/0.3187, allocations: 119.9 kB / 1.028 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/0.319, allocations: 38.88 kB / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005809/0.3196, allocations: 353.2 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.3199, allocations: 0.7206 MB / 1.029 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.954e-05/0.3199, allocations: 19.38 kB / 1.029 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of SimCode: time 3.9e-07/0.3199, allocations: 0 / 1.029 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of Templates: time 0.004927/0.3249, allocations: 3.039 MB / 1.032 GB, free: 11.4 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/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) "" Variables in the reference:time,triMovMea.u,triMovMea.y,triMovMea1.y,booPul.y,triMovMea2.y,booPul1.y Variables in the result:booPul.y,booPul1.y,time,triMovMea.u,triMovMea.y,triMovMea1.y,triMovMea2.y