Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: 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_latest_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_latest_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.001338/0.001338, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.808/2.808, allocations: 472.6 MB / 0.7451 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 66.94 kB / 0.9121 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3131, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003126/0.3163, allocations: 1.73 MB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002449/0.3187, allocations: 1.806 MB / 1.072 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.172e-05/0.3188, allocations: 4 kB / 1.072 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.319, allocations: 27.73 kB / 1.072 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.3191, allocations: 23.78 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.3203, allocations: 318.1 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002683/0.3205, allocations: 223.4 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.3207, allocations: 29.52 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.3208, allocations: 87.67 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.3209, allocations: 71.69 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.321, allocations: 16 kB / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00042/0.3214, allocations: 259.5 kB / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.3215, allocations: 59.81 kB / 1.073 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.536e-05/0.3216, allocations: 71.59 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004046/0.322, allocations: 371.4 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.322, allocations: 0 / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.212e-06/0.322, allocations: 3.938 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.3221, allocations: 0 / 1.073 GB, free: 5.27 MB / 0.8262 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.0007505/0.3228, allocations: 0.5224 MB / 1.074 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.3228, allocations: 12.03 kB / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.574e-05/0.3229, allocations: 16.75 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.3231, allocations: 221.8 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.3232, allocations: 16.31 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.661e-05/0.3232, allocations: 15.98 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003202/0.3235, allocations: 152.7 kB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.3235, allocations: 3.938 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.3236, allocations: 8 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3236, allocations: 0 / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.3238, allocations: 79.88 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007881/0.3246, allocations: 424.8 kB / 1.075 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002869/0.3249, allocations: 158.3 kB / 1.075 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.3251, allocations: 68.81 kB / 1.075 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.3251, allocations: 4 kB / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.3254, allocations: 165 kB / 1.075 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.523e-06/0.3254, allocations: 4 kB / 1.075 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20): time 0.0006804/0.3261, allocations: 307.6 kB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.3261, allocations: 93.22 kB / 1.075 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.3263, allocations: 167.4 kB / 1.076 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.3263, allocations: 45.62 kB / 1.076 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.487e-05/0.3264, allocations: 120.4 kB / 1.076 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.986e-05/0.3265, allocations: 47.36 kB / 1.076 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/0.3265, allocations: 57.98 kB / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3267, allocations: 338.8 kB / 1.076 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.3268, allocations: 84.5 kB / 1.076 GB, free: 1.953 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.3271, allocations: 173.9 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003948/0.3275, allocations: 263.8 kB / 1.077 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.3275, allocations: 3.984 kB / 1.077 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000494/0.328, allocations: 297 kB / 1.077 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.328, allocations: 5.562 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.328, allocations: 7.938 kB / 1.077 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3281, allocations: 4 kB / 1.077 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.3282, allocations: 44.02 kB / 1.077 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.3282, allocations: 12.3 kB / 1.077 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.3284, allocations: 23.84 kB / 1.077 GB, free: 1.043 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.3284, allocations: 11.94 kB / 1.077 GB, free: 1.031 MB / 0.8262 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,kalFil.firstTrigger,$PRE.kalFil.firstTrigger,kalFil.yR[1],$PRE.kalFil.yR[1],kalFil.uRIntPre[1],$PRE.kalFil.uRIntPre[1],ran.firstTrigger,$PRE.ran.firstTrigger,ran.uRIntPre[1],$PRE.ran.uRIntPre[1],ran.sampleTrigger,$whenCondition1,ran.uRWri_temp[1],$PRE.ran.uRWri_temp[1],ran.uRWri[1],$PRE.ran.uRWri[1],kalFil.sampleTrigger,$whenCondition2,kalFil.uRWri_temp[1],$PRE.kalFil.uRWri_temp[1],kalFil.uRWri[1],$PRE.kalFil.uRWri[1],ran.yR[1],$PRE.ran.yR[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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.3286, allocations: 165.4 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.804e-05/0.3286, allocations: 19.8 kB / 1.077 GB, free: 0.8438 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.788e-05/0.3286, allocations: 17.88 kB / 1.077 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3287, allocations: 7.984 kB / 1.077 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3287, allocations: 4 kB / 1.077 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3287, allocations: 3.984 kB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008807/0.3296, allocations: 0.5778 MB / 1.078 GB, free: 180 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.3296, allocations: 0 / 1.078 GB, free: 180 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.3297, allocations: 19.92 kB / 1.078 GB, free: 160 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3297, allocations: 0 / 1.078 GB, free: 160 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.3297, allocations: 8 kB / 1.078 GB, free: 152 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3297, allocations: 11.92 kB / 1.078 GB, free: 140 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3297, allocations: 4.062 kB / 1.078 GB, free: 136 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000698/0.3304, allocations: 428 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.743e-05/0.3305, allocations: 92.89 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.284e-05/0.3306, allocations: 19.92 kB / 1.078 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.3307, allocations: 12.05 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.3308, allocations: 15.98 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.3308, allocations: 11.98 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.459e-05/0.3309, allocations: 119.2 kB / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3309, allocations: 3.938 kB / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004692/0.3314, allocations: 104 kB / 1.079 GB, free: 15.3 MB / 0.8419 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 (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.0008713/0.3322, allocations: 447 kB / 1.079 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004684/0.3327, allocations: 221.5 kB / 1.079 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3327, allocations: 0 / 1.079 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.3329, allocations: 88.64 kB / 1.079 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.3333, allocations: 36.05 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007534/0.334, allocations: 378.5 kB / 1.08 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.3343, allocations: 0.7281 MB / 1.08 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001097/0.3344, allocations: 53.44 kB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.3345, allocations: 19.44 kB / 1.08 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3345, allocations: 0 / 1.08 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of Templates: time 0.006877/0.3414, allocations: 3.439 MB / 1.084 GB, free: 9.988 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & ./Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches