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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadModel(Modelica): time 2.158/2.158, allocations: 194.9 MB / 211.2 MB, free: 7.871 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.597e-05/2.608e-05, allocations: 3.906 kB / 258.8 MB, free: 8.195 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3381, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.06684/0.405, allocations: 23.73 MB / 327.1 MB, free: 5.816 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02387/0.4289, allocations: 7.465 MB / 334.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006229/0.4352, allocations: 199.5 kB / 334.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007031/0.4423, allocations: 1.437 MB / 336.1 MB, free: 12.7 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01386/0.4562, allocations: 2.882 MB / 339 MB, free: 9.805 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007046/0.4633, allocations: 1.239 MB / 340.3 MB, free: 8.566 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01687/0.4802, allocations: 5.981 MB / 346.2 MB, free: 2.574 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02463/0.5049, allocations: 8.318 MB / 354.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006607/0.5115, allocations: 2.354 MB / 356.9 MB, free: 7.852 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01066/0.5223, allocations: 2.745 MB / 359.7 MB, free: 5.098 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004305/0.5266, allocations: 0.5309 MB / 360.2 MB, free: 4.566 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002166/0.5289, allocations: 260 kB / 360.5 MB, free: 4.312 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002828/0.5317, allocations: 1.253 MB / 361.7 MB, free: 3.055 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003168/0.535, allocations: 0.5898 MB / 362.3 MB, free: 2.465 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02157/0.5566, allocations: 13.02 MB / 375.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.5567, allocations: 0 / 375.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.5567, allocations: 0 / 375.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004557/0.5571, allocations: 0 / 375.3 MB, free: 5.406 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03408/0.5912, allocations: 7.825 MB / 383.1 MB, free: 13.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.5913, allocations: 8.031 kB / 383.1 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04644/0.6378, allocations: 5.16 MB / 388.3 MB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01546/0.6533, allocations: 4.619 MB / 392.9 MB, free: 3.609 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008981/0.6542, allocations: 0.5338 MB / 393.5 MB, free: 3.074 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00338/0.6576, allocations: 0.7146 MB / 394.2 MB, free: 2.359 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03938/0.697, allocations: 11.19 MB / 405.4 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004523/0.6976, allocations: 19.81 kB / 405.4 MB, free: 7.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002877/0.7005, allocations: 296 kB / 405.7 MB, free: 6.781 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001085/0.7016, allocations: 450.9 kB / 406.1 MB, free: 6.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03622/0.7378, allocations: 10.74 MB / 416.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3625/1.1, allocations: 38.03 MB / 454.9 MB, free: 74.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02539/1.126, allocations: 28.05 MB / 482.9 MB, free: 45.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0219/1.148, allocations: 7.925 MB / 490.9 MB, free: 40.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.864e-05/1.148, allocations: 60 kB / 490.9 MB, free: 40.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=222): time 5.2e-06/1.148, allocations: 0 / 490.9 MB, free: 40.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=238): time 0.03288/1.181, allocations: 10.4 MB / 0.4896 GB, free: 30.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002535/1.183, allocations: 1.932 MB / 0.4915 GB, free: 28.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00802/1.191, allocations: 3.271 MB / 0.4947 GB, free: 25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005388/1.192, allocations: 69.64 kB / 0.4947 GB, free: 24.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002737/1.195, allocations: 3.418 MB / 0.4981 GB, free: 21.49 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001227/1.196, allocations: 0.8503 MB / 0.4989 GB, free: 20.65 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004999/1.197, allocations: 100 kB / 0.499 GB, free: 20.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003479/1.197, allocations: 0.5056 MB / 0.4995 GB, free: 20.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004673/1.202, allocations: 1.891 MB / 0.5013 GB, free: 18.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006337/1.208, allocations: 4.426 MB / 0.5056 GB, free: 12.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006658/1.215, allocations: 2.843 MB / 0.5084 GB, free: 9.609 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.841e-05/1.215, allocations: 24 kB / 0.5084 GB, free: 9.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=639) (initialization): time 0.01872/1.234, allocations: 6.846 MB / 0.5151 GB, free: 2.723 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.868e-05/1.234, allocations: 40 kB / 0.5152 GB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001566/1.234, allocations: 88 kB / 0.5153 GB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003281/1.237, allocations: 0.7523 MB / 0.516 GB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007516/1.245, allocations: 1.142 MB / 0.5171 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/1.257, allocations: 5.39 MB / 0.5224 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006017/1.264, allocations: 319 kB / 0.5227 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/1.265, allocations: 276 kB / 0.5229 GB, free: 10.59 MB / 378.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.00718/1.272, allocations: 2.506 MB / 0.5254 GB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001251/1.273, allocations: 391.2 kB / 0.5258 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01408/1.287, allocations: 4.299 MB / 0.53 GB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.441e-05/1.287, allocations: 28 kB / 0.53 GB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.615e-05/1.287, allocations: 7.938 kB / 0.53 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.456e-05/1.288, allocations: 15.95 kB / 0.53 GB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.041/1.329, allocations: 14.33 MB / 0.544 GB, free: 4.738 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.05e-05/1.329, allocations: 13 kB / 0.544 GB, free: 4.727 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004156/1.333, allocations: 0.4953 MB / 0.5445 GB, free: 4.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003676/1.337, allocations: 0.6825 MB / 0.5452 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000546/1.337, allocations: 67.98 kB / 0.5452 GB, free: 3.473 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01564/1.353, allocations: 7.097 MB / 0.5521 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002847/1.356, allocations: 1.89 MB / 0.554 GB, free: 10.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01905/1.375, allocations: 8.118 MB / 0.5619 GB, free: 1.449 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00312/1.378, allocations: 0.7967 MB / 0.5627 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001414/1.379, allocations: 67.92 kB / 0.5628 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003868/1.383, allocations: 167.9 kB / 0.5629 GB, free: 408 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009283/1.384, allocations: 225.4 kB / 0.5631 GB, free: 180 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003871/1.385, allocations: 91.98 kB / 0.5632 GB, free: 88 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006675/1.391, allocations: 2.389 MB / 0.5656 GB, free: 13.72 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.391, allocations: 0 / 0.5656 GB, free: 13.72 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007662/1.399, allocations: 1.292 MB / 0.5668 GB, free: 12.43 MB / 426.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.0009798/1.4, allocations: 225.8 kB / 0.567 GB, free: 12.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01475/1.415, allocations: 5.171 MB / 0.5721 GB, free: 6.992 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.962e-05/1.415, allocations: 4 kB / 0.5721 GB, free: 6.988 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007131/1.422, allocations: 2.435 MB / 0.5745 GB, free: 4.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007244/1.429, allocations: 0.9065 MB / 0.5754 GB, free: 3.609 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3068/1.736, allocations: 14.64 MB / 0.5897 GB, free: 141.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008512/1.745, allocations: 4.502 MB / 0.5941 GB, free: 140.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001928/1.747, allocations: 336 kB / 0.5944 GB, free: 140.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.233e-06/1.747, allocations: 0 / 0.5944 GB, free: 140.9 MB / 426.7 MB Notification: Performance of Templates: time 0.6352/2.382, allocations: 189.1 MB / 0.779 GB, free: 107.6 MB / 426.7 MB make -j1 -f Modelica_3.2.2_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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_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_3.2.2_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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1