Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadModel(Modelica): time 2.21/2.21, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.921e-05/2.922e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 50.41 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.04003/0.1525, allocations: 23.37 MB / 368.4 MB, free: 1.469 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02161/0.1741, allocations: 7.544 MB / 375.9 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006282/0.1804, allocations: 207.5 kB / 376.1 MB, free: 9.703 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006811/0.1873, allocations: 1.429 MB / 377.6 MB, free: 8.266 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01396/0.2013, allocations: 2.827 MB / 380.4 MB, free: 5.43 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006623/0.208, allocations: 1.242 MB / 381.6 MB, free: 4.188 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01639/0.2244, allocations: 5.989 MB / 387.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02364/0.2481, allocations: 8.314 MB / 395.9 MB, free: 5.828 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006104/0.2543, allocations: 2.358 MB / 398.3 MB, free: 3.465 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006585/0.2609, allocations: 2.741 MB / 401 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004004/0.265, allocations: 0.5425 MB / 401.6 MB, free: 176 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.3087/0.5737, allocations: 254.9 kB / 401.8 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003479/0.5772, allocations: 1.243 MB / 403.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004319/0.5816, allocations: 0.5894 MB / 403.6 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0209/0.6026, allocations: 13.09 MB / 416.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.6026, allocations: 0 / 416.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.6026, allocations: 0 / 416.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005456/0.6032, allocations: 4.688 kB / 416.7 MB, free: 10.84 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03565/0.6389, allocations: 7.813 MB / 424.6 MB, free: 6.898 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.6389, allocations: 9.625 kB / 424.6 MB, free: 6.898 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04496/0.6839, allocations: 5.168 MB / 429.7 MB, free: 4.938 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01608/0.7, allocations: 4.924 MB / 434.7 MB, free: 3.457 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007659/0.7008, allocations: 0.5267 MB / 435.2 MB, free: 3.441 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003759/0.7046, allocations: 0.7121 MB / 435.9 MB, free: 3.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04162/0.7463, allocations: 11.21 MB / 447.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006245/0.747, allocations: 17.92 kB / 447.1 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003864/0.7509, allocations: 299.4 kB / 447.4 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009087/0.7518, allocations: 444.3 kB / 447.8 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03882/0.7907, allocations: 10.76 MB / 458.6 MB, free: 6.441 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1027/0.8934, allocations: 38.04 MB / 496.6 MB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03291/0.9264, allocations: 28.05 MB / 0.5124 GB, free: 112 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02397/0.9504, allocations: 7.907 MB / 0.5201 GB, free: 8.172 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.309e-05/0.9505, allocations: 60.56 kB / 0.5202 GB, free: 8.105 MB / 426.7 MB Notification: Performance of pre-optimization done (n=222): time 5.451e-06/0.9506, allocations: 0 / 0.5202 GB, free: 8.105 MB / 426.7 MB Notification: Performance of matching and sorting (n=238): time 0.03731/0.9879, allocations: 10.41 MB / 0.5303 GB, free: 13.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002978/0.9909, allocations: 1.934 MB / 0.5322 GB, free: 11.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009423/1, allocations: 3.275 MB / 0.5354 GB, free: 8.355 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005548/1.001, allocations: 61.7 kB / 0.5355 GB, free: 8.289 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003821/1.005, allocations: 3.427 MB / 0.5388 GB, free: 4.848 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001515/1.006, allocations: 0.8427 MB / 0.5397 GB, free: 4.012 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000642/1.007, allocations: 100 kB / 0.5397 GB, free: 3.914 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004989/1.008, allocations: 0.5017 MB / 0.5402 GB, free: 3.402 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005772/1.013, allocations: 1.894 MB / 0.5421 GB, free: 1.504 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008447/1.022, allocations: 4.423 MB / 0.5464 GB, free: 11.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008007/1.03, allocations: 2.847 MB / 0.5492 GB, free: 9.102 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.958e-05/1.03, allocations: 28 kB / 0.5492 GB, free: 9.074 MB / 458.7 MB Notification: Performance of matching and sorting (n=639) (initialization): time 0.02175/1.052, allocations: 6.844 MB / 0.5559 GB, free: 2.754 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.569e-05/1.052, allocations: 44 kB / 0.5559 GB, free: 2.711 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001867/1.052, allocations: 88 kB / 0.556 GB, free: 2.625 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003784/1.056, allocations: 0.7513 MB / 0.5568 GB, free: 1.867 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008276/1.064, allocations: 1.147 MB / 0.5579 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3316/1.396, allocations: 5.372 MB / 0.5631 GB, free: 149.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00644/1.402, allocations: 316.6 kB / 0.5634 GB, free: 149.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/1.404, allocations: 278.9 kB / 0.5637 GB, free: 149.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 402 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (602): * Single equations (assignments): 599 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007096/1.411, allocations: 2.509 MB / 0.5661 GB, free: 148.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00121/1.412, allocations: 384.6 kB / 0.5665 GB, free: 148.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/1.424, allocations: 4.313 MB / 0.5707 GB, free: 146.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.849e-05/1.424, allocations: 23.38 kB / 0.5707 GB, free: 146.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/1.424, allocations: 9.797 kB / 0.5708 GB, free: 146.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.259e-05/1.424, allocations: 12.8 kB / 0.5708 GB, free: 146.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03688/1.461, allocations: 14.32 MB / 0.5848 GB, free: 140 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.606e-05/1.461, allocations: 12.66 kB / 0.5848 GB, free: 140 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003929/1.465, allocations: 498.5 kB / 0.5852 GB, free: 139.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003415/1.469, allocations: 0.6844 MB / 0.5859 GB, free: 139.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006023/1.469, allocations: 69.33 kB / 0.586 GB, free: 139.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/1.482, allocations: 7.103 MB / 0.5929 GB, free: 135.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002262/1.485, allocations: 1.882 MB / 0.5947 GB, free: 133.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01723/1.502, allocations: 8.116 MB / 0.6027 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003073/1.505, allocations: 0.7981 MB / 0.6035 GB, free: 125.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001743/1.507, allocations: 67.8 kB / 0.6035 GB, free: 125.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004338/1.511, allocations: 164.9 kB / 0.6037 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008955/1.512, allocations: 228.1 kB / 0.6039 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000305/1.513, allocations: 95.42 kB / 0.604 GB, free: 125.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006423/1.519, allocations: 2.391 MB / 0.6063 GB, free: 123 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.353e-06/1.519, allocations: 2.625 kB / 0.6063 GB, free: 123 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008698/1.528, allocations: 1.292 MB / 0.6076 GB, free: 121.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00112/1.529, allocations: 231.4 kB / 0.6078 GB, free: 121.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01366/1.543, allocations: 5.156 MB / 0.6128 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.645e-05/1.543, allocations: 4 kB / 0.6128 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006716/1.55, allocations: 2.423 MB / 0.6152 GB, free: 113.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00737/1.557, allocations: 0.9129 MB / 0.6161 GB, free: 112.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04111/1.598, allocations: 14.66 MB / 0.6304 GB, free: 98.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01131/1.609, allocations: 4.499 MB / 0.6348 GB, free: 93.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002637/1.612, allocations: 331.4 kB / 0.6351 GB, free: 93.22 MB / 458.7 MB Notification: Performance of SimCode: time 2.595e-06/1.612, allocations: 0 / 0.6351 GB, free: 93.22 MB / 458.7 MB Notification: Performance of Templates: time 0.6495/2.262, allocations: 189.1 MB / 0.8198 GB, free: 64.62 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:100:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp412 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:100:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp412 = 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1