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.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.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.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.792/1.792, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005/0.0005001, allocations: 8 kB / 264 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08449/0.08502, allocations: 44.5 MB / 308.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3756/0.4606, allocations: 117 MB / 425.4 MB, free: 7.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.4609, allocations: 90.27 kB / 425.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.049/1.509, allocations: 192.7 MB / 0.6037 GB, free: 58.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.886e-06/1.51, allocations: 0 / 0.6037 GB, free: 58.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007358/1.51, allocations: 207.6 kB / 0.6039 GB, free: 58.64 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03148/1.542, allocations: 8.716 MB / 0.6125 GB, free: 54.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/1.542, allocations: 7.562 kB / 0.6125 GB, free: 54.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0143/1.556, allocations: 1.915 MB / 0.6143 GB, free: 54.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02253/1.579, allocations: 7.071 MB / 0.6212 GB, free: 50.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007268/1.58, allocations: 0.6374 MB / 0.6219 GB, free: 50.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003079/1.583, allocations: 0.8397 MB / 0.6227 GB, free: 50.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03376/1.616, allocations: 11.14 MB / 0.6336 GB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003745/1.617, allocations: 7.906 kB / 0.6336 GB, free: 43.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002741/1.62, allocations: 366.4 kB / 0.6339 GB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003662/1.62, allocations: 373 kB / 0.6343 GB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02579/1.646, allocations: 9.057 MB / 0.6431 GB, free: 35 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3469/1.993, allocations: 35.87 MB / 0.6781 GB, free: 45.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01824/2.011, allocations: 16.97 MB / 0.6947 GB, free: 32.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02407/2.035, allocations: 9.408 MB / 0.7039 GB, free: 31.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.913e-05/2.035, allocations: 70.34 kB / 0.704 GB, free: 30.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=327): time 7.745e-06/2.035, allocations: 0 / 0.704 GB, free: 30.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=381): time 0.05032/2.086, allocations: 16.61 MB / 0.7202 GB, free: 28.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/2.086, allocations: 89.48 kB / 0.7203 GB, free: 28.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008904/2.095, allocations: 3.836 MB / 0.724 GB, free: 28.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006517/2.095, allocations: 88.27 kB / 0.7241 GB, free: 28.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002449/2.098, allocations: 3.567 MB / 0.7276 GB, free: 26.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001459/2.099, allocations: 1.294 MB / 0.7289 GB, free: 25.63 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004208/2.1, allocations: 95.28 kB / 0.7289 GB, free: 25.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002929/2.1, allocations: 489.4 kB / 0.7294 GB, free: 25.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004844/2.105, allocations: 1.973 MB / 0.7313 GB, free: 25.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005769/2.111, allocations: 3.376 MB / 0.7346 GB, free: 23.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006232/2.117, allocations: 2.564 MB / 0.7371 GB, free: 23.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.059e-05/2.117, allocations: 16.8 kB / 0.7372 GB, free: 23.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=597) (initialization): time 0.01573/2.133, allocations: 6.39 MB / 0.7434 GB, free: 22.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.903e-05/2.133, allocations: 27.3 kB / 0.7434 GB, free: 22.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.252e-05/2.133, allocations: 47.47 kB / 0.7435 GB, free: 22.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00257/2.136, allocations: 0.7788 MB / 0.7442 GB, free: 22.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005717/2.141, allocations: 1.093 MB / 0.7453 GB, free: 22.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/2.156, allocations: 10.53 MB / 0.7556 GB, free: 30.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005249/2.161, allocations: 260.4 kB / 0.7558 GB, free: 30.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009585/2.162, allocations: 205 kB / 0.756 GB, free: 30.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * 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 (541): * Single equations (assignments): 533 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006782/2.169, allocations: 2.536 MB / 0.7585 GB, free: 28.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001388/2.171, allocations: 495.3 kB / 0.759 GB, free: 28.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01482/2.186, allocations: 5.721 MB / 0.7646 GB, free: 26.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.226e-05/2.186, allocations: 37.38 kB / 0.7646 GB, free: 26.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-05/2.186, allocations: 9 kB / 0.7646 GB, free: 26.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.063e-05/2.186, allocations: 26.92 kB / 0.7646 GB, free: 26.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03421/2.22, allocations: 13.84 MB / 0.7781 GB, free: 20.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-05/2.22, allocations: 6.438 kB / 0.7782 GB, free: 20.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003986/2.224, allocations: 0.6664 MB / 0.7788 GB, free: 20 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003123/2.227, allocations: 0.9058 MB / 0.7797 GB, free: 19.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006338/2.228, allocations: 94.45 kB / 0.7798 GB, free: 19.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02079/2.249, allocations: 14.28 MB / 0.7937 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.899e-06/2.249, allocations: 6.281 kB / 0.7937 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02009/2.269, allocations: 9.122 MB / 0.8026 GB, free: 4.039 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003796/2.273, allocations: 1.003 MB / 0.8036 GB, free: 3.375 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001771/2.275, allocations: 80.52 kB / 0.8037 GB, free: 3.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004337/2.279, allocations: 215.1 kB / 0.8039 GB, free: 3.266 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001067/2.28, allocations: 288.9 kB / 0.8042 GB, free: 3.215 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003895/2.28, allocations: 106.9 kB / 0.8043 GB, free: 3.191 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007597/2.288, allocations: 2.926 MB / 0.8071 GB, free: 2.094 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.082e-06/2.288, allocations: 0 / 0.8071 GB, free: 2.094 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008545/2.297, allocations: 1.55 MB / 0.8086 GB, free: 1.711 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (303): * Single equations (assignments): 296 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00168/2.298, allocations: 0.5537 MB / 0.8092 GB, free: 1.258 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01567/2.314, allocations: 5.919 MB / 0.815 GB, free: 12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/2.314, allocations: 4 kB / 0.815 GB, free: 12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009325/2.323, allocations: 3.593 MB / 0.8185 GB, free: 8.711 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006938/2.33, allocations: 1.059 MB / 0.8195 GB, free: 7.871 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04519/2.376, allocations: 18 MB / 0.8371 GB, free: 7.172 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01171/2.387, allocations: 5.103 MB / 0.8421 GB, free: 3.395 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002177/2.39, allocations: 359.7 kB / 0.8424 GB, free: 3.059 MB / 458.7 MB Notification: Performance of SimCode: time 1.814e-06/2.39, allocations: 0 / 0.8424 GB, free: 3.059 MB / 458.7 MB Notification: Performance of Templates: time 0.9658/3.355, allocations: 320.5 MB / 1.155 GB, free: 31.13 MB / 474.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.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=2 -DSUNDIALS_MINOR_VERSION=6 -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.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:366:38: error: use of undeclared identifier \'_omcQ_24tmpVar10_\'; did you mean \'_omcQ_24tmpVar11_\'?\n _omcQ_24tmpVar11_ = std::cos(_omcQ_24tmpVar10_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar11_\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:343:12: note: \'_omcQ_24tmpVar11_\' declared here\n double _omcQ_24tmpVar11_;\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:403:38: error: use of undeclared identifier \'_omcQ_24tmpVar13_\'; did you mean \'_omcQ_24tmpVar14_\'?\n _omcQ_24tmpVar14_ = std::sin(_omcQ_24tmpVar13_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar14_\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:380:12: note: \'_omcQ_24tmpVar14_\' declared here\n double _omcQ_24tmpVar14_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.o] Error 1\n'