Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.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.SimpleRoom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TAmb.y|onOffCon.u|pyt.yR.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom") translateModel(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TAmb.y|onOffCon.u|pyt.yR.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001814/0.001814, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.475/1.475, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.906/2.906, allocations: 482.4 MB / 0.7553 GB, free: 6.98 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.003267/0.003267, allocations: 72.73 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.012/1.015, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.00356/1.019, allocations: 1.815 MB / 1.085 GB, free: 396 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002715/1.021, allocations: 1.603 MB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.772e-05/1.021, allocations: 1.438 kB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002125/1.022, allocations: 29.8 kB / 1.086 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001312/1.022, allocations: 15.22 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008683/1.023, allocations: 241 kB / 1.087 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003878/1.023, allocations: 247.1 kB / 1.087 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/1.023, allocations: 64.69 kB / 1.087 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/1.024, allocations: 94.83 kB / 1.087 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/1.024, allocations: 79.48 kB / 1.087 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.164e-05/1.024, allocations: 17.2 kB / 1.087 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004732/1.024, allocations: 192.6 kB / 1.087 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001462/1.024, allocations: 83.25 kB / 1.087 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/1.025, allocations: 93.52 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006405/1.025, allocations: 377.8 kB / 1.088 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/1.025, allocations: 4.703 kB / 1.088 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.222e-06/1.025, allocations: 0 / 1.088 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.019e-05/1.025, allocations: 1.156 kB / 1.088 GB, free: 14.62 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001025/1.026, allocations: 0.5555 MB / 1.088 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/1.026, allocations: 10.31 kB / 1.088 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.706e-05/1.026, allocations: 22.92 kB / 1.088 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/1.027, allocations: 257 kB / 1.089 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.95e-05/1.027, allocations: 19.64 kB / 1.089 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.449e-05/1.027, allocations: 31.92 kB / 1.089 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/1.027, allocations: 205 kB / 1.089 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/1.027, allocations: 0 / 1.089 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/1.027, allocations: 11.45 kB / 1.089 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/1.027, allocations: 7.719 kB / 1.089 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002864/1.028, allocations: 113.5 kB / 1.089 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/1.029, allocations: 0.586 MB / 1.089 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000424/1.03, allocations: 209.6 kB / 1.09 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/1.03, allocations: 95.75 kB / 1.09 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/1.03, allocations: 10.92 kB / 1.09 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003624/1.03, allocations: 171.8 kB / 1.09 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=27): time 1.804e-06/1.03, allocations: 0 / 1.09 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.0008431/1.031, allocations: 396.7 kB / 1.09 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.37e-05/1.031, allocations: 65.5 kB / 1.09 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/1.031, allocations: 184.2 kB / 1.091 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.771e-05/1.031, allocations: 48.02 kB / 1.091 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/1.032, allocations: 130.8 kB / 1.091 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.78e-05/1.032, allocations: 84.41 kB / 1.091 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/1.032, allocations: 83.88 kB / 1.091 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001776/1.032, allocations: 338.6 kB / 1.091 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/1.032, allocations: 114.5 kB / 1.091 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003673/1.033, allocations: 259.2 kB / 1.092 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005678/1.033, allocations: 368.7 kB / 1.092 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/1.033, allocations: 4.781 kB / 1.092 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007327/1.034, allocations: 416.6 kB / 1.092 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/1.034, allocations: 10.84 kB / 1.092 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/1.034, allocations: 4.469 kB / 1.092 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/1.034, allocations: 7.547 kB / 1.092 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/1.034, allocations: 68.27 kB / 1.092 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.584e-05/1.034, allocations: 8.656 kB / 1.092 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/1.034, allocations: 31.33 kB / 1.092 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.023e-05/1.034, allocations: 18.62 kB / 1.092 GB, free: 11.54 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 34 (pyt.firstTrigger,$PRE.pyt.firstTrigger,pyt.yR[2],$PRE.pyt.yR[2],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[4],$PRE.pyt.uRIntPre[4],pyt.uRWri_temp[1],$PRE.pyt.uRWri_temp[1],pyt.uRWri[1],$PRE.pyt.uRWri[1],pyt.uRWri_temp[4],$PRE.pyt.uRWri_temp[4],pyt.uRWri[4],$PRE.pyt.uRWri[4],pyt.sampleTrigger,$whenCondition1,pyt.uRWri_temp[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri[2],$PRE.pyt.uRWri[2],onOffCon.y,$PRE.onOffCon.y,pyt.uRWri_temp[3],$PRE.pyt.uRWri_temp[3],pyt.uRWri[3],$PRE.pyt.uRWri[3],pyt.yR[1],$PRE.pyt.yR[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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.0002431/1.035, allocations: 190.4 kB / 1.093 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.325e-05/1.035, allocations: 18.09 kB / 1.093 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.024e-05/1.035, allocations: 20.44 kB / 1.093 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/1.035, allocations: 4.219 kB / 1.093 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/1.035, allocations: 0 / 1.093 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/1.035, allocations: 1.875 kB / 1.093 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/1.036, allocations: 0.694 MB / 1.093 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/1.036, allocations: 0 / 1.093 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/1.036, allocations: 21.88 kB / 1.093 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/1.036, allocations: 2.188 kB / 1.093 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/1.036, allocations: 11.36 kB / 1.093 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/1.036, allocations: 1.062 kB / 1.093 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.036, allocations: 0.6562 kB / 1.093 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009205/1.037, allocations: 0.5092 MB / 1.094 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.102e-05/1.037, allocations: 99.08 kB / 1.094 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.785e-05/1.037, allocations: 28.28 kB / 1.094 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/1.037, allocations: 12.91 kB / 1.094 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.281e-05/1.038, allocations: 16.44 kB / 1.094 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/1.038, allocations: 16.61 kB / 1.094 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001399/1.038, allocations: 134.8 kB / 1.094 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.61e-07/1.038, allocations: 0 / 1.094 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005331/1.038, allocations: 104.6 kB / 1.094 GB, free: 10.43 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pyt.uRInt[1],pyt.uRInt[2],pyt.uRInt[3],pyt.uRInt[4]) * Number of discrete variables: 18 (pyt.sampleTrigger,$whenCondition1,pyt.firstTrigger,pyt.yR[1],pyt.yR[2],pyt.uRIntPre[1],pyt.uRIntPre[2],pyt.uRIntPre[3],pyt.uRIntPre[4],pyt.uRWri[1],pyt.uRWri[2],pyt.uRWri[3],pyt.uRWri[4],pyt.uRWri_temp[1],pyt.uRWri_temp[2],pyt.uRWri_temp[3],pyt.uRWri_temp[4],onOffCon.y) * Number of discrete states: 5 (pyt.uR[1],pyt.uR[2],pyt.uR[3],pyt.uR[4],onOffCon.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0009333/1.039, allocations: 341.7 kB / 1.095 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006678/1.04, allocations: 327.2 kB / 1.095 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.04, allocations: 0 / 1.095 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002113/1.04, allocations: 106 kB / 1.095 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/1.04, allocations: 24.47 kB / 1.095 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/1.042, allocations: 0.5336 MB / 1.096 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/1.042, allocations: 0.7521 MB / 1.096 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.342e-05/1.042, allocations: 21.66 kB / 1.096 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/1.042, allocations: 0 / 1.096 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of Templates: time 0.008527/1.051, allocations: 3.965 MB / 1.1 GB, free: 8.699 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.makefile make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoomCalcHelperMain.o OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoomCalcHelperMain.cpp In file included from OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoomCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoomFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoomCalcHelperMain.o] Error 1