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.002304/0.002304, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.181/2.181, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001064/0.001064, allocations: 78.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.886e-05/2.902e-05, allocations: 0 / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09885/0.09891, allocations: 47.58 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4289/0.5279, allocations: 91.68 MB / 460.9 MB, free: 1.273 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/0.5283, allocations: 77.33 kB / 460.9 MB, free: 1.234 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493/2.022, allocations: 305.1 MB / 0.7481 GB, free: 52.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.425e-06/2.022, allocations: 0 / 0.7481 GB, free: 52.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005275/2.022, allocations: 195.7 kB / 0.7482 GB, free: 52.02 MB / 426.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.03786/2.06, allocations: 7.995 MB / 0.756 GB, free: 49.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/2.06, allocations: 10.92 kB / 0.7561 GB, free: 49.61 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005731/2.066, allocations: 1.322 MB / 0.7573 GB, free: 49.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0307/2.097, allocations: 3.892 MB / 0.7611 GB, free: 49.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0169/2.114, allocations: 5.384 MB / 0.7664 GB, free: 48.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00121/2.115, allocations: 0.6777 MB / 0.7671 GB, free: 48.15 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004476/2.119, allocations: 0.8585 MB / 0.7679 GB, free: 48.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04871/2.168, allocations: 15.19 MB / 0.7827 GB, free: 46.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004683/2.169, allocations: 15.44 kB / 0.7827 GB, free: 46.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003852/2.173, allocations: 380.5 kB / 0.7831 GB, free: 46.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009139/2.173, allocations: 0.5838 MB / 0.7837 GB, free: 45.85 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03866/2.212, allocations: 12.74 MB / 0.7961 GB, free: 40.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1209/2.333, allocations: 47.79 MB / 0.8428 GB, free: 3.691 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02506/2.358, allocations: 9.848 MB / 0.8524 GB, free: 11.46 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01746/2.376, allocations: 6.578 MB / 0.8588 GB, free: 5.309 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4615/2.837, allocations: 20.98 MB / 0.8793 GB, free: 63.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.628e-05/2.837, allocations: 96.42 kB / 0.8794 GB, free: 63.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=711): time 1.157e-05/2.837, allocations: 0 / 0.8794 GB, free: 63.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=711): time 0.03628/2.874, allocations: 11.54 MB / 0.8907 GB, free: 62.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.134e-05/2.874, allocations: 107.2 kB / 0.8908 GB, free: 62.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00551/2.879, allocations: 1.733 MB / 0.8925 GB, free: 62.55 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001984/2.881, allocations: 111.9 kB / 0.8926 GB, free: 62.52 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003058/2.885, allocations: 2.998 MB / 0.8955 GB, free: 61.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005437/2.89, allocations: 2.339 MB / 0.8978 GB, free: 59.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002417/2.893, allocations: 113.5 kB / 0.8979 GB, free: 59.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001437/2.894, allocations: 0.5949 MB / 0.8985 GB, free: 59.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01817/2.912, allocations: 4.583 MB / 0.903 GB, free: 59.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01837/2.931, allocations: 5.803 MB / 0.9086 GB, free: 58.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0142/2.945, allocations: 5.572 MB / 0.9141 GB, free: 58.22 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.796e-05/2.945, allocations: 7.594 kB / 0.9141 GB, free: 58.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.03639/2.981, allocations: 13.02 MB / 0.9268 GB, free: 54.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.548e-05/2.982, allocations: 21.81 kB / 0.9268 GB, free: 54.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001037/2.982, allocations: 33.84 kB / 0.9269 GB, free: 54.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/2.992, allocations: 3.693 MB / 0.9305 GB, free: 53.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008122/3, allocations: 1.025 MB / 0.9315 GB, free: 53.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01442/3.015, allocations: 9.183 MB / 0.9404 GB, free: 47.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006646/3.021, allocations: 0.7096 MB / 0.9411 GB, free: 47.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002053/3.023, allocations: 264.5 kB / 0.9414 GB, free: 47.09 MB / 442.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 () * 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.003314/3.027, allocations: 421.7 kB / 0.9418 GB, free: 46.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002127/3.029, allocations: 352.9 kB / 0.9421 GB, free: 46.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03709/3.066, allocations: 12.9 MB / 0.9547 GB, free: 41.28 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0312/3.097, allocations: 11.48 MB / 0.9659 GB, free: 36.58 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/3.097, allocations: 6.781 kB / 0.9659 GB, free: 36.58 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001172/3.097, allocations: 26.48 kB / 0.966 GB, free: 36.58 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06611/3.164, allocations: 24.4 MB / 0.9898 GB, free: 17.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000106/3.164, allocations: 0 / 0.9898 GB, free: 17.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006316/3.17, allocations: 0.7111 MB / 0.9905 GB, free: 17.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009961/3.18, allocations: 3.644 MB / 0.994 GB, free: 13.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00175/3.182, allocations: 144.3 kB / 0.9942 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01382/3.196, allocations: 9.117 MB / 1.003 GB, free: 5.414 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/3.196, allocations: 0 / 1.003 GB, free: 5.414 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07048/3.266, allocations: 20.11 MB / 1.023 GB, free: 7.844 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005837/3.272, allocations: 1.495 MB / 1.024 GB, free: 6.477 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002091/3.274, allocations: 88 kB / 1.024 GB, free: 6.391 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005031/3.279, allocations: 249.3 kB / 1.025 GB, free: 6.219 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002638/3.282, allocations: 0.5355 MB / 1.025 GB, free: 5.875 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001582/3.284, allocations: 178 kB / 1.025 GB, free: 5.719 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00342/3.287, allocations: 1.297 MB / 1.026 GB, free: 4.586 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.61e-07/3.287, allocations: 0 / 1.026 GB, free: 4.586 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01053/3.298, allocations: 2.159 MB / 1.029 GB, free: 2.43 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 () * 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.3874/3.685, allocations: 20.34 MB / 1.048 GB, free: 76.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03043/3.715, allocations: 10.95 MB / 1.059 GB, free: 76.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/3.716, allocations: 0 / 1.059 GB, free: 76.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01598/3.732, allocations: 5.54 MB / 1.065 GB, free: 76.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006509/3.738, allocations: 0.6086 MB / 1.065 GB, free: 76.65 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05807/3.796, allocations: 19.25 MB / 1.084 GB, free: 74.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01247/3.809, allocations: 5.982 MB / 1.09 GB, free: 73.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01049/3.819, allocations: 2.872 MB / 1.093 GB, free: 71.66 MB / 458.7 MB Notification: Performance of SimCode: time 1.973e-06/3.819, allocations: 0 / 1.093 GB, free: 71.66 MB / 458.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