Running command: translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors") Notification: Performance of loadModel(Modelica): time 2.313/2.313, allocations: 224.7 MB / 241.1 MB, free: 1.652 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.9e-05/2.897e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 50.42 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors): time 0.02709/0.1424, allocations: 12.83 MB / 357.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.1535, allocations: 3.516 MB / 361.3 MB, free: 8.523 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003565/0.1571, allocations: 143.7 kB / 361.5 MB, free: 8.383 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003554/0.1608, allocations: 0.7224 MB / 362.2 MB, free: 7.656 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006362/0.1672, allocations: 1.133 MB / 363.3 MB, free: 6.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00414/0.1714, allocations: 0.772 MB / 364.1 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.1819, allocations: 4.188 MB / 368.3 MB, free: 1.547 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0439/0.2258, allocations: 15.69 MB / 384 MB, free: 1.793 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005281/0.2312, allocations: 2.272 MB / 386.2 MB, free: 15.51 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006404/0.2376, allocations: 2.729 MB / 389 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00333/0.241, allocations: 431.6 kB / 389.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001604/0.2427, allocations: 236 kB / 389.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002147/0.2448, allocations: 1.093 MB / 390.7 MB, free: 11.03 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002839/0.2477, allocations: 0.5977 MB / 391.3 MB, free: 10.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3716/0.6194, allocations: 15.49 MB / 406.8 MB, free: 18.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.6194, allocations: 0 / 406.8 MB, free: 18.13 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.777e-06/0.6195, allocations: 1.781 kB / 406.8 MB, free: 18.13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005981/0.6201, allocations: 0 / 406.8 MB, free: 18.13 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2457 * Number of variables: 2457 Notification: Performance of Generate backend data structure: time 0.03593/0.656, allocations: 8.41 MB / 415.2 MB, free: 14.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.829e-05/0.6561, allocations: 11.16 kB / 415.2 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02919/0.6853, allocations: 3.608 MB / 418.8 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01517/0.7005, allocations: 5.122 MB / 423.9 MB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008445/0.7014, allocations: 0.6881 MB / 424.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004701/0.7062, allocations: 0.8843 MB / 425.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04485/0.7511, allocations: 12.59 MB / 438.1 MB, free: 7.023 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004407/0.7516, allocations: 11.86 kB / 438.1 MB, free: 7.012 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003975/0.7555, allocations: 376.5 kB / 438.5 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004346/0.756, allocations: 399.1 kB / 438.9 MB, free: 6.258 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03855/0.7946, allocations: 11.35 MB / 450.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1319/0.9266, allocations: 43.81 MB / 494 MB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01896/0.9456, allocations: 10.52 MB / 0.4927 GB, free: 2.918 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005057/0.9461, allocations: 140.9 kB / 0.4929 GB, free: 2.773 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.198e-05/0.9462, allocations: 56.56 kB / 0.4929 GB, free: 2.711 MB / 394.7 MB Notification: Performance of pre-optimization done (n=229): time 5.931e-06/0.9462, allocations: 0 / 0.4929 GB, free: 2.711 MB / 394.7 MB Notification: Performance of matching and sorting (n=229): time 0.01679/0.963, allocations: 5.108 MB / 0.4979 GB, free: 13.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.533e-05/0.9632, allocations: 81.34 kB / 0.498 GB, free: 13.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006895/0.9701, allocations: 2.617 MB / 0.5005 GB, free: 10.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004558/0.9706, allocations: 61.7 kB / 0.5006 GB, free: 10.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003856/0.9744, allocations: 3.794 MB / 0.5043 GB, free: 6.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001376/0.9759, allocations: 0.8071 MB / 0.5051 GB, free: 6.109 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005201/0.9764, allocations: 92 kB / 0.5052 GB, free: 6.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005228/0.977, allocations: 0.4971 MB / 0.5057 GB, free: 5.512 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005704/0.9827, allocations: 2.004 MB / 0.5076 GB, free: 3.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008154/0.9909, allocations: 4.169 MB / 0.5117 GB, free: 14.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007953/0.9989, allocations: 3.041 MB / 0.5147 GB, free: 11.31 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.513e-05/0.999, allocations: 20 kB / 0.5147 GB, free: 11.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=598) (initialization): time 0.01896/1.018, allocations: 6.481 MB / 0.521 GB, free: 5.207 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.683e-05/1.018, allocations: 36 kB / 0.5211 GB, free: 5.172 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001538/1.018, allocations: 76 kB / 0.5211 GB, free: 5.098 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/1.02, allocations: 418.6 kB / 0.5215 GB, free: 4.688 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007159/1.027, allocations: 1.071 MB / 0.5226 GB, free: 3.699 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008719/1.036, allocations: 4.17 MB / 0.5266 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005333/1.041, allocations: 0.6269 MB / 0.5273 GB, free: 14.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/1.042, allocations: 244 kB / 0.5275 GB, free: 14.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (569): * Single equations (assignments): 564 * 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.00859/1.051, allocations: 3.343 MB / 0.5308 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009331/1.052, allocations: 276.5 kB / 0.531 GB, free: 11.03 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/1.063, allocations: 3.685 MB / 0.5346 GB, free: 7.332 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008336/1.071, allocations: 2.895 MB / 0.5374 GB, free: 4.441 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.83e-05/1.071, allocations: 4 kB / 0.5374 GB, free: 4.438 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.777e-05/1.071, allocations: 19.7 kB / 0.5375 GB, free: 4.422 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03671/1.108, allocations: 10.04 MB / 0.5473 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/1.108, allocations: 0 / 0.5473 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004536/1.113, allocations: 410.1 kB / 0.5477 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/1.115, allocations: 316.8 kB / 0.548 GB, free: 9.699 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000484/1.115, allocations: 44 kB / 0.548 GB, free: 9.656 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/1.126, allocations: 3.982 MB / 0.5519 GB, free: 5.555 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.127, allocations: 3.75 kB / 0.5519 GB, free: 5.555 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01914/1.146, allocations: 5.243 MB / 0.557 GB, free: 300 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002975/1.149, allocations: 0.6143 MB / 0.5576 GB, free: 15.65 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001234/1.15, allocations: 47.98 kB / 0.5577 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003461/1.154, allocations: 139.9 kB / 0.5578 GB, free: 15.47 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007289/1.154, allocations: 141.4 kB / 0.5579 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003413/1.155, allocations: 63.98 kB / 0.558 GB, free: 15.27 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006919/1.162, allocations: 1.943 MB / 0.5599 GB, free: 13.32 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.696e-06/1.162, allocations: 0 / 0.5599 GB, free: 13.32 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01023/1.172, allocations: 1.966 MB / 0.5618 GB, free: 11.35 MB / 474.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (216): * Single equations (assignments): 211 * 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.0009554/1.173, allocations: 222.2 kB / 0.562 GB, free: 11.15 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01266/1.186, allocations: 4.689 MB / 0.5666 GB, free: 6.664 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/1.186, allocations: 0 / 0.5666 GB, free: 6.664 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004963/1.191, allocations: 1.776 MB / 0.5683 GB, free: 4.914 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005473/1.196, allocations: 0.6109 MB / 0.5689 GB, free: 4.309 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3491/1.545, allocations: 15.95 MB / 0.5845 GB, free: 162.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01156/1.557, allocations: 5.609 MB / 0.59 GB, free: 161.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001532/1.559, allocations: 261.1 kB / 0.5902 GB, free: 161.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.823e-06/1.559, allocations: 0 / 0.5902 GB, free: 161.8 MB / 474.7 MB Notification: Performance of Templates: time 0.1994/1.758, allocations: 126.5 MB / 0.7137 GB, free: 43.15 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensorsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensorsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensorsCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensorsFunctions.cpp:220:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp334 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensorsFunctions.cpp:220:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp334 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ 2 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensorsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensorsCalcHelperMain.o] Error 1