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.002968/0.002967, allocations: 188.8 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.839/3.839, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001811/0.001811, allocations: 98.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006681/0.0006681, allocations: 8 kB / 327 MB, free: 15.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1911, allocations: 47.59 MB / 374.6 MB, free: 15.41 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.4793/0.6705, allocations: 32.05 MB / 406.6 MB, free: 5.367 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.04674/0.7174, allocations: 10.17 MB / 416.8 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01479/0.7322, allocations: 244.8 kB / 417 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01676/0.7491, allocations: 2.106 MB / 419.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03151/0.7807, allocations: 3.671 MB / 422.8 MB, free: 9.875 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01658/0.7973, allocations: 1.815 MB / 424.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.04033/0.8377, allocations: 10.31 MB / 434.9 MB, free: 1.086 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08761/0.9254, allocations: 19.76 MB / 454.7 MB, free: 13.22 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0183/0.9438, allocations: 4.68 MB / 459.4 MB, free: 8.527 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02141/0.9652, allocations: 5.424 MB / 464.8 MB, free: 3.082 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006417/0.9717, allocations: 0.7734 MB / 465.6 MB, free: 2.309 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01163/0.9835, allocations: 1.082 MB / 466.7 MB, free: 1.227 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009021/0.9926, allocations: 2.539 MB / 469.2 MB, free: 14.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009805/1.002, allocations: 2.601 MB / 471.8 MB, free: 12.07 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0537/1.056, allocations: 22.05 MB / 493.8 MB, free: 5.961 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/1.056, allocations: 0 / 493.8 MB, free: 5.961 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.027e-06/1.056, allocations: 0 / 493.8 MB, free: 5.961 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0008846/1.057, allocations: 0 / 493.8 MB, free: 5.961 MB / 362.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.07927/1.137, allocations: 12.94 MB / 0.4949 GB, free: 8.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.78e-05/1.137, allocations: 8.031 kB / 0.4949 GB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1301/1.267, allocations: 9.04 MB / 0.5037 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03826/1.305, allocations: 7.383 MB / 0.511 GB, free: 8.375 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002493/1.308, allocations: 0.951 MB / 0.5119 GB, free: 7.422 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009566/1.317, allocations: 1.234 MB / 0.5131 GB, free: 6.188 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1097/1.427, allocations: 19.95 MB / 0.5326 GB, free: 2.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001182/1.428, allocations: 23.81 kB / 0.5326 GB, free: 2.137 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008028/1.436, allocations: 0.5117 MB / 0.5331 GB, free: 1.625 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002755/1.439, allocations: 0.741 MB / 0.5338 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.9792/2.419, allocations: 18.88 MB / 0.5523 GB, free: 104.4 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2261/2.645, allocations: 63.53 MB / 0.6143 GB, free: 50 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08695/2.732, allocations: 56.91 MB / 0.6699 GB, free: 2.199 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06175/2.794, allocations: 11.53 MB / 0.6811 GB, free: 6.656 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001408/2.794, allocations: 73.33 kB / 0.6812 GB, free: 6.574 MB / 442.8 MB Notification: Performance of pre-optimization done (n=359): time 1.291e-05/2.794, allocations: 0 / 0.6812 GB, free: 6.574 MB / 442.8 MB Notification: Performance of matching and sorting (n=399): time 0.1108/2.905, allocations: 17.56 MB / 0.6983 GB, free: 4.887 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/2.905, allocations: 90.55 kB / 0.6984 GB, free: 4.785 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.509/3.414, allocations: 5.372 MB / 0.7037 GB, free: 144.5 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001211/3.415, allocations: 87.98 kB / 0.7038 GB, free: 144.5 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.008709/3.424, allocations: 5.664 MB / 0.7093 GB, free: 141.8 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003413/3.428, allocations: 1.403 MB / 0.7107 GB, free: 140.8 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001703/3.429, allocations: 155.2 kB / 0.7108 GB, free: 140.6 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001344/3.431, allocations: 0.6196 MB / 0.7114 GB, free: 140.2 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01524/3.446, allocations: 3.075 MB / 0.7144 GB, free: 139.1 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01949/3.466, allocations: 6.701 MB / 0.721 GB, free: 133.1 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02012/3.486, allocations: 4.594 MB / 0.7255 GB, free: 131.1 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003546/3.486, allocations: 35.72 kB / 0.7255 GB, free: 131.1 MB / 458.8 MB Notification: Performance of matching and sorting (n=988) (initialization): time 0.05015/3.537, allocations: 10.54 MB / 0.7358 GB, free: 126.8 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000249/3.537, allocations: 63.59 kB / 0.7358 GB, free: 126.8 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003917/3.537, allocations: 125.9 kB / 0.736 GB, free: 126.8 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007357/3.545, allocations: 0.9836 MB / 0.7369 GB, free: 126.6 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02005/3.565, allocations: 1.819 MB / 0.7387 GB, free: 126.4 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02975/3.595, allocations: 9.744 MB / 0.7482 GB, free: 119.8 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01516/3.61, allocations: 444.4 kB / 0.7486 GB, free: 119.6 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002713/3.613, allocations: 417.1 kB / 0.749 GB, free: 119.6 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * 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 (939): * Single equations (assignments): 934 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01955/3.632, allocations: 4.464 MB / 0.7534 GB, free: 117.4 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003141/3.635, allocations: 0.5482 MB / 0.7539 GB, free: 117.1 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03449/3.67, allocations: 6.599 MB / 0.7604 GB, free: 114.3 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.386e-05/3.67, allocations: 40 kB / 0.7604 GB, free: 114.3 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.686e-05/3.67, allocations: 10.02 kB / 0.7604 GB, free: 114.3 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001697/3.67, allocations: 29.97 kB / 0.7605 GB, free: 114.2 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07521/3.746, allocations: 16.1 MB / 0.7762 GB, free: 100.9 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.374e-05/3.746, allocations: 4 kB / 0.7762 GB, free: 100.9 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01146/3.757, allocations: 0.7803 MB / 0.7769 GB, free: 100.1 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006307/3.764, allocations: 0.7845 MB / 0.7777 GB, free: 99.3 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001235/3.765, allocations: 87.97 kB / 0.7778 GB, free: 99.22 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02594/3.791, allocations: 8.854 MB / 0.7864 GB, free: 89.97 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/3.791, allocations: 4 kB / 0.7864 GB, free: 89.96 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04182/3.833, allocations: 10.04 MB / 0.7962 GB, free: 79.78 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006591/3.84, allocations: 1.107 MB / 0.7973 GB, free: 78.64 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003377/3.843, allocations: 79.98 kB / 0.7974 GB, free: 78.57 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009119/3.852, allocations: 223.8 kB / 0.7976 GB, free: 78.35 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002197/3.854, allocations: 270.8 kB / 0.7979 GB, free: 78.08 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001336/3.856, allocations: 120 kB / 0.798 GB, free: 77.96 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01505/3.871, allocations: 3.536 MB / 0.8014 GB, free: 74.45 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.232e-06/3.871, allocations: 0 / 0.8014 GB, free: 74.45 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01904/3.89, allocations: 1.984 MB / 0.8034 GB, free: 72.47 MB / 458.8 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001864/3.892, allocations: 254.9 kB / 0.8036 GB, free: 72.22 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.03272/3.925, allocations: 8.08 MB / 0.8115 GB, free: 64.07 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/3.925, allocations: 0 / 0.8115 GB, free: 64.07 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01519/3.94, allocations: 3.572 MB / 0.815 GB, free: 60.42 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01538/3.956, allocations: 1.191 MB / 0.8162 GB, free: 59.25 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0946/4.05, allocations: 24.55 MB / 0.8401 GB, free: 34.61 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02458/4.075, allocations: 7.577 MB / 0.8475 GB, free: 26.99 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005651/4.081, allocations: 0.4915 MB / 0.848 GB, free: 26.5 MB / 458.8 MB Notification: Performance of SimCode: time 2.966e-06/4.081, allocations: 5.75 kB / 0.848 GB, free: 26.5 MB / 458.8 MB Notification: Performance of Templates: time 2.498/6.579, allocations: 449.1 MB / 1.287 GB, free: 117.4 MB / 490.8 MB 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=5 -DSUNDIALS_MINOR_VERSION=4 -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:112:42: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp98 = 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:112:85: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp98 = 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'