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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: 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_latest_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_latest_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.0009985/0.001002, allocations: 104.3 kB / 16.36 MB, free: 5.824 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.001008/0.001008, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.199/1.199, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.186/2.186, allocations: 442.6 MB / 0.7165 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 63.97 kB / 0.8773 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2402, allocations: 153 MB / 1.027 GB, free: 2.113 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002628/0.2429, allocations: 1.736 MB / 1.028 GB, free: 376 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002169/0.2451, allocations: 1.814 MB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.523e-05/0.2451, allocations: 8 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.2453, allocations: 27.72 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.324e-05/0.2454, allocations: 19.8 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009657/0.2463, allocations: 332.2 kB / 1.031 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002323/0.2466, allocations: 215.5 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.947e-05/0.2467, allocations: 25.56 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.2468, allocations: 83.67 kB / 1.031 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.2469, allocations: 79.67 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.2469, allocations: 8 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.2473, allocations: 283.5 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.822e-05/0.2474, allocations: 63.75 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.165e-05/0.2475, allocations: 71.66 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003857/0.2479, allocations: 371 kB / 1.032 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.2479, allocations: 0 / 1.032 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2479, allocations: 0 / 1.032 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.2479, allocations: 0 / 1.032 GB, free: 12.99 MB / 0.8106 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.0007056/0.2486, allocations: 0.5223 MB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.743e-05/0.2486, allocations: 12.03 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.624e-05/0.2487, allocations: 16.75 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.2489, allocations: 233.3 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.2489, allocations: 12.31 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.249, allocations: 12 kB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.2493, allocations: 153 kB / 1.033 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.2493, allocations: 0 / 1.033 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.2493, allocations: 0 / 1.033 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2493, allocations: 8 kB / 1.033 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.2495, allocations: 83.88 kB / 1.033 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007269/0.2502, allocations: 424.7 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.2505, allocations: 154.5 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.2506, allocations: 72.83 kB / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.2506, allocations: 0 / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.2509, allocations: 170.9 kB / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.212e-06/0.2509, allocations: 0 / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20): time 0.0005654/0.2515, allocations: 311 kB / 1.034 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.2516, allocations: 93.09 kB / 1.034 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.2517, allocations: 167.4 kB / 1.034 GB, free: 10.38 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.2517, allocations: 37.7 kB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.172e-05/0.2518, allocations: 120.3 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.59e-05/0.2518, allocations: 55.34 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.551e-05/0.2519, allocations: 62.09 kB / 1.034 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.252, allocations: 334.8 kB / 1.035 GB, free: 9.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.2522, allocations: 76.5 kB / 1.035 GB, free: 9.676 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.2524, allocations: 190.4 kB / 1.035 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003322/0.2527, allocations: 263.8 kB / 1.035 GB, free: 9.145 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2527, allocations: 3.938 kB / 1.035 GB, free: 9.141 MB / 0.8106 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004253/0.2531, allocations: 289.1 kB / 1.035 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.2532, allocations: 8.375 kB / 1.035 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2532, allocations: 8 kB / 1.035 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2532, allocations: 7.984 kB / 1.035 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.2533, allocations: 39.91 kB / 1.035 GB, free: 8.789 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.2534, allocations: 7.938 kB / 1.035 GB, free: 8.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.877e-05/0.2535, allocations: 23.75 kB / 1.036 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.2535, allocations: 16 kB / 1.036 GB, free: 8.742 MB / 0.8106 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.0001396/0.2536, allocations: 167.8 kB / 1.036 GB, free: 8.57 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.2537, allocations: 15.81 kB / 1.036 GB, free: 8.555 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.043e-05/0.2537, allocations: 21.86 kB / 1.036 GB, free: 8.535 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.2537, allocations: 4 kB / 1.036 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2537, allocations: 0 / 1.036 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.2537, allocations: 0 / 1.036 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007796/0.2545, allocations: 0.5804 MB / 1.036 GB, free: 7.895 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2545, allocations: 4 kB / 1.036 GB, free: 7.891 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.226e-05/0.2546, allocations: 15.98 kB / 1.036 GB, free: 7.875 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2546, allocations: 0 / 1.036 GB, free: 7.875 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.2547, allocations: 7.984 kB / 1.036 GB, free: 7.867 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.2547, allocations: 7.938 kB / 1.036 GB, free: 7.859 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2547, allocations: 0 / 1.036 GB, free: 7.859 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005809/0.2553, allocations: 438.9 kB / 1.037 GB, free: 7.414 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.185e-05/0.2553, allocations: 96.89 kB / 1.037 GB, free: 7.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.2554, allocations: 15.92 kB / 1.037 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.2555, allocations: 15.98 kB / 1.037 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.2555, allocations: 7.984 kB / 1.037 GB, free: 7.262 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/0.2556, allocations: 8 kB / 1.037 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.565e-05/0.2556, allocations: 123.2 kB / 1.037 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2557, allocations: 8 kB / 1.037 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004056/0.2561, allocations: 108 kB / 1.037 GB, free: 7.02 MB / 0.8106 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.0007365/0.2568, allocations: 443.4 kB / 1.038 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000372/0.2572, allocations: 196.3 kB / 1.038 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2572, allocations: 4.188 kB / 1.038 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.2574, allocations: 85.61 kB / 1.038 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.2577, allocations: 29.64 kB / 1.038 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006121/0.2583, allocations: 368.7 kB / 1.038 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.2586, allocations: 0.7321 MB / 1.039 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001006/0.2587, allocations: 45.48 kB / 1.039 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.398e-05/0.2587, allocations: 23.44 kB / 1.039 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.2587, allocations: 4 kB / 1.039 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of Templates: time 0.006267/0.265, allocations: 3.439 MB / 1.042 GB, free: 1.738 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (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 & ./Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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