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: 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.006688/0.006689, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001159/0.001159, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.226/2.226, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 63.89 kB / 0.9508 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9081/0.9094, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003106/0.9126, allocations: 1.725 MB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002634/0.9152, allocations: 1.804 MB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.873e-05/0.9153, allocations: 9.188 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.9155, allocations: 23.55 kB / 1.091 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.9157, allocations: 26.33 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.9171, allocations: 335.4 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004096/0.9175, allocations: 215 kB / 1.092 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.9176, allocations: 25.53 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.9178, allocations: 89.03 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.918, allocations: 79.52 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.374e-05/0.918, allocations: 10.5 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000561/0.9186, allocations: 284 kB / 1.092 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.9188, allocations: 53.36 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.9189, allocations: 71.94 kB / 1.093 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006206/0.9195, allocations: 375.4 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.9195, allocations: 0.875 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.144e-06/0.9195, allocations: 3.938 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.9195, allocations: 3.938 kB / 1.093 GB, free: 2.375 MB / 0.8575 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.000833/0.9204, allocations: 0.5158 MB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.9204, allocations: 8.781 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.899e-05/0.9205, allocations: 23.08 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.9207, allocations: 220.4 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.9207, allocations: 14.56 kB / 1.094 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.9208, allocations: 14.09 kB / 1.094 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.9211, allocations: 153 kB / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.9211, allocations: 0 / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.9212, allocations: 10.59 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.9212, allocations: 2.5 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/0.9214, allocations: 79.02 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008816/0.9223, allocations: 434 kB / 1.094 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.9227, allocations: 154.7 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.9229, allocations: 67.95 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.9229, allocations: 3.141 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003366/0.9232, allocations: 168.5 kB / 1.095 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.9233, allocations: 0 / 1.095 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20): time 0.0008325/0.9241, allocations: 305.1 kB / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/0.9242, allocations: 99.52 kB / 1.095 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.9243, allocations: 177.9 kB / 1.095 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.9244, allocations: 37.67 kB / 1.095 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.823e-05/0.9245, allocations: 114.8 kB / 1.095 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.301e-05/0.9245, allocations: 52.58 kB / 1.095 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.702e-05/0.9246, allocations: 58.7 kB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.042e-05/0.9247, allocations: 334.5 kB / 1.096 GB, free: 180 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.9249, allocations: 80.23 kB / 1.096 GB, free: 156 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.9251, allocations: 174.9 kB / 1.096 GB, free: 8 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004704/0.9256, allocations: 261.7 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.9256, allocations: 1.062 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005765/0.9262, allocations: 301.5 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.9262, allocations: 7.344 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.9262, allocations: 2.844 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.9263, allocations: 4.688 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.9264, allocations: 47.56 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/0.9265, allocations: 9.969 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.9266, allocations: 29.56 kB / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.9266, allocations: 10.59 kB / 1.097 GB, free: 15.66 MB / 0.8731 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.0001722/0.9268, allocations: 157.2 kB / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.077e-05/0.9269, allocations: 18.38 kB / 1.097 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.35e-05/0.9269, allocations: 20.86 kB / 1.097 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.9269, allocations: 2.188 kB / 1.097 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.9269, allocations: 5.156 kB / 1.097 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.927, allocations: 1.594 kB / 1.097 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000992/0.9279, allocations: 0.5828 MB / 1.097 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.928, allocations: 0 / 1.097 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.9281, allocations: 19.16 kB / 1.097 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.9281, allocations: 1.469 kB / 1.097 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.032e-05/0.9281, allocations: 10.53 kB / 1.097 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.9281, allocations: 13.66 kB / 1.097 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.9281, allocations: 0 / 1.097 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007705/0.9289, allocations: 430.3 kB / 1.098 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.03e-05/0.929, allocations: 91.41 kB / 1.098 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.646e-05/0.929, allocations: 11.02 kB / 1.098 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.9292, allocations: 18.72 kB / 1.098 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.9292, allocations: 15.5 kB / 1.098 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.061e-05/0.9293, allocations: 14.42 kB / 1.098 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001049/0.9294, allocations: 124.3 kB / 1.098 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1e-07/0.9294, allocations: 0 / 1.098 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005398/0.9299, allocations: 108.6 kB / 1.098 GB, free: 14.62 MB / 0.8731 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.0009486/0.9309, allocations: 445.4 kB / 1.099 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004531/0.9314, allocations: 202.6 kB / 1.099 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.9314, allocations: 0 / 1.099 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001927/0.9316, allocations: 82.94 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.9319, allocations: 34.72 kB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007472/0.9327, allocations: 373 kB / 1.099 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.933, allocations: 0.7276 MB / 1.1 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001294/0.9331, allocations: 52.44 kB / 1.1 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.558e-05/0.9332, allocations: 18.42 kB / 1.1 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.9332, allocations: 0 / 1.1 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of Templates: time 0.008772/0.942, allocations: 3.462 MB / 1.104 GB, free: 13.04 MB / 0.8731 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 -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/jenkins/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