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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.819/1.819, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003534, allocations: 8 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08306/0.08343, allocations: 44.52 MB / 308.5 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4404/0.5238, allocations: 156.3 MB / 464.8 MB, free: 1.551 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003284/0.5242, allocations: 106.1 kB / 464.9 MB, free: 1.492 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.846/2.37, allocations: 397.2 MB / 0.8419 GB, free: 6.527 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.203e-06/2.37, allocations: 0 / 0.8419 GB, free: 6.527 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001029/2.371, allocations: 307.5 kB / 0.8422 GB, free: 6.227 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.6521/3.023, allocations: 11.99 MB / 0.8539 GB, free: 21.73 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/3.024, allocations: 12.64 kB / 0.8539 GB, free: 21.73 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04693/3.071, allocations: 6.46 MB / 0.8602 GB, free: 21.05 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03172/3.102, allocations: 9.692 MB / 0.8697 GB, free: 20.09 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001386/3.104, allocations: 0.9465 MB / 0.8706 GB, free: 20.06 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005636/3.109, allocations: 1.231 MB / 0.8718 GB, free: 20.05 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06317/3.173, allocations: 20.89 MB / 0.8922 GB, free: 18.53 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006943/3.173, allocations: 25.77 kB / 0.8922 GB, free: 18.52 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005013/3.178, allocations: 0.5274 MB / 0.8928 GB, free: 18.52 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001149/3.18, allocations: 0.8553 MB / 0.8936 GB, free: 18.49 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05088/3.23, allocations: 18.94 MB / 0.9121 GB, free: 18.38 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1513/3.382, allocations: 65.85 MB / 0.9764 GB, free: 3.926 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4046/3.786, allocations: 46.45 MB / 1.022 GB, free: 37.09 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0614/3.848, allocations: 23.95 MB / 1.045 GB, free: 36.17 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.126e-05/3.848, allocations: 107.1 kB / 1.045 GB, free: 36.12 MB / 474.8 MB Notification: Performance of pre-optimization done (n=782): time 1.352e-05/3.848, allocations: 0 / 1.045 GB, free: 36.12 MB / 474.8 MB Notification: Performance of matching and sorting (n=824): time 0.1425/3.991, allocations: 46.83 MB / 1.091 GB, free: 27.69 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.717e-05/3.991, allocations: 123.8 kB / 1.091 GB, free: 27.62 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009213/4, allocations: 3.801 MB / 1.095 GB, free: 27.25 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001634/4.002, allocations: 139.5 kB / 1.095 GB, free: 27.22 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003265/4.005, allocations: 4.832 MB / 1.1 GB, free: 24.52 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003832/4.009, allocations: 2.741 MB / 1.102 GB, free: 22.41 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00179/4.011, allocations: 164.6 kB / 1.102 GB, free: 22.29 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001031/4.012, allocations: 0.6824 MB / 1.103 GB, free: 21.8 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01196/4.024, allocations: 5.188 MB / 1.108 GB, free: 19.69 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01431/4.038, allocations: 7.633 MB / 1.116 GB, free: 14.55 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01497/4.053, allocations: 6.525 MB / 1.122 GB, free: 11.61 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.768e-05/4.053, allocations: 23.59 kB / 1.122 GB, free: 11.61 MB / 474.8 MB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.0404/4.093, allocations: 15.65 MB / 1.137 GB, free: 5.344 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.733e-05/4.094, allocations: 40.7 kB / 1.137 GB, free: 5.34 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001426/4.094, allocations: 73.84 kB / 1.137 GB, free: 5.34 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01166/4.105, allocations: 4.133 MB / 1.141 GB, free: 4.055 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009069/4.115, allocations: 1.681 MB / 1.143 GB, free: 4 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02058/4.135, allocations: 12.24 MB / 1.155 GB, free: 10.62 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008679/4.144, allocations: 457.7 kB / 1.156 GB, free: 10.26 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002478/4.146, allocations: 400.1 kB / 1.156 GB, free: 9.895 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (877): * Single equations (assignments): 821 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01423/4.161, allocations: 4.447 MB / 1.16 GB, free: 6.184 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003174/4.164, allocations: 0.6117 MB / 1.161 GB, free: 5.57 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04477/4.209, allocations: 14.64 MB / 1.175 GB, free: 9.211 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003394/4.209, allocations: 199.4 kB / 1.175 GB, free: 9.039 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.252e-05/4.209, allocations: 0 / 1.175 GB, free: 9.039 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001458/4.209, allocations: 39.77 kB / 1.175 GB, free: 9.035 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08554/4.295, allocations: 29.28 MB / 1.204 GB, free: 0.7422 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.301e-05/4.295, allocations: 4.5 kB / 1.204 GB, free: 0.7383 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008004/4.303, allocations: 1.113 MB / 1.205 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3378/4.641, allocations: 4.019 MB / 1.209 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001849/4.643, allocations: 174.1 kB / 1.209 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01891/4.662, allocations: 12.06 MB / 1.221 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.281e-06/4.662, allocations: 7.188 kB / 1.221 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05109/4.713, allocations: 22.14 MB / 1.243 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006103/4.719, allocations: 1.788 MB / 1.244 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003015/4.722, allocations: 130.4 kB / 1.244 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006319/4.728, allocations: 329.8 kB / 1.245 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002471/4.731, allocations: 0.5866 MB / 1.245 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001751/4.733, allocations: 224.4 kB / 1.246 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006981/4.74, allocations: 2.84 MB / 1.248 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.02e-06/4.74, allocations: 0 / 1.248 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01237/4.752, allocations: 2.221 MB / 1.25 GB, free: 107.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (562): * Single equations (assignments): 506 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002591/4.755, allocations: 0.6862 MB / 1.251 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03067/4.785, allocations: 13.23 MB / 1.264 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.533e-06/4.785, allocations: 2.812 kB / 1.264 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01687/4.802, allocations: 6.85 MB / 1.271 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008836/4.811, allocations: 1.27 MB / 1.272 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06843/4.88, allocations: 30.39 MB / 1.302 GB, free: 92.89 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01677/4.896, allocations: 7.836 MB / 1.309 GB, free: 90.28 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003283/4.9, allocations: 0.5102 MB / 1.31 GB, free: 90.24 MB / 0.5105 GB Notification: Performance of SimCode: time 1.724e-06/4.9, allocations: 0 / 1.31 GB, free: 90.24 MB / 0.5105 GB Notification: Performance of Templates: time 2.168/7.067, allocations: 0.7255 GB / 2.035 GB, free: 73.51 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:547:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp310 = 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_CurrentSourceFunctions.cpp:547:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp310 = 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_CurrentSourceCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1\n'