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: 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.001857/0.001856, allocations: 108 kB / 15.61 MB, free: 152 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.002006/0.002006, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.397/1.397, 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 12.0.0-master/package.mo): time 2.879/2.879, allocations: 472.6 MB / 0.7451 GB, free: 4.746 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.62 kB / 0.912 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3337, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003082/0.3369, allocations: 1.725 MB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002729/0.3396, allocations: 1.814 MB / 1.072 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.721e-05/0.3397, allocations: 0 / 1.072 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.3399, allocations: 31.78 kB / 1.072 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.34, allocations: 27.73 kB / 1.072 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.3411, allocations: 318.6 kB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002459/0.3414, allocations: 215.4 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.3415, allocations: 33.53 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.3416, allocations: 83.69 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.3417, allocations: 75.67 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.577e-05/0.3418, allocations: 8 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004032/0.3422, allocations: 263.6 kB / 1.073 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.3423, allocations: 55.81 kB / 1.073 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.54e-05/0.3424, allocations: 63.66 kB / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004525/0.3428, allocations: 375.3 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.3428, allocations: 0 / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3428, allocations: 0 / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.3429, allocations: 0 / 1.073 GB, free: 5.398 MB / 0.8262 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.0008582/0.3437, allocations: 0.5262 MB / 1.074 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3438, allocations: 8.031 kB / 1.074 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.029e-05/0.3438, allocations: 20.75 kB / 1.074 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.3441, allocations: 229.8 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.3441, allocations: 12.31 kB / 1.074 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.238e-05/0.3442, allocations: 20 kB / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.3445, allocations: 152.2 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3445, allocations: 0 / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.3446, allocations: 0 / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3446, allocations: 7.984 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.3448, allocations: 83.88 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008273/0.3456, allocations: 424.8 kB / 1.075 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.3459, allocations: 154.3 kB / 1.075 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.3461, allocations: 64.83 kB / 1.075 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.381e-05/0.3461, allocations: 11.98 kB / 1.075 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.3464, allocations: 161 kB / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.472e-06/0.3464, allocations: 0 / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20): time 0.0006901/0.3471, allocations: 312.1 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.588e-05/0.3472, allocations: 89.09 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.3474, allocations: 175.3 kB / 1.075 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/0.3474, allocations: 37.7 kB / 1.075 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.067e-05/0.3475, allocations: 116.4 kB / 1.076 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.896e-05/0.3476, allocations: 55.34 kB / 1.076 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.589e-05/0.3477, allocations: 61.97 kB / 1.076 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3478, allocations: 338.7 kB / 1.076 GB, free: 2.152 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.348, allocations: 84.5 kB / 1.076 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/0.3483, allocations: 177.9 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003925/0.3487, allocations: 255.8 kB / 1.077 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.3487, allocations: 4 kB / 1.077 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004821/0.3492, allocations: 301 kB / 1.077 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3492, allocations: 4 kB / 1.077 GB, free: 1.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3492, allocations: 8.062 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.3492, allocations: 4.375 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.3494, allocations: 51.78 kB / 1.077 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.3494, allocations: 8 kB / 1.077 GB, free: 1.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.3495, allocations: 19.84 kB / 1.077 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.3495, allocations: 12 kB / 1.077 GB, free: 1.148 MB / 0.8262 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.0001768/0.3497, allocations: 159.9 kB / 1.077 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.596e-05/0.3498, allocations: 19.81 kB / 1.077 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.3498, allocations: 25.86 kB / 1.077 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3498, allocations: 0 / 1.077 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3498, allocations: 0 / 1.077 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3498, allocations: 4 kB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008607/0.3507, allocations: 0.574 MB / 1.078 GB, free: 312 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3507, allocations: 4 kB / 1.078 GB, free: 308 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.3508, allocations: 16.08 kB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.3509, allocations: 11.94 kB / 1.078 GB, free: 280 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.3509, allocations: 7.984 kB / 1.078 GB, free: 272 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3509, allocations: 7.875 kB / 1.078 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3509, allocations: 0 / 1.078 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006965/0.3516, allocations: 434.6 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.848e-05/0.3517, allocations: 96.95 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.326e-05/0.3517, allocations: 11.94 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.3519, allocations: 11.98 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.479e-05/0.3519, allocations: 19.97 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.352, allocations: 7.984 kB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.794e-05/0.352, allocations: 123.2 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3521, allocations: 4 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004748/0.3525, allocations: 107.9 kB / 1.079 GB, free: 15.42 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.0008875/0.3534, allocations: 450.2 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004691/0.3539, allocations: 217.4 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3539, allocations: 0 / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.3541, allocations: 88.81 kB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.3545, allocations: 35.92 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007893/0.3553, allocations: 376.3 kB / 1.08 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.3556, allocations: 0.732 MB / 1.08 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000118/0.3558, allocations: 45.5 kB / 1.08 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.994e-05/0.3558, allocations: 19.44 kB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.3558, allocations: 0 / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of Templates: time 0.007598/0.3634, allocations: 3.441 MB / 1.084 GB, free: 10.11 MB / 0.8419 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 -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/jenkins/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