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.001551/0.001556, allocations: 188.2 kB / 16.4 MB, free: 5.625 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.15/2.15, allocations: 205.4 MB / 222.5 MB, free: 13.75 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.001159/0.001159, allocations: 94.86 kB / 270.9 MB, free: 13.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004102/0.0004105, allocations: 8 kB / 327.1 MB, free: 14.97 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1022, allocations: 47.58 MB / 374.6 MB, free: 15.31 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors): time 0.02362/0.1259, allocations: 13.55 MB / 388.2 MB, free: 1.711 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2736/0.3996, allocations: 3.982 MB / 392.2 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003814/0.4035, allocations: 110.2 kB / 392.3 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004057/0.4076, allocations: 0.7636 MB / 393 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007487/0.4151, allocations: 1.267 MB / 394.3 MB, free: 8.543 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004846/0.42, allocations: 0.9079 MB / 395.2 MB, free: 8.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01283/0.4328, allocations: 5.588 MB / 400.8 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04997/0.4828, allocations: 18.18 MB / 419 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00857/0.4915, allocations: 3.121 MB / 422.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009519/0.5011, allocations: 3.489 MB / 425.6 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002897/0.504, allocations: 0.5533 MB / 426.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006534/0.5106, allocations: 0.7547 MB / 426.9 MB, free: 8.781 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003565/0.5142, allocations: 1.565 MB / 428.5 MB, free: 7.211 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004977/0.5193, allocations: 1.794 MB / 430.3 MB, free: 5.406 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02662/0.5459, allocations: 15.64 MB / 445.9 MB, free: 5.754 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.546, allocations: 4 kB / 445.9 MB, free: 5.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.546, allocations: 0 / 445.9 MB, free: 5.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0005561/0.5466, allocations: 4 kB / 445.9 MB, free: 5.746 MB / 314.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.04521/0.5918, allocations: 8.843 MB / 454.8 MB, free: 12.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.5919, allocations: 8.031 kB / 454.8 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005921/0.5978, allocations: 1.352 MB / 456.1 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04711/0.645, allocations: 5.596 MB / 461.7 MB, free: 5.867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01509/0.6601, allocations: 4.787 MB / 466.5 MB, free: 1.016 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001017/0.6612, allocations: 0.6986 MB / 467.2 MB, free: 324 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004331/0.6655, allocations: 0.9218 MB / 468.1 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04946/0.715, allocations: 13.48 MB / 481.6 MB, free: 1.875 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004969/0.7156, allocations: 7.906 kB / 481.6 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003401/0.719, allocations: 388 kB / 482 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007303/0.7198, allocations: 459.9 kB / 482.4 MB, free: 1.035 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04305/0.7628, allocations: 12.76 MB / 495.2 MB, free: 4.246 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1221/0.885, allocations: 47.07 MB / 0.5296 GB, free: 3.617 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.6466/1.532, allocations: 17.08 MB / 0.5462 GB, free: 98.05 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02078/1.552, allocations: 6.173 MB / 0.5523 GB, free: 96.51 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.763e-05/1.553, allocations: 52.66 kB / 0.5523 GB, free: 96.46 MB / 410.8 MB Notification: Performance of pre-optimization done (n=196): time 5.651e-06/1.553, allocations: 1.25 kB / 0.5523 GB, free: 96.46 MB / 410.8 MB Notification: Performance of matching and sorting (n=196): time 0.01571/1.568, allocations: 4.752 MB / 0.557 GB, free: 94.61 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/1.568, allocations: 71.59 kB / 0.557 GB, free: 94.55 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008552/1.577, allocations: 3.293 MB / 0.5602 GB, free: 93.36 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003964/1.577, allocations: 55.55 kB / 0.5603 GB, free: 93.3 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003106/1.581, allocations: 4.139 MB / 0.5643 GB, free: 90.14 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001134/1.582, allocations: 0.7193 MB / 0.565 GB, free: 89.61 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005516/1.582, allocations: 99.69 kB / 0.5651 GB, free: 89.53 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0003992/1.583, allocations: 0.522 MB / 0.5656 GB, free: 89.12 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005612/1.588, allocations: 2.075 MB / 0.5677 GB, free: 88.4 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00717/1.596, allocations: 4.687 MB / 0.5722 GB, free: 84.09 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007409/1.603, allocations: 3.227 MB / 0.5754 GB, free: 82.73 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/1.603, allocations: 25.56 kB / 0.5754 GB, free: 82.73 MB / 410.8 MB Notification: Performance of matching and sorting (n=655) (initialization): time 0.01817/1.621, allocations: 6.98 MB / 0.5822 GB, free: 79.99 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.744e-05/1.622, allocations: 42.78 kB / 0.5823 GB, free: 79.99 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001587/1.622, allocations: 90.09 kB / 0.5824 GB, free: 79.99 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001549/1.623, allocations: 445.7 kB / 0.5828 GB, free: 79.91 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007479/1.631, allocations: 1.18 MB / 0.5839 GB, free: 79.78 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007637/1.638, allocations: 4.163 MB / 0.588 GB, free: 77.2 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006123/1.645, allocations: 0.7251 MB / 0.5887 GB, free: 76.79 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001063/1.646, allocations: 289.1 kB / 0.589 GB, free: 76.74 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * 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 (626): * Single equations (assignments): 621 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008189/1.654, allocations: 3.485 MB / 0.5924 GB, free: 75.12 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009109/1.655, allocations: 286.5 kB / 0.5927 GB, free: 74.97 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/1.665, allocations: 3.427 MB / 0.596 GB, free: 72.5 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00641/1.672, allocations: 2.639 MB / 0.5986 GB, free: 69.85 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/1.672, allocations: 4 kB / 0.5986 GB, free: 69.85 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.124e-05/1.672, allocations: 15.95 kB / 0.5986 GB, free: 69.83 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02486/1.697, allocations: 9.438 MB / 0.6078 GB, free: 60.37 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/1.697, allocations: 0 / 0.6078 GB, free: 60.37 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002987/1.7, allocations: 367.4 kB / 0.6082 GB, free: 60.01 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/1.701, allocations: 309.2 kB / 0.6085 GB, free: 59.7 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003298/1.701, allocations: 43.98 kB / 0.6085 GB, free: 59.66 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006794/1.708, allocations: 3.978 MB / 0.6124 GB, free: 55.55 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.708, allocations: 0 / 0.6124 GB, free: 55.55 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01081/1.719, allocations: 4.868 MB / 0.6172 GB, free: 50.65 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002026/1.721, allocations: 0.6141 MB / 0.6178 GB, free: 50.01 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008781/1.722, allocations: 35.98 kB / 0.6178 GB, free: 49.98 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002631/1.725, allocations: 135.8 kB / 0.6179 GB, free: 49.84 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00057/1.725, allocations: 117.8 kB / 0.618 GB, free: 49.73 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/1.725, allocations: 59.98 kB / 0.6181 GB, free: 49.67 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.005116/1.731, allocations: 2.166 MB / 0.6202 GB, free: 47.5 MB / 410.8 MB Notification: Performance of sort global known variables: time 7.21e-07/1.731, allocations: 0 / 0.6202 GB, free: 47.5 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.008059/1.739, allocations: 2.03 MB / 0.6222 GB, free: 45.46 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (sineVoltage.plug_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 (183): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01204/1.751, allocations: 5.582 MB / 0.6276 GB, free: 39.86 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.0111/1.762, allocations: 4.803 MB / 0.6323 GB, free: 35.06 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/1.762, allocations: 0 / 0.6323 GB, free: 35.06 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003953/1.766, allocations: 1.637 MB / 0.6339 GB, free: 33.41 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005324/1.771, allocations: 0.6175 MB / 0.6345 GB, free: 32.8 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4047/2.176, allocations: 97.68 MB / 0.7299 GB, free: 115.6 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01183/2.188, allocations: 5.765 MB / 0.7356 GB, free: 113.4 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006332/2.194, allocations: 2.886 MB / 0.7384 GB, free: 111 MB / 442.8 MB Notification: Performance of SimCode: time 1.463e-06/2.194, allocations: 0 / 0.7384 GB, free: 111 MB / 442.8 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=5 -DSUNDIALS_MINOR_VERSION=4 -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:219:42: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp83 = 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:219:85: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp83 = 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