Running command: "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.269e-05/3.282e-05, allocations: 8.969 kB / 292.2 MB, free: 8.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1076, allocations: 50.41 MB / 342.6 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4556/0.5632, allocations: 87.01 MB / 429.6 MB, free: 7.262 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/0.5636, allocations: 74.47 kB / 429.7 MB, free: 7.227 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1277/0.6913, allocations: 32.51 MB / 462.2 MB, free: 11.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.6914, allocations: 0 / 462.2 MB, free: 11.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001644/0.6915, allocations: 55.94 kB / 462.3 MB, free: 11.34 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.007233/0.6988, allocations: 1.971 MB / 464.2 MB, free: 9.316 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.24e-05/0.6989, allocations: 12.03 kB / 464.3 MB, free: 9.305 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001157/0.7001, allocations: 324.7 kB / 464.6 MB, free: 8.977 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001195/0.7013, allocations: 261.1 kB / 464.8 MB, free: 8.719 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003899/0.7052, allocations: 1.242 MB / 466.1 MB, free: 7.434 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002369/0.7055, allocations: 172.5 kB / 466.2 MB, free: 7.262 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008282/0.7063, allocations: 219.9 kB / 466.4 MB, free: 7.047 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008239/0.7146, allocations: 2.674 MB / 469.1 MB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.296e-05/0.7147, allocations: 4 kB / 469.1 MB, free: 4.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003484/0.7151, allocations: 92 kB / 469.2 MB, free: 4.141 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.561e-05/0.7152, allocations: 59.95 kB / 469.3 MB, free: 4.082 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006308/0.7215, allocations: 1.852 MB / 471.1 MB, free: 2.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02212/0.7436, allocations: 7.718 MB / 478.8 MB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001942/0.7456, allocations: 1.237 MB / 480.1 MB, free: 8.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001664/0.7473, allocations: 0.5907 MB / 480.7 MB, free: 8.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-05/0.7475, allocations: 8.562 kB / 480.7 MB, free: 8.312 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.7475, allocations: 43.11 kB / 480.7 MB, free: 8.262 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 4.178e-06/0.7475, allocations: 0 / 480.7 MB, free: 8.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=65): time 0.005558/0.7531, allocations: 2.084 MB / 482.8 MB, free: 6.117 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.7532, allocations: 67.95 kB / 482.9 MB, free: 6.039 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/0.7548, allocations: 0.695 MB / 483.6 MB, free: 5.336 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/0.755, allocations: 33.7 kB / 483.6 MB, free: 5.297 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008288/0.7559, allocations: 0.9318 MB / 484.5 MB, free: 4.352 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003668/0.7563, allocations: 224.8 kB / 484.8 MB, free: 4.129 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.678e-05/0.7564, allocations: 16 kB / 484.8 MB, free: 4.113 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.7565, allocations: 350.7 kB / 485.1 MB, free: 3.762 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009284/0.7575, allocations: 361.5 kB / 485.5 MB, free: 3.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.7587, allocations: 0.5572 MB / 486 MB, free: 2.758 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.76, allocations: 454.9 kB / 486.5 MB, free: 2.312 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.76, allocations: 4 kB / 486.5 MB, free: 2.309 MB / 394.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003056/0.7631, allocations: 1.054 MB / 487.5 MB, free: 1.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.7632, allocations: 8 kB / 487.5 MB, free: 1.242 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.1e-05/0.7633, allocations: 8 kB / 487.5 MB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005208/0.7638, allocations: 112.7 kB / 487.6 MB, free: 1.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.7653, allocations: 167.8 kB / 487.8 MB, free: 0.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003459/0.7688, allocations: 2.139 MB / 490 MB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.77, allocations: 39.97 kB / 490 MB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/0.7702, allocations: 36 kB / 490 MB, free: 14.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002718/0.7705, allocations: 152.7 kB / 490.2 MB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003216/0.7708, allocations: 78.97 kB / 490.3 MB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002626/0.7734, allocations: 0.9099 MB / 491.2 MB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/0.7735, allocations: 4 kB / 491.2 MB, free: 13.44 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.7735, allocations: 11.89 kB / 491.2 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.7736, allocations: 3.984 kB / 491.2 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00826/0.7818, allocations: 2.662 MB / 493.8 MB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-05/0.7819, allocations: 4 kB / 493.8 MB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.783, allocations: 112 kB / 494 MB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004608/0.7834, allocations: 104.7 kB / 494.1 MB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.7836, allocations: 12 kB / 494.1 MB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003039/0.7866, allocations: 2.076 MB / 496.1 MB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.7867, allocations: 0 / 496.1 MB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003335/0.79, allocations: 1.447 MB / 497.6 MB, free: 6.727 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006461/0.7907, allocations: 228.1 kB / 497.8 MB, free: 6.484 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/0.7909, allocations: 12 kB / 497.8 MB, free: 6.473 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008322/0.7918, allocations: 52.02 kB / 497.9 MB, free: 6.422 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.792, allocations: 52.44 kB / 497.9 MB, free: 6.371 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.342e-05/0.792, allocations: 20 kB / 497.9 MB, free: 6.352 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001157/0.7932, allocations: 0.5421 MB / 498.5 MB, free: 5.812 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7932, allocations: 0 / 498.5 MB, free: 5.812 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001721/0.795, allocations: 315.9 kB / 498.8 MB, free: 5.504 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004262/0.7993, allocations: 2.383 MB / 0.4894 GB, free: 3.055 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002815/0.8022, allocations: 1.01 MB / 0.4904 GB, free: 2.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.8022, allocations: 0 / 0.4904 GB, free: 2.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.8039, allocations: 0.5867 MB / 0.491 GB, free: 1.414 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/0.806, allocations: 203.1 kB / 0.4912 GB, free: 1.219 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/0.8163, allocations: 2.996 MB / 0.4941 GB, free: 14.15 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002546/0.8189, allocations: 1.723 MB / 0.4958 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001645/0.8205, allocations: 0.6438 MB / 0.4964 GB, free: 11.76 MB / 426.7 MB Notification: Performance of SimCode: time 1.854e-06/0.8206, allocations: 0 / 0.4964 GB, free: 11.76 MB / 426.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsFunctions.cpp:91:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsFunctions.cpp:68:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsFunctions.cpp:128:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsFunctions.cpp:105:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsFMU.cpp:11: /var/lib/jenkins/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_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_TestSensorsCalcHelperMain.o] Error 1