Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.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_10_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_10_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.00126/0.00126, allocations: 114.3 kB / 16.37 MB, free: 5.539 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.001217/0.001217, allocations: 187.5 kB / 17.3 MB, free: 5.184 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.216/1.216, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.209/2.209, allocations: 437.1 MB / 0.7112 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.67 kB / 0.8707 GB, free: 1.477 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.243, allocations: 151.6 MB / 1.019 GB, free: 9.875 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002725/0.2457, allocations: 1.739 MB / 1.02 GB, free: 8.117 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002324/0.2481, allocations: 1.81 MB / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.699e-05/0.2481, allocations: 3.938 kB / 1.022 GB, free: 6.293 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.2483, allocations: 23.8 kB / 1.022 GB, free: 6.27 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.2484, allocations: 31.72 kB / 1.022 GB, free: 6.238 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.2495, allocations: 324.4 kB / 1.023 GB, free: 5.926 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000245/0.2497, allocations: 211.5 kB / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.832e-05/0.2498, allocations: 25.55 kB / 1.023 GB, free: 5.695 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.2499, allocations: 83.69 kB / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.25, allocations: 79.61 kB / 1.023 GB, free: 5.535 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.2501, allocations: 12 kB / 1.023 GB, free: 5.523 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003736/0.2505, allocations: 279.5 kB / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.814e-05/0.2506, allocations: 59.86 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.376e-05/0.2506, allocations: 67.61 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.2511, allocations: 375 kB / 1.024 GB, free: 4.758 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.2511, allocations: 0 / 1.024 GB, free: 4.758 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.606e-06/0.2511, allocations: 4 kB / 1.024 GB, free: 4.754 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.2511, allocations: 3.938 kB / 1.024 GB, free: 4.75 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007427/0.2518, allocations: 0.5107 MB / 1.024 GB, free: 4.191 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2519, allocations: 12.03 kB / 1.024 GB, free: 4.18 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.168e-05/0.2519, allocations: 16.75 kB / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.2522, allocations: 225.6 kB / 1.025 GB, free: 3.902 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.2522, allocations: 24.25 kB / 1.025 GB, free: 3.879 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.251e-05/0.2522, allocations: 12 kB / 1.025 GB, free: 3.867 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002788/0.2525, allocations: 148.8 kB / 1.025 GB, free: 3.711 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.2525, allocations: 0 / 1.025 GB, free: 3.711 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.2525, allocations: 7.984 kB / 1.025 GB, free: 3.703 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.2525, allocations: 0 / 1.025 GB, free: 3.703 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.2527, allocations: 83.89 kB / 1.025 GB, free: 3.621 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007574/0.2535, allocations: 428.7 kB / 1.025 GB, free: 3.152 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002587/0.2538, allocations: 150.4 kB / 1.025 GB, free: 2.996 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.2539, allocations: 76.81 kB / 1.025 GB, free: 2.918 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.2539, allocations: 8 kB / 1.025 GB, free: 2.91 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002586/0.2542, allocations: 162.7 kB / 1.026 GB, free: 2.734 MB / 0.795 GB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.2542, allocations: 0 / 1.026 GB, free: 2.734 MB / 0.795 GB Notification: Performance of matching and sorting (n=20): time 0.000594/0.2548, allocations: 311.3 kB / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.2549, allocations: 89.05 kB / 1.026 GB, free: 2.32 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.255, allocations: 171.4 kB / 1.026 GB, free: 2.145 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.2551, allocations: 37.7 kB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.714e-05/0.2551, allocations: 120.3 kB / 1.026 GB, free: 1.98 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.939e-05/0.2552, allocations: 59.33 kB / 1.026 GB, free: 1.922 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-05/0.2553, allocations: 57.98 kB / 1.026 GB, free: 1.855 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2554, allocations: 334.8 kB / 1.027 GB, free: 1.52 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.2555, allocations: 80.52 kB / 1.027 GB, free: 1.441 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.2557, allocations: 174.5 kB / 1.027 GB, free: 1.227 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/0.2561, allocations: 263.7 kB / 1.027 GB, free: 0.9258 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2561, allocations: 0 / 1.027 GB, free: 0.9258 MB / 0.795 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004433/0.2566, allocations: 301.1 kB / 1.027 GB, free: 0.625 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.2566, allocations: 4 kB / 1.027 GB, free: 0.6211 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.2566, allocations: 4 kB / 1.027 GB, free: 0.6172 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.2566, allocations: 4.375 kB / 1.027 GB, free: 0.6133 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.2567, allocations: 43.91 kB / 1.028 GB, free: 0.5703 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.2568, allocations: 8 kB / 1.028 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.2569, allocations: 23.83 kB / 1.028 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.2569, allocations: 12 kB / 1.028 GB, free: 0.5273 MB / 0.795 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.0001424/0.257, allocations: 163.9 kB / 1.028 GB, free: 368 kB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.062e-05/0.2571, allocations: 23.66 kB / 1.028 GB, free: 344 kB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.997e-05/0.2571, allocations: 25.86 kB / 1.028 GB, free: 324 kB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2571, allocations: 0 / 1.028 GB, free: 324 kB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.2572, allocations: 4 kB / 1.028 GB, free: 320 kB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2572, allocations: 0 / 1.028 GB, free: 320 kB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007686/0.2579, allocations: 0.5727 MB / 1.028 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.258, allocations: 3.984 kB / 1.028 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.217e-05/0.2581, allocations: 15.94 kB / 1.028 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.2581, allocations: 4 kB / 1.028 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.2581, allocations: 12.08 kB / 1.028 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.2581, allocations: 11.81 kB / 1.028 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2581, allocations: 0 / 1.028 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005974/0.2587, allocations: 434.5 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.2588, allocations: 92.89 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.2588, allocations: 19.98 kB / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.2589, allocations: 19.92 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.259, allocations: 11.98 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.259, allocations: 11.98 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.293e-05/0.2591, allocations: 119.2 kB / 1.029 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2591, allocations: 0 / 1.029 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004048/0.2595, allocations: 108 kB / 1.029 GB, free: 14.8 MB / 0.8106 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.0007921/0.2603, allocations: 442.8 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003767/0.2607, allocations: 203.7 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2607, allocations: 0 / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.2609, allocations: 80.64 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.2612, allocations: 42.31 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006145/0.2618, allocations: 366.7 kB / 1.03 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.2621, allocations: 0.7281 MB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.398e-05/0.2622, allocations: 45.5 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.403e-05/0.2622, allocations: 19.62 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.2622, allocations: 0 / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of Templates: time 0.006233/0.2685, allocations: 3.445 MB / 1.034 GB, free: 9.516 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & ./Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches