Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.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.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_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.001526/0.001526, allocations: 185.8 kB / 16.41 MB, free: 5.723 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.978/1.978, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001132/0.001132, allocations: 99.22 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.0003908, allocations: 12 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.331, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1403/0.4713, allocations: 84.87 MB / 459.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.4717, allocations: 71.97 kB / 459.6 MB, free: 11.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1224/0.5941, allocations: 31.63 MB / 491.2 MB, free: 11.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5942, allocations: 0 / 491.2 MB, free: 11.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001689/0.5944, allocations: 59.94 kB / 491.3 MB, free: 11.86 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.007346/0.6017, allocations: 2.083 MB / 493.3 MB, free: 9.711 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.6018, allocations: 8.031 kB / 493.3 MB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001127/0.6029, allocations: 328.7 kB / 493.7 MB, free: 9.371 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.604, allocations: 253.2 kB / 493.9 MB, free: 9.121 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00372/0.6077, allocations: 1.254 MB / 495.2 MB, free: 7.824 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/0.608, allocations: 164.5 kB / 495.3 MB, free: 7.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005962/0.6086, allocations: 224 kB / 495.5 MB, free: 7.441 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007911/0.6165, allocations: 2.756 MB / 498.3 MB, free: 4.539 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.351e-05/0.6166, allocations: 11.98 kB / 498.3 MB, free: 4.527 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003462/0.617, allocations: 96 kB / 498.4 MB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.559e-05/0.6171, allocations: 56 kB / 498.5 MB, free: 4.379 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006488/0.6236, allocations: 1.954 MB / 0.4887 GB, free: 2.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2996/0.9233, allocations: 7.722 MB / 0.4962 GB, free: 89.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002932/0.9262, allocations: 1.266 MB / 0.4975 GB, free: 88.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001389/0.9264, allocations: 10.44 kB / 0.4975 GB, free: 88.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/0.9265, allocations: 44.47 kB / 0.4975 GB, free: 88.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 4.789e-06/0.9265, allocations: 1.312 kB / 0.4975 GB, free: 88.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.009931/0.9365, allocations: 2.616 MB / 0.5001 GB, free: 88.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.9366, allocations: 65.02 kB / 0.5001 GB, free: 88.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002038/0.9386, allocations: 0.7066 MB / 0.5008 GB, free: 87.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001829/0.9388, allocations: 35.95 kB / 0.5009 GB, free: 87.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008354/0.9397, allocations: 0.936 MB / 0.5018 GB, free: 87.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003189/0.94, allocations: 220.2 kB / 0.502 GB, free: 87.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.364e-05/0.9402, allocations: 12.09 kB / 0.502 GB, free: 87.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.9403, allocations: 343.9 kB / 0.5023 GB, free: 87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.9416, allocations: 383.3 kB / 0.5027 GB, free: 87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.9431, allocations: 0.5922 MB / 0.5033 GB, free: 86.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.9445, allocations: 473 kB / 0.5037 GB, free: 86.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.9445, allocations: 3.781 kB / 0.5037 GB, free: 86.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003457/0.948, allocations: 1.108 MB / 0.5048 GB, free: 86.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.9481, allocations: 8.688 kB / 0.5048 GB, free: 86.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.219e-05/0.9481, allocations: 11.22 kB / 0.5048 GB, free: 86.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004298/0.9486, allocations: 92.3 kB / 0.5049 GB, free: 86.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.9502, allocations: 183.5 kB / 0.5051 GB, free: 86.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/0.9534, allocations: 1.947 MB / 0.507 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.9549, allocations: 50.19 kB / 0.507 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001998/0.9552, allocations: 31.78 kB / 0.5071 GB, free: 85.32 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 88 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002266/0.9575, allocations: 0.6474 MB / 0.5077 GB, free: 85.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004811/0.958, allocations: 88.95 kB / 0.5078 GB, free: 85.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003652/0.9617, allocations: 0.9316 MB / 0.5087 GB, free: 85.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.9617, allocations: 6.688 kB / 0.5087 GB, free: 85.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.9617, allocations: 3.953 kB / 0.5087 GB, free: 85.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.9618, allocations: 2.672 kB / 0.5087 GB, free: 85.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.9723, allocations: 2.664 MB / 0.5113 GB, free: 84.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.928e-05/0.9724, allocations: 7.219 kB / 0.5113 GB, free: 84.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.9736, allocations: 118 kB / 0.5114 GB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003817/0.974, allocations: 75.14 kB / 0.5115 GB, free: 84.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001174/0.9741, allocations: 11.72 kB / 0.5115 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003227/0.9774, allocations: 1.916 MB / 0.5134 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/0.9774, allocations: 7.172 kB / 0.5134 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004864/0.9823, allocations: 1.452 MB / 0.5148 GB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008464/0.9832, allocations: 227.5 kB / 0.515 GB, free: 82.08 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/0.9835, allocations: 19 kB / 0.515 GB, free: 82.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.9846, allocations: 46.5 kB / 0.5151 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.9849, allocations: 41 kB / 0.5151 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.21e-05/0.985, allocations: 17.55 kB / 0.5151 GB, free: 82.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00151/0.9865, allocations: 0.5517 MB / 0.5157 GB, free: 81.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.9865, allocations: 3.531 kB / 0.5157 GB, free: 81.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002522/0.9891, allocations: 316.7 kB / 0.516 GB, free: 81.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * 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 (56): * Single equations (assignments): 53 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005825/0.9949, allocations: 2.175 MB / 0.5181 GB, free: 80.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003644/0.9987, allocations: 1.062 MB / 0.5191 GB, free: 80.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.9987, allocations: 0 / 0.5191 GB, free: 80.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/1.001, allocations: 0.6027 MB / 0.5197 GB, free: 79.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/1.003, allocations: 200.8 kB / 0.5199 GB, free: 79.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02674/1.03, allocations: 12.51 MB / 0.5321 GB, free: 70.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002477/1.032, allocations: 1.717 MB / 0.5338 GB, free: 70.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001787/1.034, allocations: 0.6399 MB / 0.5344 GB, free: 69.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.563e-06/1.034, allocations: 3.906 kB / 0.5344 GB, free: 69.51 MB / 378.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_MultiPhase_Examples_TestSensorsCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsFunctions.cpp:91:38: error: use of undeclared identifier '_omcQ_24tmpVar12_'; did you mean '_omcQ_24tmpVar13_'? _omcQ_24tmpVar13_ = std::cos(_omcQ_24tmpVar12_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsFunctions.cpp:68:12: note: '_omcQ_24tmpVar13_' declared here double _omcQ_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsFunctions.cpp:128:38: error: use of undeclared identifier '_omcQ_24tmpVar15_'; did you mean '_omcQ_24tmpVar16_'? _omcQ_24tmpVar16_ = std::sin(_omcQ_24tmpVar15_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsFunctions.cpp:105:12: note: '_omcQ_24tmpVar16_' declared here double _omcQ_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_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_MultiPhase_Examples_TestSensorsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.o] Error 1