Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadModel(Modelica): time 2.126/2.126, allocations: 224.7 MB / 241.1 MB, free: 1.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.79e-05/2.778e-05, allocations: 0 / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1106, allocations: 50.42 MB / 345 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.0224/0.1331, allocations: 13.11 MB / 358.1 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0134/0.1465, allocations: 4.975 MB / 363.1 MB, free: 6.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003291/0.1499, allocations: 135.6 kB / 363.2 MB, free: 6.637 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004149/0.1541, allocations: 0.9362 MB / 364.1 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006704/0.1608, allocations: 1.39 MB / 365.5 MB, free: 4.301 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00342/0.1643, allocations: 0.6588 MB / 366.2 MB, free: 3.641 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008899/0.1732, allocations: 3.209 MB / 369.4 MB, free: 432 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006215/0.1795, allocations: 2.686 MB / 372.1 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003903/0.1835, allocations: 1.57 MB / 373.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004991/0.1885, allocations: 2.009 MB / 375.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002914/0.1915, allocations: 415.8 kB / 376.1 MB, free: 9.715 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001501/0.1931, allocations: 207.9 kB / 376.3 MB, free: 9.512 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002308/0.1954, allocations: 1.086 MB / 377.4 MB, free: 8.422 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002256/0.1977, allocations: 476 kB / 377.8 MB, free: 7.957 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01381/0.2115, allocations: 8.551 MB / 386.4 MB, free: 15.38 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.2116, allocations: 0 / 386.4 MB, free: 15.38 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.2116, allocations: 0 / 386.4 MB, free: 15.38 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003313/0.212, allocations: 0 / 386.4 MB, free: 15.38 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02054/0.2325, allocations: 5.08 MB / 391.5 MB, free: 10.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.2326, allocations: 8.031 kB / 391.5 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009209/0.2418, allocations: 1.059 MB / 392.5 MB, free: 9.152 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01121/0.2531, allocations: 3.432 MB / 396 MB, free: 5.645 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005804/0.2537, allocations: 369.7 kB / 396.3 MB, free: 5.281 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002122/0.2559, allocations: 479.9 kB / 396.8 MB, free: 4.812 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3221/0.578, allocations: 6.805 MB / 403.6 MB, free: 40.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001678/0.5783, allocations: 5.469 kB / 403.6 MB, free: 40.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008557/0.5791, allocations: 197.3 kB / 403.8 MB, free: 40.63 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004507/0.5796, allocations: 244.4 kB / 404 MB, free: 40.6 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.021/0.6006, allocations: 5.925 MB / 410 MB, free: 38.34 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05223/0.6529, allocations: 20.98 MB / 430.9 MB, free: 24.37 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01408/0.6671, allocations: 9.916 MB / 440.8 MB, free: 15.35 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01366/0.6808, allocations: 5.397 MB / 446.2 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.678e-05/0.6809, allocations: 64.5 kB / 446.3 MB, free: 10.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=225): time 5.921e-06/0.6809, allocations: 0 / 446.3 MB, free: 10.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=232): time 0.02879/0.7097, allocations: 9.868 MB / 456.2 MB, free: 20 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.952e-05/0.7099, allocations: 77.41 kB / 456.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006997/0.7169, allocations: 2.607 MB / 458.9 MB, free: 13.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005327/0.7175, allocations: 65.7 kB / 458.9 MB, free: 13.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002167/0.7196, allocations: 2.004 MB / 460.9 MB, free: 11.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001287/0.721, allocations: 0.7762 MB / 461.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002652/0.7212, allocations: 52 kB / 461.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002766/0.7215, allocations: 416.1 kB / 462.2 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004699/0.7262, allocations: 1.317 MB / 463.5 MB, free: 8.672 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004818/0.7311, allocations: 1.928 MB / 465.4 MB, free: 6.496 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004648/0.7358, allocations: 1.618 MB / 467 MB, free: 4.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.811e-05/0.7359, allocations: 8 kB / 467 MB, free: 4.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=332) (initialization): time 0.01253/0.7484, allocations: 4.092 MB / 471.1 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.7485, allocations: 16.06 kB / 471.1 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.189e-05/0.7486, allocations: 20 kB / 471.2 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004427/0.753, allocations: 0.7664 MB / 471.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004941/0.758, allocations: 0.5734 MB / 472.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01801/0.776, allocations: 10.21 MB / 482.7 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/0.7795, allocations: 116.2 kB / 482.8 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003267/0.7798, allocations: 103.9 kB / 482.9 MB, free: 4.418 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (282): * Single equations (assignments): 277 * 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: 4 * 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: 4 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004258/0.7841, allocations: 1.613 MB / 484.5 MB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001011/0.7851, allocations: 312.2 kB / 484.8 MB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/0.7969, allocations: 3.982 MB / 488.8 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.957e-05/0.797, allocations: 20 kB / 488.8 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.876e-05/0.797, allocations: 12 kB / 488.9 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-05/0.7971, allocations: 15.94 kB / 488.9 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02415/0.8212, allocations: 8.673 MB / 497.5 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.8213, allocations: 4 kB / 497.5 MB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0033/0.8246, allocations: 363.8 kB / 497.9 MB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005213/0.8298, allocations: 0.909 MB / 498.8 MB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002834/0.8301, allocations: 63.97 kB / 498.9 MB, free: 4.266 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02652/0.8567, allocations: 14.61 MB / 0.5015 GB, free: 4.883 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.8567, allocations: 0 / 0.5015 GB, free: 4.883 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01923/0.876, allocations: 5.984 MB / 0.5073 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002774/0.8788, allocations: 0.6924 MB / 0.508 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001404/0.8803, allocations: 55.98 kB / 0.508 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003456/0.8838, allocations: 119.9 kB / 0.5081 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009218/0.8848, allocations: 193.7 kB / 0.5083 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/0.885, allocations: 63.98 kB / 0.5084 GB, free: 13.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006003/0.8911, allocations: 2.011 MB / 0.5103 GB, free: 11.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.072e-06/0.8911, allocations: 0 / 0.5103 GB, free: 11.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005846/0.897, allocations: 0.94 MB / 0.5113 GB, free: 10.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001115/0.8981, allocations: 234.7 kB / 0.5115 GB, free: 10.42 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01237/0.9105, allocations: 3.96 MB / 0.5154 GB, free: 6.391 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/0.9106, allocations: 0.875 kB / 0.5154 GB, free: 6.391 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008431/0.919, allocations: 2.676 MB / 0.518 GB, free: 3.645 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006995/0.9261, allocations: 0.8493 MB / 0.5188 GB, free: 2.793 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03056/0.9567, allocations: 11.17 MB / 0.5297 GB, free: 7.555 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006341/0.9631, allocations: 3.422 MB / 0.5331 GB, free: 4.098 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001606/0.9648, allocations: 211.4 kB / 0.5333 GB, free: 3.891 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/0.9648, allocations: 0 / 0.5333 GB, free: 3.891 MB / 426.7 MB Notification: Performance of Templates: time 0.9464/1.911, allocations: 191.7 MB / 0.7204 GB, free: 150.9 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.cpp:3170:28: error: use of undeclared identifier 'tmp423' _transformerData_P_C1_ = tmp423; ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.cpp:3171:28: error: use of undeclared identifier 'tmp424' _transformerData_P_C2_ = tmp424; ^ 2 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o] Error 1