Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors") translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001449/0.001449, allocations: 186.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 99.19 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.000377, allocations: 12 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3265, allocations: 47.55 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.4694, allocations: 91.79 MB / 466.3 MB, free: 4.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003062/0.4697, allocations: 83.95 kB / 466.4 MB, free: 4.898 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.441/1.91, allocations: 305.4 MB / 0.7537 GB, free: 32.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.91, allocations: 8 kB / 0.7537 GB, free: 32.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000413/1.911, allocations: 191.8 kB / 0.7539 GB, free: 32.69 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2571 * Number of variables: 2571 Notification: Performance of Generate backend data structure: time 0.03647/1.947, allocations: 8.243 MB / 0.762 GB, free: 24.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/1.947, allocations: 11.31 kB / 0.762 GB, free: 24.42 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03054/1.978, allocations: 3.91 MB / 0.7658 GB, free: 20.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01449/1.992, allocations: 5.389 MB / 0.7711 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009262/1.993, allocations: 0.6769 MB / 0.7717 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003698/1.997, allocations: 0.8617 MB / 0.7726 GB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04461/2.042, allocations: 15.35 MB / 0.7876 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004264/2.042, allocations: 7.906 kB / 0.7876 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003526/2.046, allocations: 379.7 kB / 0.7879 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009762/2.047, allocations: 0.5845 MB / 0.7885 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04276/2.09, allocations: 12.93 MB / 0.8011 GB, free: 12 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7628/2.852, allocations: 47.8 MB / 0.8478 GB, free: 46.75 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02095/2.873, allocations: 9.693 MB / 0.8573 GB, free: 43.52 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05709/2.931, allocations: 20.98 MB / 0.8778 GB, free: 33.67 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.676e-05/2.931, allocations: 87.12 kB / 0.8778 GB, free: 33.59 MB / 426.8 MB Notification: Performance of pre-optimization done (n=711): time 1.277e-05/2.931, allocations: 3.844 kB / 0.8778 GB, free: 33.59 MB / 426.8 MB Notification: Performance of matching and sorting (n=711): time 0.08001/3.011, allocations: 28.35 MB / 0.9055 GB, free: 16.86 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.579e-05/3.011, allocations: 103.9 kB / 0.9056 GB, free: 16.79 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003583/3.015, allocations: 1.749 MB / 0.9073 GB, free: 16.16 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001363/3.016, allocations: 112.5 kB / 0.9074 GB, free: 16.07 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001807/3.018, allocations: 3.002 MB / 0.9104 GB, free: 13.79 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00374/3.022, allocations: 2.338 MB / 0.9127 GB, free: 11.97 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008614/3.022, allocations: 109.6 kB / 0.9128 GB, free: 11.89 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0005843/3.023, allocations: 0.6049 MB / 0.9134 GB, free: 11.45 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01122/3.034, allocations: 4.621 MB / 0.9179 GB, free: 9.621 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/3.048, allocations: 5.852 MB / 0.9236 GB, free: 6.086 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01331/3.061, allocations: 5.6 MB / 0.9291 GB, free: 1.168 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-05/3.061, allocations: 8 kB / 0.9291 GB, free: 1.16 MB / 426.8 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.06094/3.122, allocations: 14.29 MB / 0.943 GB, free: 8.805 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.968e-05/3.122, allocations: 16 kB / 0.943 GB, free: 8.789 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/3.122, allocations: 39.47 kB / 0.9431 GB, free: 8.754 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/3.134, allocations: 3.726 MB / 0.9467 GB, free: 5.609 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008422/3.143, allocations: 1.028 MB / 0.9477 GB, free: 4.824 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01828/3.161, allocations: 9.22 MB / 0.9567 GB, free: 12.4 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006861/3.168, allocations: 0.7164 MB / 0.9574 GB, free: 11.76 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002116/3.17, allocations: 270.8 kB / 0.9577 GB, free: 11.52 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 143 * 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 (570): * Single equations (assignments): 479 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 85 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.01131/3.181, allocations: 3.429 MB / 0.961 GB, free: 8.723 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002478/3.184, allocations: 354.4 kB / 0.9614 GB, free: 8.375 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3873/3.571, allocations: 13.23 MB / 0.9743 GB, free: 81.16 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0298/3.601, allocations: 11.57 MB / 0.9856 GB, free: 80.89 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.158e-05/3.601, allocations: 0 / 0.9856 GB, free: 80.89 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001165/3.601, allocations: 26.58 kB / 0.9856 GB, free: 80.89 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06917/3.671, allocations: 24.49 MB / 1.01 GB, free: 80.18 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.916e-05/3.671, allocations: 3.188 kB / 1.01 GB, free: 80.18 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006211/3.677, allocations: 0.7097 MB / 1.01 GB, free: 80.18 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01043/3.687, allocations: 3.682 MB / 1.014 GB, free: 80.1 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001713/3.689, allocations: 146 kB / 1.014 GB, free: 80.1 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01465/3.704, allocations: 9.142 MB / 1.023 GB, free: 76.96 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/3.704, allocations: 3.953 kB / 1.023 GB, free: 76.96 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04986/3.754, allocations: 19.01 MB / 1.041 GB, free: 70.42 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005025/3.759, allocations: 1.495 MB / 1.043 GB, free: 69.69 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002057/3.761, allocations: 95.14 kB / 1.043 GB, free: 69.62 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005003/3.766, allocations: 249.4 kB / 1.043 GB, free: 69.55 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00266/3.769, allocations: 0.5243 MB / 1.044 GB, free: 69.44 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0016/3.77, allocations: 180.3 kB / 1.044 GB, free: 69.39 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.002967/3.773, allocations: 1.317 MB / 1.045 GB, free: 68.91 MB / 458.8 MB Notification: Performance of sort global known variables: time 7.42e-07/3.773, allocations: 0 / 1.045 GB, free: 68.91 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.009768/3.783, allocations: 2.157 MB / 1.047 GB, free: 68.48 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (currentQuasiRMSSensor.currentSensor[1].pin_p.reference.gamma) * 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 (403): * Single equations (assignments): 312 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 85 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.002111/3.785, allocations: 283.5 kB / 1.048 GB, free: 68.32 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.03048/3.816, allocations: 11.04 MB / 1.058 GB, free: 64.21 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/3.816, allocations: 2.625 kB / 1.058 GB, free: 64.21 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01684/3.833, allocations: 5.592 MB / 1.064 GB, free: 62.12 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006708/3.84, allocations: 0.6062 MB / 1.064 GB, free: 61.89 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05429/3.894, allocations: 22.3 MB / 1.086 GB, free: 41.9 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01208/3.906, allocations: 5.987 MB / 1.092 GB, free: 37.26 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00244/3.909, allocations: 283.8 kB / 1.092 GB, free: 37 MB / 458.8 MB Notification: Performance of SimCode: time 1.703e-06/3.909, allocations: 3.469 kB / 1.092 GB, free: 37 MB / 458.8 MB Notification: Performance of Templates: time 1.267/5.176, allocations: 395.5 MB / 1.479 GB, free: 17.69 MB / 0.4949 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -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/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsFunctions.cpp:204:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp353 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsFunctions.cpp:204:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp353 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.o] Error 1\n'