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.001516/0.001516, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002399/0.002399, allocations: 196 kB / 16.14 MB, free: 6.711 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.436/1.436, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.826/2.826, allocations: 472.6 MB / 0.7447 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 62.12 kB / 0.9114 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3052, allocations: 159.9 MB / 1.068 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003384/0.3086, allocations: 1.793 MB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002861/0.3115, allocations: 1.798 MB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.3117, allocations: 7.875 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.3119, allocations: 19.86 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.312, allocations: 23.78 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00125/0.3133, allocations: 274.2 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002956/0.3136, allocations: 203.5 kB / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.3137, allocations: 25.55 kB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.3139, allocations: 79.67 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.314, allocations: 79.61 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.323e-05/0.3141, allocations: 8 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004959/0.3146, allocations: 259.6 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.3147, allocations: 47.88 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.519e-05/0.3148, allocations: 67.59 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004932/0.3153, allocations: 363.4 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3153, allocations: 0 / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.426e-06/0.3153, allocations: 3.984 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.3153, allocations: 0 / 1.072 GB, free: 5.906 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.001004/0.3163, allocations: 0.5184 MB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3164, allocations: 12.03 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.563e-05/0.3165, allocations: 16.75 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002777/0.3168, allocations: 232.6 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.3168, allocations: 16.31 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.657e-05/0.3168, allocations: 12 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003755/0.3172, allocations: 154.1 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.3173, allocations: 0 / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.3173, allocations: 4 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.3173, allocations: 0 / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002251/0.3175, allocations: 79.88 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009942/0.3185, allocations: 432.7 kB / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.3189, allocations: 150.4 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.3191, allocations: 64.83 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.3191, allocations: 7.984 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003583/0.3195, allocations: 172.9 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 2.164e-06/0.3195, allocations: 4 kB / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20): time 0.0007966/0.3203, allocations: 303.3 kB / 1.075 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.892e-05/0.3204, allocations: 89.22 kB / 1.075 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.3206, allocations: 172.1 kB / 1.075 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.3206, allocations: 37.7 kB / 1.075 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.352e-05/0.3207, allocations: 116.4 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.351e-05/0.3208, allocations: 51.36 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.751e-05/0.3209, allocations: 57.97 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.321, allocations: 334.8 kB / 1.075 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.3212, allocations: 84.44 kB / 1.075 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/0.3215, allocations: 185.8 kB / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004163/0.3219, allocations: 263.8 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.3219, allocations: 0 / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005244/0.3224, allocations: 301 kB / 1.076 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.3225, allocations: 4 kB / 1.076 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.3225, allocations: 4 kB / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.3225, allocations: 4 kB / 1.076 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.3227, allocations: 47.91 kB / 1.076 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.3227, allocations: 4 kB / 1.076 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.3228, allocations: 28.16 kB / 1.076 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.3229, allocations: 12 kB / 1.076 GB, free: 1.672 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.0001893/0.3231, allocations: 163.9 kB / 1.076 GB, free: 1.504 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.203e-05/0.3231, allocations: 15.81 kB / 1.076 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.757e-05/0.3232, allocations: 21.86 kB / 1.076 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.3232, allocations: 4 kB / 1.076 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3232, allocations: 4 kB / 1.076 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3232, allocations: 0 / 1.076 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000924/0.3241, allocations: 0.5815 MB / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3241, allocations: 0 / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.3243, allocations: 15.98 kB / 1.077 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3243, allocations: 0 / 1.077 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.3243, allocations: 11.98 kB / 1.077 GB, free: 0.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.3243, allocations: 3.938 kB / 1.077 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3243, allocations: 8.062 kB / 1.077 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007512/0.3251, allocations: 437.7 kB / 1.077 GB, free: 344 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.3251, allocations: 92.89 kB / 1.078 GB, free: 232 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.719e-05/0.3252, allocations: 20.02 kB / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.3253, allocations: 15.98 kB / 1.078 GB, free: 196 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.388e-05/0.3254, allocations: 15.98 kB / 1.078 GB, free: 180 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.3254, allocations: 11.98 kB / 1.078 GB, free: 168 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.377e-05/0.3255, allocations: 124.2 kB / 1.078 GB, free: 44 kB / 0.8262 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3255, allocations: 0 / 1.078 GB, free: 44 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005086/0.326, allocations: 107.9 kB / 1.078 GB, free: 15.94 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.001094/0.3272, allocations: 434.2 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004745/0.3276, allocations: 195.7 kB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3277, allocations: 0 / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.3279, allocations: 87.88 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.3282, allocations: 28.92 kB / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008198/0.3291, allocations: 426.2 kB / 1.079 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.3294, allocations: 0.7245 MB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001303/0.3295, allocations: 57.42 kB / 1.08 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.3296, allocations: 15.44 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of SimCode: time 4e-07/0.3296, allocations: 0 / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of Templates: time 0.007843/0.3374, allocations: 3.31 MB / 1.083 GB, free: 10.74 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