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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,fileNamePrefix="Buildings_9_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_9_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.001021/0.001021, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 197.1 kB / 16.53 MB, free: 6.656 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.222/1.222, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.109/2.109, allocations: 390.2 MB / 0.6647 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001237, allocations: 63.91 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5036/0.5049, allocations: 140.4 MB / 0.9497 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002417/0.5074, allocations: 1.735 MB / 0.9514 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001916/0.5093, allocations: 1.812 MB / 0.9532 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.618e-05/0.5094, allocations: 1.344 kB / 0.9532 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.5095, allocations: 27.02 kB / 0.9532 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.5096, allocations: 26.91 kB / 0.9532 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009934/0.5106, allocations: 316.1 kB / 0.9535 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002122/0.5109, allocations: 210.3 kB / 0.9537 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.14e-05/0.5109, allocations: 38.67 kB / 0.9538 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.5111, allocations: 86.31 kB / 0.9539 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.501e-05/0.5112, allocations: 76.39 kB / 0.9539 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.5112, allocations: 10.09 kB / 0.9539 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003862/0.5116, allocations: 264.1 kB / 0.9542 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.903e-05/0.5117, allocations: 59.09 kB / 0.9542 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.164e-05/0.5117, allocations: 68.72 kB / 0.9543 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003682/0.5121, allocations: 367 kB / 0.9547 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.5121, allocations: 0 / 0.9547 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.482e-06/0.5121, allocations: 0 / 0.9547 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.5121, allocations: 3.938 kB / 0.9547 GB, free: 5.488 MB / 0.7169 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.0006394/0.5128, allocations: 0.5217 MB / 0.9552 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.785e-05/0.5128, allocations: 7.406 kB / 0.9552 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.176e-05/0.5129, allocations: 45.2 kB / 0.9552 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.572e-05/0.5129, allocations: 22.5 kB / 0.9552 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.5131, allocations: 223.1 kB / 0.9555 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.5131, allocations: 15.55 kB / 0.9555 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.5131, allocations: 16.22 kB / 0.9555 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.5134, allocations: 154.2 kB / 0.9556 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.5134, allocations: 0 / 0.9556 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.5134, allocations: 1.406 kB / 0.9556 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.5134, allocations: 2.844 kB / 0.9556 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.5136, allocations: 83.12 kB / 0.9557 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006303/0.5142, allocations: 432.8 kB / 0.9561 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.5145, allocations: 149.5 kB / 0.9563 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.5146, allocations: 75.75 kB / 0.9563 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.5146, allocations: 2.062 kB / 0.9563 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.5149, allocations: 171.5 kB / 0.9565 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.323e-06/0.5149, allocations: 0 / 0.9565 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0005601/0.5154, allocations: 309.8 kB / 0.9568 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.5155, allocations: 93.5 kB / 0.9569 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.482e-05/0.5156, allocations: 169.8 kB / 0.9571 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.5156, allocations: 43.44 kB / 0.9571 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.437e-05/0.5157, allocations: 107.8 kB / 0.9572 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.014e-05/0.5157, allocations: 59.8 kB / 0.9573 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.046e-05/0.5158, allocations: 57.3 kB / 0.9573 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.145e-05/0.5158, allocations: 336.2 kB / 0.9576 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.516, allocations: 77.75 kB / 0.9577 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.5161, allocations: 171.6 kB / 0.9579 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.5164, allocations: 265.4 kB / 0.9581 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.5164, allocations: 5.312 kB / 0.9581 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004134/0.5168, allocations: 296 kB / 0.9584 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.5169, allocations: 6.719 kB / 0.9584 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.5169, allocations: 3.406 kB / 0.9584 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.5169, allocations: 4.812 kB / 0.9584 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.517, allocations: 36.48 kB / 0.9585 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.517, allocations: 8.797 kB / 0.9585 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.975e-05/0.5171, allocations: 25.03 kB / 0.9585 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.5172, allocations: 17.28 kB / 0.9585 GB, free: 2.336 MB / 0.7169 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 9.987e-05/0.5173, allocations: 149.4 kB / 0.9587 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.5173, allocations: 20.77 kB / 0.9587 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.5173, allocations: 22.16 kB / 0.9587 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.5174, allocations: 2.156 kB / 0.9587 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5174, allocations: 5.094 kB / 0.9587 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.5174, allocations: 7.984 kB / 0.9587 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006666/0.518, allocations: 0.5799 MB / 0.9593 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.5181, allocations: 9.047 kB / 0.9593 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.089e-05/0.5182, allocations: 23.42 kB / 0.9593 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.5182, allocations: 1 kB / 0.9593 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.5182, allocations: 15.3 kB / 0.9593 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.5182, allocations: 1.719 kB / 0.9593 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.5182, allocations: 4 kB / 0.9593 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005418/0.5187, allocations: 432.8 kB / 0.9597 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.439e-05/0.5188, allocations: 94.09 kB / 0.9598 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.5188, allocations: 13.56 kB / 0.9598 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.519, allocations: 18.52 kB / 0.9599 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.559e-05/0.519, allocations: 14.48 kB / 0.9599 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.519, allocations: 11.58 kB / 0.9599 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.238e-05/0.5191, allocations: 123.8 kB / 0.96 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5191, allocations: 0 / 0.96 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004166/0.5195, allocations: 114.8 kB / 0.9601 GB, free: 1.121 MB / 0.7169 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.001302/0.5208, allocations: 1.295 MB / 0.9614 GB, free: 200 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003827/0.5212, allocations: 223.9 kB / 0.9616 GB, free: 108 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5212, allocations: 0 / 0.9616 GB, free: 108 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.5214, allocations: 93.2 kB / 0.9617 GB, free: 68 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.5217, allocations: 36.53 kB / 0.9617 GB, free: 44 kB / 0.7169 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.002436/0.5241, allocations: 2.386 MB / 0.964 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.5244, allocations: 0.736 MB / 0.9648 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001061/0.5245, allocations: 52.44 kB / 0.9648 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.564e-05/0.5246, allocations: 45.56 kB / 0.9649 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.5246, allocations: 3.938 kB / 0.9649 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7007/1.225, allocations: 5.5 MB / 0.9702 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.823/8.048, allocations: 8.438 kB / 0.9702 GB, free: 10.38 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > 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