Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u.1.|reaRep.y.1|1.|reaRep.y.2|2.|reaRep.y.3|2.",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u.1.|reaRep.y.1|1.|reaRep.y.2|2.|reaRep.y.3|2.",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 98.88 kB / 16.02 MB, free: 76 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.001389/0.001389, allocations: 186.5 kB / 16.92 MB, free: 6.77 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.392/1.392, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.656/2.656, allocations: 437.8 MB / 0.7128 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003766/0.0003767, allocations: 12 kB / 0.8735 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7134/0.7138, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001012/0.7149, allocations: 389.1 kB / 1.024 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009569/0.7159, allocations: 0.7962 MB / 1.025 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.775e-05/0.716, allocations: 0 / 1.025 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 8.507e-05/0.7161, allocations: 7.938 kB / 1.025 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.612e-05/0.7162, allocations: 3.984 kB / 1.025 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 5.232e-05/0.7162, allocations: 8 kB / 1.025 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.911e-05/0.7163, allocations: 51.84 kB / 1.025 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.7165, allocations: 23.97 kB / 1.025 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.859e-05/0.7165, allocations: 15.94 kB / 1.025 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.708e-05/0.7166, allocations: 27.84 kB / 1.025 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.7166, allocations: 4 kB / 1.025 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.708e-06/0.7167, allocations: 0 / 1.025 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.008e-05/0.7167, allocations: 19.97 kB / 1.025 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.857e-05/0.7168, allocations: 49.56 kB / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.662e-05/0.7169, allocations: 51.84 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.7169, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7169, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.7169, allocations: 4 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006259/0.7175, allocations: 393.3 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.7176, allocations: 8.031 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.298e-05/0.7176, allocations: 8.844 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.7178, allocations: 192.2 kB / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.7178, allocations: 4.375 kB / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.7179, allocations: 4.375 kB / 1.026 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004003/0.7183, allocations: 143.8 kB / 1.026 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.7183, allocations: 4.188 kB / 1.026 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.7183, allocations: 3.938 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.7183, allocations: 4 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004505/0.7188, allocations: 143.8 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007021/0.7195, allocations: 456.8 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002613/0.7198, allocations: 105.1 kB / 1.027 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.72, allocations: 73.7 kB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.72, allocations: 4 kB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.7201, allocations: 30.56 kB / 1.027 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.7201, allocations: 0 / 1.027 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.000734/0.7208, allocations: 221.5 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.7209, allocations: 85.27 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.721, allocations: 121.8 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.721, allocations: 25.7 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.166e-05/0.7211, allocations: 95.98 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.7211, allocations: 11.84 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.7211, allocations: 13.7 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.7213, allocations: 314.8 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002071/0.7215, allocations: 71.92 kB / 1.028 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.7217, allocations: 77.59 kB / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003732/0.7221, allocations: 129.6 kB / 1.028 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.7221, allocations: 0 / 1.028 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004561/0.7225, allocations: 161.5 kB / 1.028 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.7226, allocations: 6.188 kB / 1.028 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.7226, allocations: 0 / 1.028 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.7226, allocations: 0 / 1.028 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.7228, allocations: 28.03 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.7228, allocations: 4 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.896e-05/0.7229, allocations: 19.92 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.7229, allocations: 0 / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.642e-05/0.723, allocations: 122.4 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.723, allocations: 11.91 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.637e-05/0.7231, allocations: 11.52 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.7231, allocations: 4 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.7231, allocations: 0 / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.7231, allocations: 3.938 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002348/0.7233, allocations: 178 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.7234, allocations: 4 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.7235, allocations: 23.97 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.7235, allocations: 4 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.7235, allocations: 7.938 kB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.7235, allocations: 3.938 kB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.7235, allocations: 0 / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004922/0.724, allocations: 326.6 kB / 1.029 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.7241, allocations: 81.02 kB / 1.029 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.7241, allocations: 8 kB / 1.029 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.7242, allocations: 24 kB / 1.029 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.474e-05/0.7243, allocations: 11.92 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.7243, allocations: 0 / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.461e-05/0.7244, allocations: 95.27 kB / 1.029 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.773e-06/0.7244, allocations: 0 / 1.029 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002734/0.7247, allocations: 11.94 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001161/0.7248, allocations: 107.2 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000454/0.7252, allocations: 131.8 kB / 1.029 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.7253, allocations: 4 kB / 1.029 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002148/0.7255, allocations: 72.11 kB / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.7258, allocations: 15.94 kB / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004467/0.7263, allocations: 219.1 kB / 1.029 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.7266, allocations: 0.6965 MB / 1.03 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.7267, allocations: 7.438 kB / 1.03 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of SimCode: time 6.71e-07/0.7267, allocations: 4 kB / 1.03 GB, free: 8.906 MB / 0.7794 GB Notification: Performance of Templates: time 0.002445/0.7291, allocations: 0.944 MB / 1.031 GB, free: 7.969 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile clang++ -std=c++14 -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"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicatorCalcHelperMain.o OMCppBuildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicatorCalcHelperMain.cpp In file included from OMCppBuildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicatorCalcHelperMain.cpp:29: ./OMCppBuildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicatorInitialize.cpp:170:50: error: use of undeclared identifier 'reaRep_P_y_' SystemDefaultImplementation::setRealStartValue(reaRep_P_y_(3,1), (_ram1_P_offset_ + tmp4), false); ^ In file included from OMCppBuildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicatorCalcHelperMain.cpp:33: ./OMCppBuildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.cpp:179:3: error: use of undeclared identifier 'reaRep_P_y_' reaRep_P_y_(3,1) = (_ram1_P_offset_ + tmp10); ^ 2 errors generated. make: *** [: OMCppBuildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicatorCalcHelperMain.o] Error 1