Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Utilities.IO.Python_3_8.Examples.KalmanFilter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kalFil.uR.1.|kalFil.yR.1.|sine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kalFil.uR.1.|kalFil.yR.1.|sine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001008, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.00117/0.00117, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.507/2.507, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005486/0.0005487, allocations: 12 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7558/0.7564, allocations: 142.4 MB / 0.9544 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.001874/0.7583, allocations: 1.417 MB / 0.9558 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002184/0.7605, allocations: 1.685 MB / 0.9575 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.119e-05/0.7606, allocations: 5.031 kB / 0.9575 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.7607, allocations: 25.88 kB / 0.9575 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001262/0.7608, allocations: 16.17 kB / 0.9575 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007081/0.7616, allocations: 261.6 kB / 0.9578 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002535/0.7618, allocations: 190 kB / 0.9579 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.817e-05/0.7619, allocations: 26.92 kB / 0.958 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.7621, allocations: 74.61 kB / 0.958 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.7622, allocations: 62.7 kB / 0.9581 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.7622, allocations: 5.938 kB / 0.9581 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003694/0.7626, allocations: 236.1 kB / 0.9583 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.728e-05/0.7627, allocations: 49.92 kB / 0.9584 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.621e-05/0.7627, allocations: 56.3 kB / 0.9584 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.763, allocations: 259.7 kB / 0.9587 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.763, allocations: 0 / 0.9587 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7631, allocations: 0 / 0.9587 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.7631, allocations: 0 / 0.9587 GB, free: 4.582 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.000689/0.7638, allocations: 0.5022 MB / 0.9592 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.7638, allocations: 9.625 kB / 0.9592 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.099e-05/0.7639, allocations: 17.44 kB / 0.9592 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.7641, allocations: 215.2 kB / 0.9594 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.7641, allocations: 8.312 kB / 0.9594 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.761e-05/0.7641, allocations: 21.52 kB / 0.9594 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.7644, allocations: 155.2 kB / 0.9596 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.7644, allocations: 3.938 kB / 0.9596 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.7645, allocations: 5.359 kB / 0.9596 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.7645, allocations: 6.703 kB / 0.9596 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/0.7647, allocations: 87.38 kB / 0.9597 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007531/0.7654, allocations: 436 kB / 0.9601 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002798/0.7657, allocations: 155.1 kB / 0.9602 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.7659, allocations: 80.52 kB / 0.9603 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.7659, allocations: 7.188 kB / 0.9603 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003095/0.7662, allocations: 174.7 kB / 0.9605 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.7662, allocations: 0.7188 kB / 0.9605 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0006603/0.7669, allocations: 324 kB / 0.9608 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.767, allocations: 88.75 kB / 0.9609 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.7671, allocations: 165.2 kB / 0.961 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.7671, allocations: 43.09 kB / 0.9611 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.686e-05/0.7672, allocations: 107.5 kB / 0.9612 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.748e-05/0.7672, allocations: 56.36 kB / 0.9612 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.08e-05/0.7673, allocations: 5.156 kB / 0.9612 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.338e-05/0.7673, allocations: 336 kB / 0.9616 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.7675, allocations: 80.92 kB / 0.9616 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.7677, allocations: 182.4 kB / 0.9618 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.7679, allocations: 109 kB / 0.9619 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.7679, allocations: 2.188 kB / 0.9619 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004777/0.7684, allocations: 305.1 kB / 0.9622 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.7684, allocations: 6.25 kB / 0.9622 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.7684, allocations: 3.531 kB / 0.9622 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.7684, allocations: 5.219 kB / 0.9622 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.7686, allocations: 42.14 kB / 0.9623 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.7686, allocations: 9.766 kB / 0.9623 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.7687, allocations: 26.72 kB / 0.9623 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.7688, allocations: 13.31 kB / 0.9623 GB, free: 1.684 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition3,$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.ran.firstTrigger,ran.firstTrigger,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$whenCondition1,ran.sampleTrigger,$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.ran.uRWri_temp[1],ran.uRWri_temp[1],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.uRWri_temp[1],kalFil.uRWri_temp[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.7689, allocations: 157.2 kB / 0.9625 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.7689, allocations: 15.38 kB / 0.9625 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.172e-05/0.769, allocations: 18.91 kB / 0.9625 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.769, allocations: 6.125 kB / 0.9625 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.769, allocations: 1.031 kB / 0.9625 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.769, allocations: 8.859 kB / 0.9625 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007425/0.7698, allocations: 0.5931 MB / 0.9631 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7698, allocations: 5.344 kB / 0.9631 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.533e-05/0.7699, allocations: 16.05 kB / 0.9631 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.7699, allocations: 5.188 kB / 0.9631 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.7699, allocations: 7.984 kB / 0.9631 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.7699, allocations: 1.344 kB / 0.9631 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7699, allocations: 1.344 kB / 0.9631 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006074/0.7705, allocations: 444.9 kB / 0.9635 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.993e-05/0.7706, allocations: 98.44 kB / 0.9636 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.7706, allocations: 9.172 kB / 0.9636 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.7708, allocations: 21.02 kB / 0.9637 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.067e-05/0.7708, allocations: 10.45 kB / 0.9637 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.7709, allocations: 16.53 kB / 0.9637 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.34e-05/0.7709, allocations: 123.9 kB / 0.9638 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7709, allocations: 0 / 0.9638 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004588/0.7714, allocations: 110.8 kB / 0.9639 GB, free: 496 kB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (ran.uRInt[1],kalFil.uRInt[1]) * Number of discrete variables: 15 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],ran.uRWri_temp[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],kalFil.uRWri_temp[1],$whenCondition3) * Number of discrete states: 2 (kalFil.uR[1],ran.uR[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000861/0.7723, allocations: 450.5 kB / 0.9643 GB, free: 260 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004147/0.7727, allocations: 207.3 kB / 0.9645 GB, free: 176 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.7727, allocations: 0 / 0.9645 GB, free: 176 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.7729, allocations: 96.62 kB / 0.9646 GB, free: 136 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.7732, allocations: 29.28 kB / 0.9647 GB, free: 120 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007084/0.7739, allocations: 408.2 kB / 0.9651 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.7743, allocations: 0.729 MB / 0.9658 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001231/0.7744, allocations: 52.22 kB / 0.9658 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.7744, allocations: 21.23 kB / 0.9658 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.7744, allocations: 0 / 0.9658 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of Templates: time 0.007345/0.7818, allocations: 3.228 MB / 0.969 GB, free: 13.41 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & ./Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches