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: "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002063/0.002063, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.41/1.41, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.686/2.686, allocations: 482.4 MB / 0.7544 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 72.94 kB / 0.9235 GB, free: 29.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2476, allocations: 162.2 MB / 1.082 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002802/0.2504, allocations: 1.793 MB / 1.084 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002253/0.2527, allocations: 1.775 MB / 1.085 GB, free: 9.965 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.135e-05/0.2528, allocations: 3.938 kB / 1.085 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.2529, allocations: 19.86 kB / 1.085 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.767e-05/0.253, allocations: 19.84 kB / 1.085 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009874/0.254, allocations: 294.2 kB / 1.086 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002883/0.2543, allocations: 215.4 kB / 1.086 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.302e-05/0.2544, allocations: 37.52 kB / 1.086 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.2545, allocations: 83.69 kB / 1.086 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.2547, allocations: 79.67 kB / 1.086 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.2547, allocations: 12 kB / 1.086 GB, free: 9.215 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004028/0.2551, allocations: 259.6 kB / 1.086 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.732e-05/0.2552, allocations: 63.8 kB / 1.086 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.816e-05/0.2553, allocations: 67.66 kB / 1.086 GB, free: 8.832 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004511/0.2557, allocations: 375.3 kB / 1.087 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2558, allocations: 0 / 1.087 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.153e-06/0.2558, allocations: 0 / 1.087 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.2558, allocations: 0 / 1.087 GB, free: 8.465 MB / 0.8419 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.0008086/0.2566, allocations: 0.5185 MB / 1.087 GB, free: 7.898 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.2566, allocations: 8.031 kB / 1.087 GB, free: 7.891 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.766e-05/0.2567, allocations: 42.73 kB / 1.087 GB, free: 7.84 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.77e-05/0.2567, allocations: 16.75 kB / 1.087 GB, free: 7.824 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.257, allocations: 240.5 kB / 1.088 GB, free: 7.547 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.257, allocations: 16.12 kB / 1.088 GB, free: 7.531 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.257, allocations: 12 kB / 1.088 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.2574, allocations: 151.3 kB / 1.088 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.2574, allocations: 0 / 1.088 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.2574, allocations: 4 kB / 1.088 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2574, allocations: 4 kB / 1.088 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002065/0.2576, allocations: 77 kB / 1.088 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007718/0.2584, allocations: 432.7 kB / 1.088 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000287/0.2587, allocations: 151.9 kB / 1.088 GB, free: 6.648 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.2589, allocations: 72.81 kB / 1.089 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.2589, allocations: 4 kB / 1.089 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.2592, allocations: 170.6 kB / 1.089 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.2592, allocations: 0 / 1.089 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20): time 0.0006416/0.2598, allocations: 315.4 kB / 1.089 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.2599, allocations: 85.11 kB / 1.089 GB, free: 5.973 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.26, allocations: 172.2 kB / 1.089 GB, free: 5.797 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.2601, allocations: 37.7 kB / 1.089 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.2602, allocations: 108.6 kB / 1.089 GB, free: 5.645 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.227e-05/0.2602, allocations: 63.33 kB / 1.089 GB, free: 5.582 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.406e-05/0.2603, allocations: 49.98 kB / 1.089 GB, free: 5.523 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.2605, allocations: 338.8 kB / 1.09 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.2606, allocations: 76.52 kB / 1.09 GB, free: 5.109 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.2609, allocations: 181.9 kB / 1.09 GB, free: 4.887 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003717/0.2612, allocations: 259.8 kB / 1.09 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2613, allocations: 0 / 1.09 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00048/0.2617, allocations: 297 kB / 1.091 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.2618, allocations: 8 kB / 1.091 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.2618, allocations: 0 / 1.091 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.2618, allocations: 8 kB / 1.091 GB, free: 4.277 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.2619, allocations: 44.28 kB / 1.091 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.262, allocations: 11.94 kB / 1.091 GB, free: 4.223 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.2621, allocations: 27.77 kB / 1.091 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.2621, allocations: 15.94 kB / 1.091 GB, free: 4.18 MB / 0.8419 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.0001388/0.2622, allocations: 156 kB / 1.091 GB, free: 4.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.779e-05/0.2623, allocations: 15.81 kB / 1.091 GB, free: 4.004 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.601e-05/0.2623, allocations: 25.86 kB / 1.091 GB, free: 3.98 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.2623, allocations: 4 kB / 1.091 GB, free: 3.977 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2624, allocations: 96 / 1.091 GB, free: 3.977 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2624, allocations: 7.922 kB / 1.091 GB, free: 3.969 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008369/0.2632, allocations: 0.5802 MB / 1.091 GB, free: 3.332 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2632, allocations: 0 / 1.091 GB, free: 3.332 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.536e-05/0.2633, allocations: 15.98 kB / 1.091 GB, free: 3.316 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2633, allocations: 0 / 1.091 GB, free: 3.316 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.2634, allocations: 19.92 kB / 1.091 GB, free: 3.297 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2634, allocations: 0 / 1.091 GB, free: 3.297 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.2634, allocations: 4 kB / 1.091 GB, free: 3.293 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000657/0.264, allocations: 434.3 kB / 1.092 GB, free: 2.852 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.582e-05/0.2641, allocations: 96.89 kB / 1.092 GB, free: 2.738 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.981e-05/0.2642, allocations: 19.98 kB / 1.092 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.2643, allocations: 7.984 kB / 1.092 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.2643, allocations: 15.98 kB / 1.092 GB, free: 2.695 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.2644, allocations: 11.98 kB / 1.092 GB, free: 2.684 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.934e-05/0.2645, allocations: 124.2 kB / 1.092 GB, free: 2.562 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2645, allocations: 0 / 1.092 GB, free: 2.562 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003978/0.2649, allocations: 115.8 kB / 1.092 GB, free: 2.449 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.277/0.5419, allocations: 1.306 MB / 1.094 GB, free: 1.227 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006079/0.5425, allocations: 225.7 kB / 1.094 GB, free: 1.008 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5426, allocations: 3.938 kB / 1.094 GB, free: 1.004 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.5428, allocations: 83.89 kB / 1.094 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.5431, allocations: 19.98 kB / 1.094 GB, free: 0.9023 MB / 0.8419 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/0.547, allocations: 2.418 MB / 1.096 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.5475, allocations: 0.7242 MB / 1.097 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001563/0.5476, allocations: 49.5 kB / 1.097 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.5477, allocations: 47.42 kB / 1.097 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of SimCode: time 4.01e-07/0.5478, allocations: 0 / 1.097 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 52.63/53.18, allocations: 5.396 MB / 1.102 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002667/53.18, allocations: 284.7 kB / 1.103 GB, free: 7.809 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/55.74, allocations: 0 / 1.103 GB, free: 7.809 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > 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/jenkins1/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