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.001514/0.001514, allocations: 109.1 kB / 16.37 MB, free: 6.477 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.001767/0.001767, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.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.277/2.277, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 66.62 kB / 0.814 GB, free: 32.74 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2685, allocations: 140.4 MB / 0.9511 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002953/0.2715, allocations: 1.732 MB / 0.9528 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002558/0.274, allocations: 1.81 MB / 0.9546 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.785e-05/0.2741, allocations: 7.938 kB / 0.9546 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.2743, allocations: 23.8 kB / 0.9546 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.2744, allocations: 27.72 kB / 0.9546 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.2754, allocations: 319.5 kB / 0.9549 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.2757, allocations: 215.4 kB / 0.9551 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.488e-05/0.2758, allocations: 37.52 kB / 0.9552 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.2759, allocations: 79.69 kB / 0.9553 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.276, allocations: 71.67 kB / 0.9553 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.737e-05/0.2761, allocations: 12 kB / 0.9553 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003932/0.2765, allocations: 287.5 kB / 0.9556 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.735e-05/0.2766, allocations: 59.8 kB / 0.9557 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.347e-05/0.2767, allocations: 59.67 kB / 0.9557 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004372/0.2771, allocations: 383 kB / 0.9561 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2771, allocations: 0 / 0.9561 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2772, allocations: 0 / 0.9561 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.2772, allocations: 0 / 0.9561 GB, free: 2.977 MB / 0.7325 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.0007625/0.2779, allocations: 0.5263 MB / 0.9566 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.278, allocations: 8.031 kB / 0.9566 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.878e-05/0.278, allocations: 20.66 kB / 0.9566 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002293/0.2783, allocations: 220.7 kB / 0.9568 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.2783, allocations: 12.31 kB / 0.9569 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.913e-05/0.2783, allocations: 19.98 kB / 0.9569 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002855/0.2786, allocations: 155.2 kB / 0.957 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.2786, allocations: 3.984 kB / 0.957 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.2786, allocations: 0 / 0.957 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.2787, allocations: 4 kB / 0.957 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.2789, allocations: 86.12 kB / 0.9571 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009551/0.2799, allocations: 420.7 kB / 0.9575 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002891/0.2802, allocations: 154.4 kB / 0.9577 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.2803, allocations: 76.81 kB / 0.9577 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.2804, allocations: 0 / 0.9577 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.2806, allocations: 174.3 kB / 0.9579 GB, free: 0.9453 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.2807, allocations: 0 / 0.9579 GB, free: 0.9453 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20): time 0.0006278/0.2813, allocations: 311.1 kB / 0.9582 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.2814, allocations: 85.09 kB / 0.9583 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.2815, allocations: 171.7 kB / 0.9584 GB, free: 368 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.2816, allocations: 45.69 kB / 0.9585 GB, free: 316 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.551e-05/0.2816, allocations: 116.5 kB / 0.9586 GB, free: 196 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.746e-05/0.2817, allocations: 55.36 kB / 0.9586 GB, free: 140 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.699e-05/0.2818, allocations: 53.92 kB / 0.9587 GB, free: 76 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2819, allocations: 342.8 kB / 0.959 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.2821, allocations: 76.5 kB / 0.9591 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.2824, allocations: 170 kB / 0.9593 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/0.2828, allocations: 263.8 kB / 0.9595 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2828, allocations: 0 / 0.9595 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004795/0.2832, allocations: 305.3 kB / 0.9598 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2833, allocations: 8 kB / 0.9598 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.2833, allocations: 0 / 0.9598 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.2833, allocations: 8 kB / 0.9598 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.2835, allocations: 35.92 kB / 0.9599 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/0.2835, allocations: 4 kB / 0.9599 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.2836, allocations: 23.83 kB / 0.9599 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.2836, allocations: 16 kB / 0.9599 GB, free: 14.75 MB / 0.7481 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.0001528/0.2838, allocations: 161.9 kB / 0.96 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.506e-05/0.2838, allocations: 19.89 kB / 0.9601 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.015e-05/0.2839, allocations: 21.81 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2839, allocations: 4 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.2839, allocations: 3.984 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2839, allocations: 3.984 kB / 0.9601 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008704/0.2848, allocations: 0.5901 MB / 0.9607 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2848, allocations: 0 / 0.9607 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.2849, allocations: 23.92 kB / 0.9607 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2849, allocations: 0 / 0.9607 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.285, allocations: 4 kB / 0.9607 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.238e-05/0.285, allocations: 3.938 kB / 0.9607 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.285, allocations: 7.984 kB / 0.9607 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006413/0.2856, allocations: 434.5 kB / 0.9611 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.097e-05/0.2857, allocations: 92.89 kB / 0.9612 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.2857, allocations: 19.92 kB / 0.9612 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.2859, allocations: 7.984 kB / 0.9612 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.2859, allocations: 15.98 kB / 0.9613 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.286, allocations: 11.98 kB / 0.9613 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 9.257e-05/0.2861, allocations: 132.2 kB / 0.9614 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2861, allocations: 0 / 0.9614 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004478/0.2865, allocations: 115.9 kB / 0.9615 GB, free: 13 MB / 0.7481 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.0008753/0.2874, allocations: 439.6 kB / 0.9619 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004212/0.2878, allocations: 198.3 kB / 0.9621 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.2879, allocations: 0 / 0.9621 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.288, allocations: 95.86 kB / 0.9622 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.2884, allocations: 28.05 kB / 0.9622 GB, free: 12.36 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006777/0.2891, allocations: 367 kB / 0.9626 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.2894, allocations: 0.7359 MB / 0.9633 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001067/0.2895, allocations: 49.44 kB / 0.9634 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.808e-05/0.2896, allocations: 23.42 kB / 0.9634 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of SimCode: time 2.51e-07/0.2896, allocations: 0 / 0.9634 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of Templates: time 0.006831/0.2964, allocations: 3.429 MB / 0.9667 GB, free: 7.715 MB / 0.7481 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 -s gbode -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/jenkins1/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