Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003673, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08165/0.08204, allocations: 44.5 MB / 308.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04655/0.1286, allocations: 30.79 MB / 339.2 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02426/0.153, allocations: 9.575 MB / 348.7 MB, free: 8.527 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007221/0.1602, allocations: 227.1 kB / 349 MB, free: 8.305 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008239/0.1685, allocations: 2.017 MB / 351 MB, free: 6.277 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0153/0.1839, allocations: 3.521 MB / 354.5 MB, free: 2.746 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007354/0.1912, allocations: 1.534 MB / 356 MB, free: 1.211 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02369/0.215, allocations: 11.5 MB / 367.5 MB, free: 5.691 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2726/0.4876, allocations: 20.17 MB / 387.7 MB, free: 10.98 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00856/0.4962, allocations: 4.937 MB / 392.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009028/0.5053, allocations: 5.558 MB / 398.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003295/0.5086, allocations: 0.7945 MB / 399 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005377/0.514, allocations: 1.101 MB / 400.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003833/0.5179, allocations: 2.483 MB / 402.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004352/0.5223, allocations: 2.65 MB / 405.2 MB, free: 10.94 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02666/0.549, allocations: 22.62 MB / 427.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.871e-06/0.549, allocations: 4 kB / 427.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.288e-06/0.549, allocations: 0 / 427.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005173/0.5496, allocations: 0 / 427.9 MB, free: 10.27 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: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.04501/0.5946, allocations: 13.42 MB / 441.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.5947, allocations: 12.03 kB / 441.3 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05422/0.6489, allocations: 7.311 MB / 448.6 MB, free: 7.492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02011/0.669, allocations: 7.588 MB / 456.2 MB, free: 3.016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001205/0.6703, allocations: 0.9118 MB / 457.1 MB, free: 2.496 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0045/0.6748, allocations: 1.209 MB / 458.3 MB, free: 1.688 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05735/0.7322, allocations: 19.16 MB / 477.5 MB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005179/0.7328, allocations: 19.47 kB / 477.5 MB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003447/0.7362, allocations: 0.498 MB / 478 MB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009752/0.7372, allocations: 0.6892 MB / 478.7 MB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05001/0.7873, allocations: 17.61 MB / 496.3 MB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7026/1.49, allocations: 64.01 MB / 0.5472 GB, free: 100.9 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0354/1.525, allocations: 38.62 MB / 0.5849 GB, free: 68.66 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02915/1.555, allocations: 12.1 MB / 0.5967 GB, free: 65.56 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.964e-05/1.555, allocations: 81.12 kB / 0.5968 GB, free: 65.49 MB / 426.8 MB Notification: Performance of pre-optimization done (n=415): time 8.854e-06/1.555, allocations: 0 / 0.5968 GB, free: 65.49 MB / 426.8 MB Notification: Performance of matching and sorting (n=425): time 0.05476/1.609, allocations: 20.54 MB / 0.6168 GB, free: 53.4 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/1.61, allocations: 121.8 kB / 0.617 GB, free: 53.3 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01066/1.62, allocations: 5.203 MB / 0.622 GB, free: 50.54 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007161/1.621, allocations: 93.48 kB / 0.6221 GB, free: 50.46 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003239/1.624, allocations: 5.233 MB / 0.6272 GB, free: 45.84 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001754/1.626, allocations: 1.478 MB / 0.6287 GB, free: 44.56 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007726/1.627, allocations: 139.1 kB / 0.6288 GB, free: 44.45 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004733/1.627, allocations: 0.5827 MB / 0.6294 GB, free: 43.94 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006673/1.634, allocations: 2.956 MB / 0.6323 GB, free: 42.35 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008386/1.642, allocations: 5.69 MB / 0.6378 GB, free: 37.07 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008242/1.651, allocations: 4.197 MB / 0.6419 GB, free: 33.42 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.412e-05/1.651, allocations: 28 kB / 0.6419 GB, free: 33.39 MB / 426.8 MB Notification: Performance of matching and sorting (n=878) (initialization): time 0.02195/1.673, allocations: 9.82 MB / 0.6515 GB, free: 23.5 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.479e-05/1.673, allocations: 44 kB / 0.6516 GB, free: 23.46 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/1.673, allocations: 92 kB / 0.6517 GB, free: 23.37 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003823/1.677, allocations: 1.137 MB / 0.6528 GB, free: 22.21 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007302/1.684, allocations: 1.541 MB / 0.6543 GB, free: 20.67 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01843/1.703, allocations: 12.78 MB / 0.6668 GB, free: 7.367 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006833/1.71, allocations: 375.6 kB / 0.6671 GB, free: 7 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00145/1.711, allocations: 340 kB / 0.6674 GB, free: 6.668 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * 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 (811): * Single equations (assignments): 802 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009446/1.721, allocations: 4.295 MB / 0.6716 GB, free: 2.359 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/1.722, allocations: 0.5441 MB / 0.6722 GB, free: 1.809 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01982/1.742, allocations: 7.275 MB / 0.6793 GB, free: 10.43 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01142/1.753, allocations: 4.337 MB / 0.6835 GB, free: 6.043 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.419e-05/1.754, allocations: 16 kB / 0.6835 GB, free: 6.027 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001104/1.754, allocations: 27.84 kB / 0.6836 GB, free: 6 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3409/2.095, allocations: 17.3 MB / 0.7004 GB, free: 130.8 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.464e-05/2.095, allocations: 6.125 kB / 0.7005 GB, free: 130.8 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004825/2.099, allocations: 0.7058 MB / 0.7011 GB, free: 130.7 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004701/2.104, allocations: 1.192 MB / 0.7023 GB, free: 130.6 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008358/2.105, allocations: 100.7 kB / 0.7024 GB, free: 130.6 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02387/2.129, allocations: 16.32 MB / 0.7183 GB, free: 118.7 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/2.129, allocations: 11.69 kB / 0.7183 GB, free: 118.7 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02343/2.152, allocations: 10.55 MB / 0.7286 GB, free: 114.1 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003832/2.156, allocations: 1.153 MB / 0.7298 GB, free: 113.6 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001786/2.158, allocations: 86.33 kB / 0.7299 GB, free: 113.6 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004629/2.163, allocations: 214.2 kB / 0.7301 GB, free: 113.5 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001241/2.164, allocations: 312.9 kB / 0.7304 GB, free: 113.5 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006578/2.165, allocations: 125.3 kB / 0.7305 GB, free: 113.5 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.008368/2.173, allocations: 3.464 MB / 0.7339 GB, free: 112.2 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.901e-06/2.173, allocations: 0 / 0.7339 GB, free: 112.2 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01043/2.184, allocations: 1.998 MB / 0.7358 GB, free: 112 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * 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 (363): * Single equations (assignments): 353 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,53.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001301/2.185, allocations: 277.1 kB / 0.7361 GB, free: 111.8 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01733/2.202, allocations: 7.967 MB / 0.7439 GB, free: 108.5 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/2.202, allocations: 1.094 kB / 0.7439 GB, free: 108.5 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009306/2.212, allocations: 4.167 MB / 0.7479 GB, free: 106.1 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007566/2.219, allocations: 1.32 MB / 0.7492 GB, free: 105 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04689/2.266, allocations: 24.67 MB / 0.7733 GB, free: 81.73 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01672/2.283, allocations: 7.409 MB / 0.7805 GB, free: 74.29 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004201/2.287, allocations: 475.3 kB / 0.781 GB, free: 73.82 MB / 442.8 MB Notification: Performance of SimCode: time 2.984e-06/2.287, allocations: 4 kB / 0.781 GB, free: 73.82 MB / 442.8 MB Notification: Performance of Templates: time 1.484/3.772, allocations: 479.6 MB / 1.249 GB, free: 118.8 MB / 474.8 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile b'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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_MainsCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:220:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp135 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:220:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp135 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1\n'