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.SMR_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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002099/0.002099, allocations: 181.7 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.13/2.13, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001067, allocations: 82.72 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.57e-05/3.596e-05, allocations: 8 kB / 321.5 MB, free: 17.81 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 47.58 MB / 369.1 MB, free: 2.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5394/0.6422, allocations: 156.1 MB / 0.5129 GB, free: 2.094 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003688/0.6426, allocations: 95.31 kB / 0.513 GB, free: 2.043 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.135/2.777, allocations: 384.5 MB / 0.8885 GB, free: 33.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.215e-06/2.777, allocations: 0 / 0.8885 GB, free: 33.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001064/2.779, allocations: 294.6 kB / 0.8888 GB, free: 33.54 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05129/2.83, allocations: 11.05 MB / 0.8996 GB, free: 29.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/2.83, allocations: 9.5 kB / 0.8996 GB, free: 29.96 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05263/2.883, allocations: 6.339 MB / 0.9058 GB, free: 29.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03617/2.919, allocations: 9.459 MB / 0.915 GB, free: 28.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001659/2.921, allocations: 0.9271 MB / 0.9159 GB, free: 28.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006212/2.927, allocations: 1.201 MB / 0.9171 GB, free: 28.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0692/2.996, allocations: 20.32 MB / 0.937 GB, free: 26.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008763/2.997, allocations: 23.92 kB / 0.937 GB, free: 26.53 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005694/3.003, allocations: 0.5194 MB / 0.9375 GB, free: 26.53 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001434/3.004, allocations: 0.8333 MB / 0.9383 GB, free: 26.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05763/3.062, allocations: 18.39 MB / 0.9563 GB, free: 21.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.192/3.254, allocations: 64.19 MB / 1.019 GB, free: 3.906 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4439/3.698, allocations: 46.12 MB / 1.064 GB, free: 24.64 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02201/3.72, allocations: 7.716 MB / 1.072 GB, free: 24.54 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07242/3.792, allocations: 23.51 MB / 1.094 GB, free: 23.62 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001097/3.793, allocations: 101.1 kB / 1.095 GB, free: 23.57 MB / 474.7 MB Notification: Performance of pre-optimization done (n=760): time 1.292e-05/3.793, allocations: 0 / 1.095 GB, free: 23.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=800): time 0.0834/3.876, allocations: 26.61 MB / 1.121 GB, free: 20.13 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.794e-05/3.876, allocations: 121.3 kB / 1.121 GB, free: 20.06 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009402/3.886, allocations: 3.563 MB / 1.124 GB, free: 18.68 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00187/3.887, allocations: 134.7 kB / 1.124 GB, free: 18.57 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003709/3.891, allocations: 4.726 MB / 1.129 GB, free: 14.91 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004307/3.896, allocations: 2.657 MB / 1.132 GB, free: 12.85 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001751/3.897, allocations: 160.2 kB / 1.132 GB, free: 12.72 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009771/3.898, allocations: 0.6741 MB / 1.132 GB, free: 12.25 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01371/3.912, allocations: 5.017 MB / 1.137 GB, free: 10.18 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01655/3.929, allocations: 7.427 MB / 1.144 GB, free: 5.195 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01844/3.947, allocations: 6.371 MB / 1.151 GB, free: 2.664 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001817/3.948, allocations: 23.98 kB / 1.151 GB, free: 2.664 MB / 474.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.05067/3.998, allocations: 15.25 MB / 1.166 GB, free: 12.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.093e-05/3.998, allocations: 39.09 kB / 1.166 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001668/3.999, allocations: 71.59 kB / 1.166 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0142/4.013, allocations: 4.109 MB / 1.17 GB, free: 11.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01283/4.026, allocations: 1.623 MB / 1.171 GB, free: 11.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02288/4.049, allocations: 12.19 MB / 1.183 GB, free: 3.738 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01029/4.059, allocations: 448 kB / 1.184 GB, free: 3.594 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002595/4.062, allocations: 385.5 kB / 1.184 GB, free: 3.406 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (847): * Single equations (assignments): 791 * 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.004724/4.066, allocations: 0.5794 MB / 1.185 GB, free: 2.934 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00354/4.07, allocations: 0.5781 MB / 1.185 GB, free: 2.352 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06648/4.136, allocations: 15.21 MB / 1.2 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003947/4.137, allocations: 195.9 kB / 1.2 GB, free: 8.727 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.612e-05/4.137, allocations: 3.953 kB / 1.2 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001654/4.137, allocations: 35.67 kB / 1.2 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4853/4.622, allocations: 28.5 MB / 1.228 GB, free: 86.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.847e-05/4.623, allocations: 3.75 kB / 1.228 GB, free: 86.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009894/4.632, allocations: 1.032 MB / 1.229 GB, free: 86.74 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01327/4.646, allocations: 3.973 MB / 1.233 GB, free: 86.63 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001994/4.648, allocations: 170.4 kB / 1.233 GB, free: 86.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01899/4.667, allocations: 12.01 MB / 1.245 GB, free: 82.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/4.667, allocations: 1.969 kB / 1.245 GB, free: 82.05 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05501/4.722, allocations: 21.41 MB / 1.266 GB, free: 80.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006952/4.729, allocations: 1.725 MB / 1.267 GB, free: 80.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003194/4.732, allocations: 121.4 kB / 1.268 GB, free: 80.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008037/4.74, allocations: 326.3 kB / 1.268 GB, free: 80.83 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002939/4.743, allocations: 0.5639 MB / 1.268 GB, free: 80.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002007/4.745, allocations: 218.7 kB / 1.269 GB, free: 80.82 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007696/4.753, allocations: 2.65 MB / 1.271 GB, free: 80.62 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.91e-07/4.753, allocations: 0 / 1.271 GB, free: 80.62 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01318/4.766, allocations: 2.146 MB / 1.273 GB, free: 80.62 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (536): * Single equations (assignments): 480 * 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.003098/4.769, allocations: 0.7218 MB / 1.274 GB, free: 80.49 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03492/4.804, allocations: 12.86 MB / 1.287 GB, free: 78.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/4.804, allocations: 0 / 1.287 GB, free: 78.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01996/4.824, allocations: 6.661 MB / 1.293 GB, free: 75.43 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01161/4.836, allocations: 1.179 MB / 1.294 GB, free: 75.11 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06774/4.904, allocations: 21.57 MB / 1.315 GB, free: 66.83 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01757/4.921, allocations: 7.744 MB / 1.323 GB, free: 64.23 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004069/4.926, allocations: 492.3 kB / 1.323 GB, free: 64.02 MB / 0.4948 GB Notification: Performance of SimCode: time 1.883e-06/4.926, allocations: 0 / 1.323 GB, free: 64.02 MB / 0.4948 GB Notification: Performance of Templates: time 2.858/7.783, allocations: 0.7079 GB / 2.031 GB, free: 95.75 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp301 = 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.SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp301 = 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.SMR_CurrentSourceCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1\n'