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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001006/0.001006, allocations: 107.6 kB / 16.37 MB, free: 6.477 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.0009066/0.0009066, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.177/1.177, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 1.969/1.969, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 66.02 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2469, allocations: 140.4 MB / 0.9511 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003085/0.25, allocations: 1.744 MB / 0.9528 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002469/0.2525, allocations: 1.802 MB / 0.9546 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.491e-05/0.2525, allocations: 11.88 kB / 0.9546 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.2527, allocations: 23.8 kB / 0.9546 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.2529, allocations: 31.72 kB / 0.9546 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.254, allocations: 321.3 kB / 0.955 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002545/0.2542, allocations: 223.4 kB / 0.9552 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.94e-05/0.2544, allocations: 25.55 kB / 0.9552 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.2545, allocations: 79.75 kB / 0.9553 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.2546, allocations: 79.61 kB / 0.9553 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/0.2547, allocations: 12 kB / 0.9554 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004051/0.2551, allocations: 279.5 kB / 0.9556 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.2552, allocations: 63.8 kB / 0.9557 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.2553, allocations: 59.67 kB / 0.9557 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000437/0.2558, allocations: 375 kB / 0.9561 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2558, allocations: 0 / 0.9561 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of FrontEnd: time 9.92e-07/0.2558, allocations: 0 / 0.9561 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.2558, allocations: 4 kB / 0.9561 GB, free: 2.977 MB / 0.7325 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.0009251/0.2567, allocations: 0.5195 MB / 0.9566 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.958e-05/0.2568, allocations: 8.031 kB / 0.9566 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.562e-05/0.2568, allocations: 20.66 kB / 0.9566 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.2571, allocations: 232.7 kB / 0.9569 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.2571, allocations: 8.312 kB / 0.9569 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.2571, allocations: 16 kB / 0.9569 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.2574, allocations: 151.3 kB / 0.957 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.2574, allocations: 3.938 kB / 0.957 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.2574, allocations: 4 kB / 0.957 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.2575, allocations: 4 kB / 0.957 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.2576, allocations: 79.88 kB / 0.9571 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007899/0.2584, allocations: 424.7 kB / 0.9575 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.2588, allocations: 150.4 kB / 0.9577 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.2589, allocations: 83.31 kB / 0.9577 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.2589, allocations: 3.984 kB / 0.9577 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.2592, allocations: 171 kB / 0.9579 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 1.403e-06/0.2592, allocations: 0 / 0.9579 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20): time 0.0006127/0.2598, allocations: 309.2 kB / 0.9582 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.316e-05/0.2599, allocations: 93.23 kB / 0.9583 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.2601, allocations: 167.8 kB / 0.9584 GB, free: 368 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.2601, allocations: 37.7 kB / 0.9585 GB, free: 324 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.383e-05/0.2602, allocations: 116.4 kB / 0.9586 GB, free: 204 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.04e-05/0.2603, allocations: 55.34 kB / 0.9586 GB, free: 148 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.532e-05/0.2604, allocations: 57.92 kB / 0.9587 GB, free: 80 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.2605, allocations: 342.7 kB / 0.959 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.2607, allocations: 76.52 kB / 0.9591 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.2609, allocations: 181.9 kB / 0.9593 GB, free: 15.44 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003582/0.2613, allocations: 259.8 kB / 0.9595 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2613, allocations: 0 / 0.9595 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004449/0.2617, allocations: 293.1 kB / 0.9598 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.2617, allocations: 8 kB / 0.9598 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2618, allocations: 0 / 0.9598 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.2618, allocations: 8 kB / 0.9598 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.2619, allocations: 39.91 kB / 0.9599 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.2619, allocations: 8.312 kB / 0.9599 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.2621, allocations: 31.83 kB / 0.9599 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.2621, allocations: 12.06 kB / 0.9599 GB, free: 14.74 MB / 0.7481 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.0001387/0.2622, allocations: 157.9 kB / 0.9601 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.384e-05/0.2623, allocations: 19.81 kB / 0.9601 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.262e-05/0.2623, allocations: 21.86 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.2623, allocations: 8 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2623, allocations: 0 / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2624, allocations: 0 / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008323/0.2632, allocations: 0.5863 MB / 0.9607 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2632, allocations: 0 / 0.9607 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.379e-05/0.2633, allocations: 15.98 kB / 0.9607 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2633, allocations: 0 / 0.9607 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.2633, allocations: 7.984 kB / 0.9607 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.2633, allocations: 7.938 kB / 0.9607 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.2634, allocations: 4 kB / 0.9607 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006171/0.264, allocations: 440.6 kB / 0.9611 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.2641, allocations: 100.8 kB / 0.9612 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.906e-05/0.2641, allocations: 15.92 kB / 0.9612 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.2643, allocations: 16.05 kB / 0.9613 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.299e-05/0.2643, allocations: 11.98 kB / 0.9613 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.2643, allocations: 15.98 kB / 0.9613 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.841e-05/0.2644, allocations: 124.2 kB / 0.9614 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2644, allocations: 0 / 0.9614 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004426/0.2649, allocations: 111.9 kB / 0.9615 GB, free: 13.01 MB / 0.7481 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.0008449/0.2657, allocations: 443.1 kB / 0.9619 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003816/0.2661, allocations: 195.7 kB / 0.9621 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2661, allocations: 0 / 0.9621 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.2663, allocations: 87.88 kB / 0.9622 GB, free: 12.4 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.2666, allocations: 28.73 kB / 0.9622 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006409/0.2673, allocations: 374.5 kB / 0.9626 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.2676, allocations: 0.732 MB / 0.9633 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.976e-05/0.2677, allocations: 49.44 kB / 0.9633 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.641e-05/0.2677, allocations: 23.44 kB / 0.9634 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of SimCode: time 1.593e-06/0.2677, allocations: 0 / 0.9634 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of Templates: time 0.006739/0.2745, allocations: 3.435 MB / 0.9667 GB, free: 7.715 MB / 0.7481 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 -s cvode -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/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