Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.274/2.274, allocations: 254.9 MB / 269.9 MB, free: 9.637 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 196.4 kB / 329.5 MB, free: 1.152 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.846/2.846, allocations: 225.6 MB / 0.6001 GB, free: 2.262 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009818/0.0009819, allocations: 95.66 kB / 0.7074 GB, free: 7.969 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0005006/0.0005007, allocations: 11.59 kB / 0.8242 GB, free: 124.3 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2119, allocations: 109.1 MB / 0.9308 GB, free: 25.16 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.002113/0.214, allocations: 1.425 MB / 0.9322 GB, free: 23.72 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.002877/0.2169, allocations: 1.678 MB / 0.9338 GB, free: 22.03 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.836e-05/0.2171, allocations: 8 kB / 0.9338 GB, free: 22.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.2172, allocations: 23.8 kB / 0.9338 GB, free: 22 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.2174, allocations: 23.78 kB / 0.9338 GB, free: 21.98 MB / 0.5886 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009672/0.2184, allocations: 259.5 kB / 0.9341 GB, free: 21.72 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.2187, allocations: 187.5 kB / 0.9343 GB, free: 21.54 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.2188, allocations: 33.53 kB / 0.9343 GB, free: 21.51 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.219, allocations: 71.69 kB / 0.9344 GB, free: 21.44 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.2191, allocations: 67.67 kB / 0.9344 GB, free: 21.37 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.2191, allocations: 4 kB / 0.9344 GB, free: 21.37 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005049/0.2196, allocations: 235.6 kB / 0.9347 GB, free: 21.14 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.2198, allocations: 47.88 kB / 0.9347 GB, free: 21.09 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 5.596e-05/0.2198, allocations: 49.64 kB / 0.9348 GB, free: 21.04 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.2202, allocations: 263.8 kB / 0.935 GB, free: 20.78 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.2202, allocations: 0 / 0.935 GB, free: 20.78 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.723e-06/0.2202, allocations: 0 / 0.935 GB, free: 20.78 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.86e-06/0.2203, allocations: 0 / 0.935 GB, free: 20.78 MB / 0.5886 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.0009341/0.2212, allocations: 0.4952 MB / 0.9355 GB, free: 20.23 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.2212, allocations: 15.97 kB / 0.9355 GB, free: 20.22 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.987e-05/0.2213, allocations: 20.66 kB / 0.9355 GB, free: 20.2 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002358/0.2216, allocations: 217.8 kB / 0.9357 GB, free: 19.95 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/0.2216, allocations: 20.3 kB / 0.9358 GB, free: 19.93 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.2217, allocations: 12 kB / 0.9358 GB, free: 19.91 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004037/0.2221, allocations: 155.2 kB / 0.9359 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.2221, allocations: 0 / 0.9359 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.631e-05/0.2221, allocations: 4 kB / 0.9359 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.2222, allocations: 4 kB / 0.9359 GB, free: 19.74 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003503/0.2225, allocations: 87.88 kB / 0.936 GB, free: 19.66 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.2236, allocations: 428.7 kB / 0.9364 GB, free: 19.19 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004019/0.2241, allocations: 162.4 kB / 0.9366 GB, free: 19.02 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/0.2243, allocations: 76.77 kB / 0.9366 GB, free: 18.94 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.2244, allocations: 4 kB / 0.9366 GB, free: 18.94 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004114/0.2248, allocations: 172.1 kB / 0.9368 GB, free: 18.75 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=20): time 2.194e-06/0.2248, allocations: 0 / 0.9368 GB, free: 18.75 MB / 0.5886 GB Notification: Performance of matching and sorting (n=20): time 0.0009478/0.2257, allocations: 313.6 kB / 0.9371 GB, free: 18.44 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.2258, allocations: 93.22 kB / 0.9372 GB, free: 18.33 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.226, allocations: 178 kB / 0.9374 GB, free: 18.15 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.226, allocations: 33.7 kB / 0.9374 GB, free: 18.11 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.238e-05/0.2261, allocations: 116.5 kB / 0.9375 GB, free: 18 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 6.447e-05/0.2262, allocations: 55.25 kB / 0.9376 GB, free: 17.94 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-05/0.2262, allocations: 8 kB / 0.9376 GB, free: 17.93 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.485e-05/0.2263, allocations: 338.8 kB / 0.9379 GB, free: 17.59 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.2266, allocations: 84.45 kB / 0.938 GB, free: 17.51 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/0.2269, allocations: 185.8 kB / 0.9382 GB, free: 17.28 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.2272, allocations: 111.9 kB / 0.9383 GB, free: 17.17 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.2272, allocations: 0 / 0.9383 GB, free: 17.17 MB / 0.5886 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007171/0.228, allocations: 297.3 kB / 0.9385 GB, free: 16.88 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.228, allocations: 8 kB / 0.9386 GB, free: 16.87 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.228, allocations: 0 / 0.9386 GB, free: 16.87 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.228, allocations: 8 kB / 0.9386 GB, free: 16.86 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002754/0.2283, allocations: 43.91 kB / 0.9386 GB, free: 16.82 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.2284, allocations: 11.94 kB / 0.9386 GB, free: 16.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.2285, allocations: 24 kB / 0.9386 GB, free: 16.78 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.2286, allocations: 15.98 kB / 0.9386 GB, free: 16.77 MB / 0.5886 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,$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.ran.firstTrigger,ran.firstTrigger,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$whenCondition1,ran.sampleTrigger,$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.ran.uRWri_temp[1],ran.uRWri_temp[1],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.uRWri_temp[1],kalFil.uRWri_temp[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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001834/0.2288, allocations: 159.9 kB / 0.9388 GB, free: 16.6 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.2288, allocations: 15.81 kB / 0.9388 GB, free: 16.59 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.748e-05/0.2289, allocations: 21.86 kB / 0.9388 GB, free: 16.57 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2289, allocations: 4 kB / 0.9388 GB, free: 16.56 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2289, allocations: 4 kB / 0.9388 GB, free: 16.56 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.2289, allocations: 0 / 0.9388 GB, free: 16.56 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.2301, allocations: 0.5821 MB / 0.9394 GB, free: 15.92 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2301, allocations: 7.938 kB / 0.9394 GB, free: 15.91 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.2303, allocations: 24.05 kB / 0.9394 GB, free: 15.89 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.2304, allocations: 0 / 0.9394 GB, free: 15.89 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.2304, allocations: 11.98 kB / 0.9395 GB, free: 15.88 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.2304, allocations: 3.938 kB / 0.9395 GB, free: 15.88 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2304, allocations: 4 kB / 0.9395 GB, free: 15.87 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009876/0.2314, allocations: 451.8 kB / 0.9399 GB, free: 15.41 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-05/0.2315, allocations: 92.89 kB / 0.94 GB, free: 15.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.1e-05/0.2315, allocations: 15.92 kB / 0.94 GB, free: 15.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.2318, allocations: 15.98 kB / 0.94 GB, free: 15.27 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.095e-05/0.2318, allocations: 16.05 kB / 0.94 GB, free: 15.25 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.709e-05/0.2319, allocations: 11.98 kB / 0.94 GB, free: 15.24 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 9.824e-05/0.232, allocations: 121.8 kB / 0.9402 GB, free: 15.12 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.6e-07/0.232, allocations: 0 / 0.9402 GB, free: 15.12 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000594/0.2326, allocations: 111.9 kB / 0.9403 GB, free: 15.02 MB / 0.5886 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00116/0.2338, allocations: 0.498 MB / 0.9407 GB, free: 14.62 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0006411/0.2344, allocations: 199.7 kB / 0.9409 GB, free: 14.43 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2345, allocations: 0 / 0.9409 GB, free: 14.43 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.000273/0.2348, allocations: 89.91 kB / 0.941 GB, free: 14.34 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004484/0.2352, allocations: 35.91 kB / 0.9411 GB, free: 14.31 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009831/0.2362, allocations: 428.5 kB / 0.9415 GB, free: 13.86 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.2364, allocations: 0.7245 MB / 0.9422 GB, free: 13.11 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0001654/0.2366, allocations: 49.5 kB / 0.9422 GB, free: 13.06 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.177e-05/0.2367, allocations: 15.44 kB / 0.9422 GB, free: 13.05 MB / 0.5886 GB Notification: Performance of SimCode: time 8.72e-07/0.2367, allocations: 192 / 0.9422 GB, free: 13.05 MB / 0.5886 GB Notification: Performance of Templates: time 0.00909/0.2458, allocations: 3.234 MB / 0.9454 GB, free: 9.816 MB / 0.5886 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.sim & ./Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe 2>&1)