Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") 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.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002234/0.002234, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 82.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.666e-05, allocations: 4 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09302/0.09307, allocations: 47.57 MB / 369.1 MB, free: 2.176 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5538/0.6469, allocations: 163.1 MB / 0.5197 GB, free: 11.25 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003468/0.6473, allocations: 99.83 kB / 0.5198 GB, free: 11.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.273/2.92, allocations: 395.7 MB / 0.9063 GB, free: 24.37 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.534e-06/2.92, allocations: 3.5 kB / 0.9063 GB, free: 24.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001135/2.921, allocations: 295.3 kB / 0.9066 GB, free: 24.34 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.06791/2.989, allocations: 11.33 MB / 0.9176 GB, free: 20.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/2.989, allocations: 10.94 kB / 0.9176 GB, free: 20.63 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05447/3.044, allocations: 6.417 MB / 0.9239 GB, free: 19.91 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03893/3.083, allocations: 9.673 MB / 0.9334 GB, free: 18.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001722/3.084, allocations: 0.9448 MB / 0.9343 GB, free: 18.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007789/3.092, allocations: 1.241 MB / 0.9355 GB, free: 18.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07645/3.169, allocations: 20.67 MB / 0.9557 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009564/3.17, allocations: 18.09 kB / 0.9557 GB, free: 12.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00621/3.176, allocations: 0.5312 MB / 0.9562 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001485/3.178, allocations: 0.8556 MB / 0.957 GB, free: 11.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07646/3.254, allocations: 19.58 MB / 0.9762 GB, free: 15.87 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6133/3.868, allocations: 65.86 MB / 1.04 GB, free: 29.47 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0592/3.927, allocations: 46.06 MB / 1.085 GB, free: 26.12 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01904/3.946, allocations: 7.786 MB / 1.093 GB, free: 26.02 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07279/4.019, allocations: 23.82 MB / 1.116 GB, free: 24.98 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001229/4.019, allocations: 100.5 kB / 1.116 GB, free: 24.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=772): time 1.256e-05/4.019, allocations: 0 / 1.116 GB, free: 24.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=814): time 0.08932/4.108, allocations: 26.98 MB / 1.143 GB, free: 14.71 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/4.108, allocations: 121.9 kB / 1.143 GB, free: 14.64 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01106/4.12, allocations: 3.772 MB / 1.147 GB, free: 13.19 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001972/4.122, allocations: 139.3 kB / 1.147 GB, free: 13.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004189/4.126, allocations: 4.868 MB / 1.151 GB, free: 9.305 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004834/4.131, allocations: 2.713 MB / 1.154 GB, free: 7.203 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002195/4.133, allocations: 160.9 kB / 1.154 GB, free: 7.078 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001243/4.134, allocations: 0.6775 MB / 1.155 GB, free: 6.602 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01432/4.149, allocations: 5.083 MB / 1.16 GB, free: 4.508 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01846/4.167, allocations: 7.546 MB / 1.167 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01852/4.186, allocations: 6.454 MB / 1.174 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/4.186, allocations: 26.06 kB / 1.174 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1169) (initialization): time 0.04984/4.236, allocations: 15.43 MB / 1.189 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/4.236, allocations: 36 kB / 1.189 GB, free: 4.395 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002104/4.236, allocations: 77.12 kB / 1.189 GB, free: 4.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01489/4.251, allocations: 4.108 MB / 1.193 GB, free: 0.8867 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01746/4.268, allocations: 1.866 MB / 1.195 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4316/4.7, allocations: 12.2 MB / 1.207 GB, free: 91.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01087/4.711, allocations: 450.9 kB / 1.207 GB, free: 91.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00282/4.714, allocations: 397 kB / 1.207 GB, free: 91.91 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (871): * Single equations (assignments): 815 * 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.005653/4.72, allocations: 0.5877 MB / 1.208 GB, free: 91.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003557/4.723, allocations: 0.6118 MB / 1.208 GB, free: 91.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04708/4.77, allocations: 14.43 MB / 1.223 GB, free: 91.42 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000318/4.771, allocations: 199.5 kB / 1.223 GB, free: 91.42 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.056e-05/4.771, allocations: 0 / 1.223 GB, free: 91.42 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001905/4.771, allocations: 34.97 kB / 1.223 GB, free: 91.42 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08543/4.856, allocations: 28.92 MB / 1.251 GB, free: 89.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001125/4.857, allocations: 4.281 kB / 1.251 GB, free: 89.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009959/4.866, allocations: 1.058 MB / 1.252 GB, free: 89.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01302/4.88, allocations: 3.98 MB / 1.256 GB, free: 87.99 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0022/4.882, allocations: 174.3 kB / 1.256 GB, free: 87.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01995/4.902, allocations: 12.01 MB / 1.268 GB, free: 80.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.944e-06/4.902, allocations: 4.625 kB / 1.268 GB, free: 80.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05913/4.961, allocations: 21.87 MB / 1.289 GB, free: 70.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007125/4.968, allocations: 1.776 MB / 1.291 GB, free: 69.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003038/4.971, allocations: 120.8 kB / 1.291 GB, free: 69.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00805/4.979, allocations: 328.7 kB / 1.291 GB, free: 69.12 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003097/4.982, allocations: 0.5824 MB / 1.292 GB, free: 69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002121/4.985, allocations: 220.7 kB / 1.292 GB, free: 68.95 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008126/4.993, allocations: 2.81 MB / 1.295 GB, free: 67.88 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.172e-06/4.993, allocations: 0 / 1.295 GB, free: 67.88 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0139/5.007, allocations: 2.209 MB / 1.297 GB, free: 67.63 MB / 0.4948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (552): * Single equations (assignments): 496 * 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.003249/5.01, allocations: 0.8054 MB / 1.298 GB, free: 67.39 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03601/5.046, allocations: 13.02 MB / 1.311 GB, free: 61.41 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/5.046, allocations: 5.312 kB / 1.311 GB, free: 61.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01942/5.066, allocations: 6.723 MB / 1.317 GB, free: 55.36 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0118/5.077, allocations: 1.275 MB / 1.318 GB, free: 54.39 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06631/5.144, allocations: 21.97 MB / 1.34 GB, free: 34.87 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01724/5.161, allocations: 7.851 MB / 1.348 GB, free: 28.99 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004087/5.165, allocations: 0.5042 MB / 1.348 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of SimCode: time 1.753e-06/5.165, allocations: 0 / 1.348 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of Templates: time 2.788/7.953, allocations: 0.7268 GB / 2.075 GB, free: 50.57 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile make -j1 -f Modelica_3.2.3_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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:547:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp311 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:547:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp311 = 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.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1\n'