Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 100.1 kB / 15.88 MB, free: 12 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.001548/0.001548, allocations: 196.8 kB / 16.79 MB, free: 6.863 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.45/1.45, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002351/0.002351, allocations: 290.8 kB / 290.9 MB, free: 2.055 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.039/1.039, allocations: 169.2 MB / 0.4983 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 88.2 kB / 0.5951 GB, free: 28.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1972, allocations: 86.98 MB / 0.6801 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004012/0.2013, allocations: 2.348 MB / 0.6824 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.2027, allocations: 0.7864 MB / 0.6831 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.2028, allocations: 0 / 0.6831 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005942/0.2034, allocations: 140 kB / 0.6833 GB, free: 13.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.2036, allocations: 57.64 kB / 0.6833 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001534/0.2037, allocations: 51.89 kB / 0.6834 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000235/0.204, allocations: 191.4 kB / 0.6836 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.2042, allocations: 65.08 kB / 0.6836 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.2043, allocations: 67.7 kB / 0.6837 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.2045, allocations: 71.67 kB / 0.6837 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.2045, allocations: 8 kB / 0.6838 GB, free: 13.4 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.2047, allocations: 59.92 kB / 0.6838 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.027e-05/0.2048, allocations: 35.84 kB / 0.6838 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.893e-05/0.2049, allocations: 59.67 kB / 0.6839 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002127/0.2051, allocations: 127.7 kB / 0.684 GB, free: 13.12 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2051, allocations: 0 / 0.684 GB, free: 13.12 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2051, allocations: 0 / 0.684 GB, free: 13.12 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.2051, allocations: 0 / 0.684 GB, free: 13.12 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007781/0.2059, allocations: 0.4906 MB / 0.6845 GB, free: 12.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.2059, allocations: 12.03 kB / 0.6845 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002272/0.2062, allocations: 28.81 kB / 0.6845 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/0.2064, allocations: 209.8 kB / 0.6847 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.315e-05/0.2065, allocations: 38.45 kB / 0.6848 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.37e-05/0.2066, allocations: 16.12 kB / 0.6848 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003265/0.2069, allocations: 150.6 kB / 0.6849 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.2069, allocations: 0 / 0.6849 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.2069, allocations: 4 kB / 0.6849 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.207, allocations: 4 kB / 0.6849 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.2072, allocations: 91.88 kB / 0.685 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009384/0.2081, allocations: 0.6441 MB / 0.6857 GB, free: 11.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.2084, allocations: 58.56 kB / 0.6857 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.612e-05/0.2084, allocations: 28.84 kB / 0.6857 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.2085, allocations: 4 kB / 0.6857 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002052/0.2087, allocations: 140.4 kB / 0.6859 GB, free: 11.01 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.2087, allocations: 0 / 0.6859 GB, free: 11.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.000397/0.2091, allocations: 171.3 kB / 0.686 GB, free: 10.83 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.217e-05/0.2092, allocations: 132.5 kB / 0.6862 GB, free: 10.67 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.2094, allocations: 182.4 kB / 0.6863 GB, free: 10.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.2094, allocations: 29.7 kB / 0.6864 GB, free: 10.45 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.2095, allocations: 143.7 kB / 0.6865 GB, free: 10.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.42e-05/0.2096, allocations: 15.75 kB / 0.6865 GB, free: 10.28 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.303e-05/0.2096, allocations: 41.7 kB / 0.6866 GB, free: 10.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.2098, allocations: 326.8 kB / 0.6869 GB, free: 9.906 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.764e-05/0.2099, allocations: 39.94 kB / 0.6869 GB, free: 9.867 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.2101, allocations: 113.3 kB / 0.687 GB, free: 9.723 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/0.2103, allocations: 230.3 kB / 0.6872 GB, free: 9.445 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2104, allocations: 0 / 0.6872 GB, free: 9.445 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004054/0.2108, allocations: 244.7 kB / 0.6875 GB, free: 9.188 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.314e-05/0.2108, allocations: 55.41 kB / 0.6875 GB, free: 9.121 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.2109, allocations: 7.938 kB / 0.6875 GB, free: 9.113 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.2109, allocations: 4 kB / 0.6875 GB, free: 9.109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.211, allocations: 31.92 kB / 0.6876 GB, free: 9.078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.982e-05/0.2111, allocations: 12.23 kB / 0.6876 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.2112, allocations: 27.84 kB / 0.6876 GB, free: 9.039 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.2112, allocations: 4 kB / 0.6876 GB, free: 9.035 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0001649/0.2114, allocations: 170.8 kB / 0.6878 GB, free: 8.855 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/0.2114, allocations: 15.81 kB / 0.6878 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.931e-05/0.2115, allocations: 25.27 kB / 0.6878 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2115, allocations: 0 / 0.6878 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2115, allocations: 0 / 0.6878 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2115, allocations: 0 / 0.6878 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.2118, allocations: 213.6 kB / 0.688 GB, free: 8.559 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2118, allocations: 0 / 0.688 GB, free: 8.559 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.094e-05/0.2119, allocations: 15.98 kB / 0.688 GB, free: 8.543 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.2119, allocations: 4 kB / 0.688 GB, free: 8.539 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.2119, allocations: 3.938 kB / 0.688 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2119, allocations: 0 / 0.688 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2119, allocations: 0 / 0.688 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004429/0.2123, allocations: 222.6 kB / 0.6883 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.042e-05/0.2124, allocations: 88.98 kB / 0.6883 GB, free: 8.188 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.191e-05/0.2125, allocations: 7.938 kB / 0.6883 GB, free: 8.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.938e-05/0.2126, allocations: 11.98 kB / 0.6884 GB, free: 8.168 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.398e-05/0.2126, allocations: 7.984 kB / 0.6884 GB, free: 8.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.619e-06/0.2127, allocations: 7.938 kB / 0.6884 GB, free: 8.152 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.2128, allocations: 136.3 kB / 0.6885 GB, free: 8.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2128, allocations: 0 / 0.6885 GB, free: 8.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002495/0.2131, allocations: 27.94 kB / 0.6885 GB, free: 7.992 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0001614/0.2132, allocations: 115.3 kB / 0.6886 GB, free: 7.871 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003571/0.2136, allocations: 215 kB / 0.6888 GB, free: 7.637 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2136, allocations: 0 / 0.6888 GB, free: 7.637 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.2137, allocations: 103.4 kB / 0.6889 GB, free: 7.523 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.214, allocations: 26.42 kB / 0.689 GB, free: 7.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006973/0.2147, allocations: 362 kB / 0.6893 GB, free: 7.113 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.215, allocations: 0.716 MB / 0.69 GB, free: 6.371 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.03e-05/0.2151, allocations: 15.44 kB / 0.69 GB, free: 6.355 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2151, allocations: 0 / 0.69 GB, free: 6.355 MB / 494.1 MB Notification: Performance of Templates: time 0.003842/0.2189, allocations: 1.689 MB / 0.6917 GB, free: 4.676 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.makefile make -j1 -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.makefile clang++ -std=c++14 NOTFOUND -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 OMCppBuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRLCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRLCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRLCalcHelperMain.o] Error 1