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: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001494/0.001494, allocations: 185.3 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.908/1.908, 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.001135/0.001134, allocations: 88.42 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.0003916, allocations: 11.98 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3343, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1533/0.4877, allocations: 91.77 MB / 466.4 MB, free: 4.855 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003376/0.4881, allocations: 87.95 kB / 466.5 MB, free: 4.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.509/1.997, allocations: 305.4 MB / 0.7538 GB, free: 32.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.626e-06/1.997, allocations: 0 / 0.7538 GB, free: 32.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004838/1.997, allocations: 199.8 kB / 0.754 GB, free: 32.34 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.0409/2.038, allocations: 8.252 MB / 0.7621 GB, free: 24.08 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/2.038, allocations: 8.031 kB / 0.7621 GB, free: 24.07 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006689/2.045, allocations: 1.332 MB / 0.7634 GB, free: 22.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03139/2.077, allocations: 3.911 MB / 0.7672 GB, free: 18.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01677/2.093, allocations: 5.386 MB / 0.7725 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001217/2.095, allocations: 0.6731 MB / 0.7731 GB, free: 12.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004495/2.099, allocations: 0.8685 MB / 0.774 GB, free: 11.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05167/2.151, allocations: 15.35 MB / 0.789 GB, free: 12.22 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005706/2.151, allocations: 7.906 kB / 0.789 GB, free: 12.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004182/2.156, allocations: 379.7 kB / 0.7893 GB, free: 11.85 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001168/2.157, allocations: 0.5845 MB / 0.7899 GB, free: 11.26 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3809/2.538, allocations: 12.93 MB / 0.8025 GB, free: 52.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/2.666, allocations: 47.8 MB / 0.8492 GB, free: 47.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02231/2.689, allocations: 9.697 MB / 0.8587 GB, free: 44.17 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06257/2.751, allocations: 20.99 MB / 0.8792 GB, free: 34.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.739e-05/2.752, allocations: 87.5 kB / 0.8793 GB, free: 34.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=711): time 1.15e-05/2.752, allocations: 1.781 kB / 0.8793 GB, free: 34.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=711): time 0.08285/2.834, allocations: 28.34 MB / 0.9069 GB, free: 17.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.875e-05/2.835, allocations: 110.1 kB / 0.907 GB, free: 17.44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004193/2.839, allocations: 1.749 MB / 0.9088 GB, free: 16.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001565/2.84, allocations: 116 kB / 0.9089 GB, free: 16.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/2.842, allocations: 3 MB / 0.9118 GB, free: 14.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004041/2.847, allocations: 2.329 MB / 0.9141 GB, free: 12.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001854/2.848, allocations: 115.2 kB / 0.9142 GB, free: 12.53 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009865/2.849, allocations: 0.6004 MB / 0.9148 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01232/2.862, allocations: 4.628 MB / 0.9193 GB, free: 10.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0142/2.876, allocations: 5.85 MB / 0.925 GB, free: 5.922 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01498/2.891, allocations: 5.598 MB / 0.9305 GB, free: 1.004 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.448e-05/2.891, allocations: 12 kB / 0.9305 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.06449/2.956, allocations: 14.35 MB / 0.9445 GB, free: 8.805 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.884e-05/2.956, allocations: 19.95 kB / 0.9445 GB, free: 8.785 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/2.956, allocations: 35.28 kB / 0.9445 GB, free: 8.754 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01256/2.969, allocations: 3.727 MB / 0.9482 GB, free: 5.609 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008716/2.977, allocations: 1.031 MB / 0.9492 GB, free: 4.824 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0194/2.997, allocations: 9.215 MB / 0.9582 GB, free: 12.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007516/3.004, allocations: 0.7061 MB / 0.9589 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002527/3.007, allocations: 273 kB / 0.9591 GB, free: 11.53 MB / 458.7 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.01249/3.019, allocations: 3.429 MB / 0.9625 GB, free: 8.727 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002569/3.022, allocations: 355.2 kB / 0.9628 GB, free: 8.379 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3833/3.405, allocations: 13.23 MB / 0.9757 GB, free: 82.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03376/3.439, allocations: 11.57 MB / 0.987 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.452e-05/3.439, allocations: 0 / 0.987 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001209/3.439, allocations: 26.58 kB / 0.9871 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07235/3.512, allocations: 24.49 MB / 1.011 GB, free: 81.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001252/3.512, allocations: 0 / 1.011 GB, free: 81.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006352/3.518, allocations: 0.7084 MB / 1.012 GB, free: 81.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01088/3.529, allocations: 3.687 MB / 1.015 GB, free: 81.05 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001786/3.531, allocations: 147.8 kB / 1.015 GB, free: 81.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01573/3.547, allocations: 9.142 MB / 1.024 GB, free: 77.91 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/3.547, allocations: 3.188 kB / 1.024 GB, free: 77.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05238/3.599, allocations: 19.01 MB / 1.043 GB, free: 71.28 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005494/3.605, allocations: 1.491 MB / 1.044 GB, free: 70.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002309/3.607, allocations: 95.3 kB / 1.044 GB, free: 70.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005281/3.613, allocations: 251.1 kB / 1.045 GB, free: 70.41 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002638/3.615, allocations: 0.5192 MB / 1.045 GB, free: 70.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001773/3.617, allocations: 184.7 kB / 1.045 GB, free: 70.25 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003135/3.62, allocations: 1.311 MB / 1.047 GB, free: 69.77 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.11e-07/3.62, allocations: 0 / 1.047 GB, free: 69.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01008/3.63, allocations: 2.163 MB / 1.049 GB, free: 69.34 MB / 458.7 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.05362/3.684, allocations: 19.83 MB / 1.068 GB, free: 60.36 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03068/3.715, allocations: 11.04 MB / 1.079 GB, free: 51.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/3.715, allocations: 1.75 kB / 1.079 GB, free: 51.12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01659/3.732, allocations: 5.591 MB / 1.084 GB, free: 46.35 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006831/3.738, allocations: 0.608 MB / 1.085 GB, free: 45.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4882/4.227, allocations: 72.65 MB / 1.156 GB, free: 98.75 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01344/4.24, allocations: 5.983 MB / 1.162 GB, free: 97.91 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00793/4.248, allocations: 2.862 MB / 1.165 GB, free: 97.9 MB / 474.7 MB Notification: Performance of SimCode: time 2.124e-06/4.248, allocations: 0 / 1.165 GB, free: 97.9 MB / 474.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -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 In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensorsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensorsFunctions.cpp:204:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp353 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensorsFunctions.cpp:204:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp353 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensorsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensorsFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 2 errors generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensorsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensorsCalcHelperMain.o] Error 1