Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001758/0.001757, allocations: 102.2 kB / 16.4 MB, free: 6.465 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.002056/0.002056, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.512/1.512, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.275/2.275, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.00129, allocations: 63.91 kB / 0.9515 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8005/0.8018, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001862/0.8037, allocations: 0.8846 MB / 1.089 GB, free: 4.953 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001467/0.8052, allocations: 1.303 MB / 1.091 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.08e-05/0.8052, allocations: 1.312 kB / 1.091 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.474e-05/0.8053, allocations: 18.42 kB / 1.091 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.8055, allocations: 32.75 kB / 1.091 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006601/0.8061, allocations: 264.1 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003246/0.8065, allocations: 304.4 kB / 1.091 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.8066, allocations: 27.89 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.8068, allocations: 127.5 kB / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002336/0.807, allocations: 127.2 kB / 1.092 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.573e-05/0.8071, allocations: 23.25 kB / 1.092 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.8072, allocations: 41.41 kB / 1.092 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.822e-05/0.8073, allocations: 45.19 kB / 1.092 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.8074, allocations: 106.2 kB / 1.092 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003287/0.8078, allocations: 264.6 kB / 1.092 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.8078, allocations: 0.7969 kB / 1.092 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.323e-06/0.8078, allocations: 0 / 1.092 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.818e-06/0.8078, allocations: 1.125 kB / 1.092 GB, free: 3.418 MB / 0.8575 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.0008338/0.8086, allocations: 0.5304 MB / 1.093 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.8087, allocations: 13.66 kB / 1.093 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.502e-05/0.8088, allocations: 26.25 kB / 1.093 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.809, allocations: 228.5 kB / 1.093 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.809, allocations: 10.88 kB / 1.093 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.634e-05/0.8091, allocations: 21.95 kB / 1.093 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003827/0.8095, allocations: 179.3 kB / 1.093 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.8095, allocations: 0.75 kB / 1.093 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.8095, allocations: 11.39 kB / 1.093 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.8095, allocations: 6.719 kB / 1.093 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.8097, allocations: 91.44 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006082/0.8104, allocations: 472.5 kB / 1.094 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.8106, allocations: 141.4 kB / 1.094 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.8108, allocations: 92.09 kB / 1.094 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.8108, allocations: 1.531 kB / 1.094 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000401/0.8113, allocations: 223.3 kB / 1.094 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=28): time 1.784e-06/0.8113, allocations: 0.5625 kB / 1.094 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28): time 0.0009303/0.8122, allocations: 455.8 kB / 1.094 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.8122, allocations: 56.75 kB / 1.095 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.8124, allocations: 144.5 kB / 1.095 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.259e-05/0.8124, allocations: 39.66 kB / 1.095 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.56e-05/0.8125, allocations: 106.1 kB / 1.095 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.124e-05/0.8126, allocations: 66.41 kB / 1.095 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.8127, allocations: 87.69 kB / 1.095 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.206e-05/0.8128, allocations: 334.1 kB / 1.095 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003162/0.8131, allocations: 146.6 kB / 1.095 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.8135, allocations: 215.2 kB / 1.096 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005333/0.814, allocations: 364.7 kB / 1.096 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.814, allocations: 1.156 kB / 1.096 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008654/0.8149, allocations: 0.4908 MB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.839e-05/0.815, allocations: 68.34 kB / 1.096 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.815, allocations: 1.688 kB / 1.096 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.815, allocations: 4.5 kB / 1.096 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002487/0.8153, allocations: 53 kB / 1.097 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.8153, allocations: 3.75 kB / 1.097 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004119/0.8157, allocations: 82.41 kB / 1.097 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-05/0.8158, allocations: 17.89 kB / 1.097 GB, free: 436 kB / 0.8575 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.0001712/0.8159, allocations: 170.2 kB / 1.097 GB, free: 288 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.897e-05/0.816, allocations: 21.86 kB / 1.097 GB, free: 276 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.161e-05/0.816, allocations: 12.73 kB / 1.097 GB, free: 268 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.816, allocations: 8.047 kB / 1.097 GB, free: 264 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.816, allocations: 0 / 1.097 GB, free: 264 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.816, allocations: 5.25 kB / 1.097 GB, free: 260 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008727/0.8169, allocations: 0.6513 MB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.8169, allocations: 1.922 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.65e-05/0.817, allocations: 9.797 kB / 1.098 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.817, allocations: 1.125 kB / 1.098 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.817, allocations: 14.62 kB / 1.098 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.8171, allocations: 12.97 kB / 1.098 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.8171, allocations: 4 kB / 1.098 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000702/0.8178, allocations: 458.9 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.319e-05/0.8178, allocations: 98.53 kB / 1.098 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.041e-05/0.8179, allocations: 19.34 kB / 1.098 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.818, allocations: 10.08 kB / 1.098 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/0.8181, allocations: 17.45 kB / 1.098 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.8181, allocations: 18.61 kB / 1.098 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 7.781e-05/0.8182, allocations: 109.1 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8182, allocations: 0 / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003707/0.8186, allocations: 64.59 kB / 1.098 GB, free: 15.38 MB / 0.8731 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.0001934/0.8188, allocations: 130.3 kB / 1.098 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007619/0.8196, allocations: 450.2 kB / 1.099 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.8196, allocations: 5.062 kB / 1.099 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.8198, allocations: 122 kB / 1.099 GB, free: 15 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.8202, allocations: 30.98 kB / 1.099 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006466/0.8209, allocations: 333 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.8212, allocations: 0.7211 MB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.61e-05/0.8213, allocations: 19.66 kB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.8213, allocations: 0 / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of Templates: time 0.006129/0.8274, allocations: 3.064 MB / 1.103 GB, free: 13.78 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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