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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.005424/0.005424, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001188/0.001188, allocations: 197.3 kB / 16.68 MB, free: 5.969 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.573/2.573, allocations: 437 MB / 0.7105 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 67.89 kB / 1.019 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3386, allocations: 151.6 MB / 1.167 GB, free: 6.875 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003081/0.3417, allocations: 1.733 MB / 1.168 GB, free: 5.121 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002595/0.3443, allocations: 1.806 MB / 1.17 GB, free: 3.305 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.591e-05/0.3444, allocations: 0 / 1.17 GB, free: 3.305 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.3446, allocations: 35.77 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.3448, allocations: 23.73 kB / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.346, allocations: 316.9 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002787/0.3463, allocations: 223.4 kB / 1.171 GB, free: 2.719 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.3464, allocations: 21.55 kB / 1.171 GB, free: 2.699 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.3466, allocations: 83.69 kB / 1.171 GB, free: 2.617 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.3467, allocations: 79.61 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.3467, allocations: 16 kB / 1.171 GB, free: 2.523 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004348/0.3472, allocations: 280.4 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.3473, allocations: 59.86 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.899e-05/0.3474, allocations: 63.61 kB / 1.171 GB, free: 2.129 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004694/0.3479, allocations: 382.6 kB / 1.172 GB, free: 1.754 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3479, allocations: 0 / 1.172 GB, free: 1.754 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3479, allocations: 0 / 1.172 GB, free: 1.754 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.3479, allocations: 0 / 1.172 GB, free: 1.754 MB / 0.92 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.0008469/0.3487, allocations: 0.5294 MB / 1.172 GB, free: 1.176 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.3488, allocations: 12.03 kB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.751e-05/0.3488, allocations: 20.83 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.3491, allocations: 221.5 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.3491, allocations: 16.31 kB / 1.172 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.907e-05/0.3492, allocations: 15.94 kB / 1.172 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.3495, allocations: 151.3 kB / 1.172 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3495, allocations: 7.938 kB / 1.173 GB, free: 0.6875 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.3495, allocations: 7.922 kB / 1.173 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3495, allocations: 0 / 1.173 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.3497, allocations: 82.14 kB / 1.173 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008647/0.3506, allocations: 436.7 kB / 1.173 GB, free: 128 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003108/0.3509, allocations: 154.6 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.3511, allocations: 74.22 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.3511, allocations: 4 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000281/0.3514, allocations: 161 kB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.3514, allocations: 4 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20): time 0.0006522/0.3521, allocations: 311.4 kB / 1.174 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.3521, allocations: 89.05 kB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.3523, allocations: 172 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.3524, allocations: 41.7 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.479e-05/0.3524, allocations: 112.5 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.412e-05/0.3525, allocations: 59.47 kB / 1.174 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.964e-05/0.3526, allocations: 57.98 kB / 1.174 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3527, allocations: 334.8 kB / 1.175 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.3529, allocations: 76.52 kB / 1.175 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.3531, allocations: 181.9 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/0.3535, allocations: 267.7 kB / 1.175 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3535, allocations: 0 / 1.175 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004825/0.354, allocations: 297.2 kB / 1.175 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.354, allocations: 4 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.354, allocations: 4 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3541, allocations: 4 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.3542, allocations: 43.91 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.3542, allocations: 4.094 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.3544, allocations: 27.81 kB / 1.175 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.3544, allocations: 16.25 kB / 1.175 GB, free: 13.5 MB / 0.9356 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.0001606/0.3546, allocations: 159.9 kB / 1.176 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.576e-05/0.3546, allocations: 19.86 kB / 1.176 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.171e-05/0.3547, allocations: 25.8 kB / 1.176 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3547, allocations: 4 kB / 1.176 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3547, allocations: 0 / 1.176 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3547, allocations: 3.938 kB / 1.176 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008737/0.3556, allocations: 0.5943 MB / 1.176 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3556, allocations: 0 / 1.176 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.3557, allocations: 15.94 kB / 1.176 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3557, allocations: 0 / 1.176 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.3557, allocations: 12.05 kB / 1.176 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3557, allocations: 3.938 kB / 1.176 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3557, allocations: 0 / 1.176 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006624/0.3564, allocations: 436.7 kB / 1.177 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.918e-05/0.3565, allocations: 89.05 kB / 1.177 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.3565, allocations: 19.92 kB / 1.177 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.3567, allocations: 11.98 kB / 1.177 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.512e-05/0.3567, allocations: 19.98 kB / 1.177 GB, free: 12 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.969e-05/0.3568, allocations: 11.98 kB / 1.177 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.245e-05/0.3569, allocations: 119.2 kB / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3569, allocations: 0 / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004619/0.3573, allocations: 111.7 kB / 1.177 GB, free: 11.76 MB / 0.9356 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.0008893/0.3582, allocations: 445 kB / 1.177 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004619/0.3587, allocations: 210.2 kB / 1.178 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3587, allocations: 192 / 1.178 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.3589, allocations: 83.89 kB / 1.178 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.3592, allocations: 34.09 kB / 1.178 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000738/0.36, allocations: 382.6 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.3603, allocations: 0.7242 MB / 1.179 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.000113/0.3604, allocations: 49.5 kB / 1.179 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.117e-05/0.3605, allocations: 19.44 kB / 1.179 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.3605, allocations: 7.938 kB / 1.179 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of Templates: time 0.00777/0.3683, allocations: 3.46 MB / 1.182 GB, free: 6.434 MB / 0.9356 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 -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/jenkins/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